Mistral offers 47 models through Lava’s AI Gateway, supporting Chat Completions, Embeddings. Authentication uses Authorization: Bearer. See the Mistral API docs for provider-specific parameters.
Supports both managed API keys (from Lava) and BYOK mode.
Quick Start
const response = await fetch('https://api.lavapayments.com/v1/forward?u=https%3A%2F%2Fapi.mistral.ai%2Fv1%2Fchat%2Fcompletions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${forwardToken}`,
},
body: JSON.stringify({
model: 'magistral-medium-latest',
messages: [{ role: "user", content: "Hello!" }],
}),
});
Chat Completions
Target URL: https://api.mistral.ai/v1/chat/completions
| |
|---|
| Content Type | application/json |
| Streaming | Yes (set stream: true in request body) |
| Model | Input / 1M tokens | Output / 1M tokens |
|---|
| mistral-medium-2312 | $2.75 | $8.10 |
| mistral-medium | $2.75 | $8.10 |
| magistral-medium-latest | $2.00 | $5.00 |
| mistral-large-latest | $2.00 | $6.00 |
| mistral-large-2411 | $2.00 | $6.00 |
| mistral-large-2407 | $2.00 | $6.00 |
| mistral-large-2402 | $2.00 | $6.00 |
| pixtral-large-latest | $2.00 | $6.00 |
| pixtral-large-2411 | $2.00 | $6.00 |
| mistral-large-pixtral-2411 | $2.00 | $6.00 |
| open-mixtral-8x22b | $2.00 | $6.00 |
| open-mixtral-8x22b-2404 | $2.00 | $6.00 |
| open-mixtral-8x7b | $0.70 | $0.70 |
| mistral-small | $0.70 | $0.70 |
| mistral-small-2312 | $0.70 | $0.70 |
| magistral-small-latest | $0.50 | $1.50 |
| mistral-medium-latest | $0.40 | $2.00 |
| mistral-medium-2508 | $0.40 | $2.00 |
| mistral-medium-2505 | $0.40 | $2.00 |
| codestral-latest | $0.30 | $0.90 |
| codestral-2501 | $0.30 | $0.90 |
| codestral-2412 | $0.30 | $0.90 |
| codestral-2411-rc5 | $0.30 | $0.90 |
| codestral-2405 | $0.30 | $0.90 |
| open-mistral-7b | $0.25 | $0.25 |
| mistral-tiny | $0.25 | $0.25 |
| mistral-tiny-2312 | $0.25 | $0.25 |
| mistral-small-2402 | $0.20 | $0.60 |
| mistral-saba-latest | $0.20 | $0.60 |
| mistral-saba-2502 | $0.20 | $0.60 |
| pixtral-12b | $0.15 | $0.15 |
| pixtral-12b-latest | $0.15 | $0.15 |
| pixtral-12b-2409 | $0.15 | $0.15 |
| open-mistral-nemo | $0.15 | $0.15 |
| open-mistral-nemo-2407 | $0.15 | $0.15 |
| mistral-tiny-2407 | $0.15 | $0.15 |
| mistral-tiny-latest | $0.15 | $0.15 |
| mistral-small-latest | $0.10 | $0.30 |
| mistral-small-2503 | $0.10 | $0.30 |
| mistral-small-2501 | $0.10 | $0.30 |
| mistral-small-2409 | $0.10 | $0.30 |
| ministral-8b-latest | $0.10 | $0.10 |
| ministral-8b-2410 | $0.10 | $0.10 |
| devstral-small-latest | $0.10 | $0.30 |
| ministral-3b-latest | $0.04 | $0.04 |
| ministral-3b-2410 | $0.04 | $0.04 |
Embeddings
Target URL: https://api.mistral.ai/v1/embeddings
| |
|---|
| Content Type | application/json |
| Streaming | No |
| Model | Input / 1M tokens | Output / 1M tokens |
|---|
| mistral-embed | $0.10 | Free |
Next Steps