Codestral 2508
Mistral: Codestral 2508 is a OpenRouter model listed in the NextModel catalog for General chat via OpenRouter, API workloads workloads. Its listed price is $0.058 / 1M tokens input and $0.169 / 1M tokens output per 1M tokens, with a 256k token context window.
What is Codestral 2508 in NextModel?
Mistral: Codestral 2508 is a OpenRouter model listed in the NextModel catalog for General chat via OpenRouter, API workloads workloads. Its listed price is $0.058 / 1M tokens input and $0.169 / 1M tokens output per 1M tokens, with a 256k token context window.
Best use cases
- General chat via OpenRouter
- API workloads
OpenAI-compatible code example
Keep the OpenAI SDK style, set base_url to NextModel, and use the catalog model ID mistralai--codestral-2508.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.nextmodel.app/v1"
)
resp = client.chat.completions.create(
model="mistralai/codestral-2508",
messages=[{"role": "user", "content": "Hello from NextModel"}]
)
print(resp.choices[0].message.content)Similar alternatives
This model always redirects to the latest model in the Claude Fable family.
This model always redirects to the latest model in the Anthropic Claude Haiku family.
This model always redirects to the latest model in the Claude Opus family.
Compare Mistral: Codestral 2508
FAQ