Mistral
Mistral chat models are called through one simple endpoint: send a messages array plus the model slug and get the reply text back. This family exposes 4 models.
Overview
Send a standard messages array (user / assistant / system roles). Billing is deducted from your credit balance per response; the response includes your remaining balance.
Authentication
Create an API key at /api-keys, then send it as a Bearer token. Requests from the browser while logged in also work via the session cookie.
Authorization: Bearer <YOUR_API_KEY>OpenAI-compatible Chat Completions
POST https://api.lithovas.com/v1/chat/completionsUse this endpoint for developer integrations: point your OpenAI SDK base_url to https://api.lithovas.com/v1 and send a Lithovas API key.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_LITHOVAS_API_KEY",
base_url="https://api.lithovas.com/v1",
)
completion = client.chat.completions.create(
model="chat/mistral-large-2512",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"},
],
)
print(completion.choices[0].message.content)curl -X POST https://api.lithovas.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/mistral-large-2512",
"messages": [
{ "role": "system", "content": "You are a helpful assistant." },
{ "role": "user", "content": "Hello!" }
]
}'Chat Completions
POST https://api.lithovas.com/api/chatBody: { "model": "<slug>", "messages": [{ "role": "user", "content": "…" }] }
Response: { "text": "<assistant reply>", "credits": <billed>, "balance": <remaining> }
Models
| Model | Provider | model slug |
|---|---|---|
| Mistral Large 2512 | Mistral | chat/mistral-large-2512 |
| Mistral Large 2407 | Mistral | chat/mistral-large-2407 |
| Mistral Medium 3.5 | Mistral | chat/mistral-medium-3-5 |
| Mistral Small 3.2 24B | Mistral | chat/mistral-small-3-2 |
Mistral Large 2512
/v1/chat/completionscurl -X POST https://api.lithovas.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/mistral-large-2512",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Mistral Large 2407
/v1/chat/completionscurl -X POST https://api.lithovas.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/mistral-large-2407",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Mistral Medium 3.5
/v1/chat/completionscurl -X POST https://api.lithovas.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/mistral-medium-3-5",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Mistral Small 3.2 24B
/v1/chat/completionscurl -X POST https://api.lithovas.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/mistral-small-3-2",
"messages": [{ "role": "user", "content": "Hello!" }]
}'