Codestral
Coming soonMistral's model for code.
Context window—
Input$0.45630 IQDper 1M tokens
Output$1.351,870 IQDper 1M tokens
Input modalitiesText→ Text
Providers1
Overview
| Model ID | mistralai/codestral |
|---|---|
| Series | Mistral AI |
| Context window | — |
| Max output | — |
| Input modalities | Text |
| Output modalities | Text |
| Providers | 1 |
Price on OPTES
Our price, per provider, in US dollars and Iraqi dinars (1 USD = 1,380 IQD, rounded up to 10 IQD).
| Provider | Input | Output | Note |
|---|---|---|---|
| Mistral AI | $0.45 · 630 IQD | $1.35 · 1,870 IQD |
Providers
Our price, per provider, in US dollars and Iraqi dinars (1 USD = 1,380 IQD, rounded up to 10 IQD).
| Provider | Input | Output | Note |
|---|---|---|---|
| Mistral AI | $0.45 · 630 IQD | $1.35 · 1,870 IQD |
Call it through the OPTES API
This model is coming soon to OPTES. This is how the call will look; your OPTES key will work for it.
curl https://api.optes3.com/v1/chat/completions \ -H "Authorization: Bearer $OPTES_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "mistralai/codestral", "messages": [{"role": "user", "content": "Suggest three names for a café in Baghdad."}] }'import osfrom openai import OpenAIclient = OpenAI(base_url="https://api.optes3.com/v1", api_key=os.environ["OPTES_API_KEY"])resp = client.chat.completions.create( model="mistralai/codestral", messages=[{"role": "user", "content": "Suggest three names for a café in Baghdad."}],)print(resp.choices[0].message.content)import OpenAI from "openai";const client = new OpenAI({ baseURL: "https://api.optes3.com/v1", apiKey: process.env.OPTES_API_KEY });const resp = await client.chat.completions.create({ model: "mistralai/codestral", messages: [{ role: "user", content: "Suggest three names for a café in Baghdad." }],});console.log(resp.choices[0].message.content);Coming soon to OPTES Coming soon
Get your OPTES API key now. The same key will call this model when it opens.