Get started
Mistral
Mistral

Codestral 2508

Codestral 2508 is a large language model by Mistral with support for function calling and structured output. It supports a 256K token context window with up to 256K tokens of output. Priced at $0.3 per million input tokens and $0.9 per million output tokens, it is one of the most cost-efficient options in its class. Access Codestral 2508 through Inworld Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
Function CallingResponse Schema

Step 1 — Create Router

curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "compare-frontier-models", "defaultRoute": { "route_id": "default", "variants": [ { "variant": { "variant_id": "mistral/codestral-2508-a", "model_id": "mistral/codestral-2508" }, "weight": 33 }, { "variant": { "variant_id": "mistral/codestral-latest-b", "model_id": "mistral/codestral-latest" }, "weight": 33 }, { "variant": { "variant_id": "mistral/devstral-2-c", "model_id": "mistral/devstral-2" }, "weight": 34 } ] } }'

Step 2 — Chat Completion

curl --location 'https://api.inworld.ai/v1/chat/completions' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "inworld/compare-frontier-models", "messages": [{"role": "user", "content": "Hello!"}] }'

Codestral 2508 pricing and providers

Access Codestral 2508 through Mistral via Inworld Router or Realtime API. By using the AI provider(s) below you acknowledge you reviewed and agree to their terms listed in the Legal section under the AI provider's name.
CapabilitiesInput modalitiesOutput modalities
MistralMistral256K256K$0.30$0.90

Other Mistral models available through Inworld

Compare Codestral 2508 with other Mistral models available through Inworld Router or Realtime API.
CapabilitiesInput modalitiesOutput modalitiesInference provider
MistralCodestral Latest32K8.2K$1.00$3.00
MistralDevstral 2256K256K$0.40$2.00
MistralDevstral Medium 2507128K128K$0.40$2.00
MistralDevstral Medium Latest256K256K$0.40$2.00
MistralDevstral Small128K128K$0.10$0.30
MistralLabs Mistral Small Creative$0.10$0.30
MistralMagistral Medium 250940K40K$2.00$5.00+1
MistralMagistral Medium Latest40K40K$2.00$5.00+1
MistralMagistral Small Latest40K40K$0.50$1.50+1
MistralMinistral 3 14b$0.20$0.20
MistralMinistral 3 3b$0.10$0.10
MistralMinistral 3 8b$0.15$0.15
MistralMistral Large 2128K128K$2.00$6.00
MistralMistral Large 3262.1K262.1K$0.50$1.50
MistralMistral Medium32K8.2K$2.70$8.10
MistralMistral Medium 2505131.1K8.2K$0.40$2.00
MistralMistral Medium 2508$0.40$2.00
MistralMistral Medium Latest131.1K131.1K$0.40$2.00
MistralMistral Small 2603$0.15$0.60
MistralMistral Small 3.2131.1K131.1K$0.06$0.18
MistralMistralai/Mistral Nemo Instruct 2407131.1K131.1K$0.02$0.04
MistralMistralai/Mistral Small 24B Instruct 250132.8K32.8K$0.05$0.08
MistralMistralai/Mistral Small 3.2 24B Instruct 2506128K128K$0.075$0.20
MistralMistralai/Mixtral 8x7B Instruct V0.132.8K32.8K$0.54$0.54
MistralOpen Mistral Nemo128K128K$0.30$0.30
MistralOpen Mistral Nemo 2407128K128K$0.30$0.30
MistralPixtral Large 2411128K128K$2.00$6.00

Start building with Codestral 2508

Access Codestral 2508 and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI
Codestral 2508 by Mistral — Pricing, Specs & API Access | Inworld