MistralFree
Codestral
mistralai/codestral-2508
Mistral's cutting-edge coding model for low-latency tasks such as fill-in-the-middle, code correction, and test generation.
Pricing
| Input | Freeper 1M tokens |
|---|---|
| Output | Freeper 1M tokens |
Specifications
| Context window | 256Ktokens |
|---|---|
| Max output | 16Ktokens |
| Provider | Mistral |
| Capabilities | Function calling |
| Input types | text |
Use Codestral
Point your existing OpenAI SDK at xKiro and pass mistralai/codestral-2508 as the model. Nothing else in your code changes.
from openai import OpenAI
client = OpenAI(
base_url="https://api.xkiro.com/v1",
api_key="YOUR_XKIRO_KEY",
)
response = client.chat.completions.create(
model="mistralai/codestral-2508",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Supported parameters
max_tokens · temperature · top_p · stop · frequency_penalty · presence_penalty · seed · stream · tools · tool_choice · response_format · structured_outputs
Related models
- Devstral 2Free
- Ministral 3 14BFree
- Ministral 3 3BFree
- Ministral 3 8BFree
- Mistral Large 3Free
- Mistral Medium 3.5Free
Codestral costs $0 per token on xKiro. Create a key and call it today.
Get an API key