AICredits logo
mistralai

Mistral: Codestral 2508

mistralai/codestral-2508

Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. [Blog Post](https://mistral.ai/news/codestral-25-08)

Supported APIs

Chat API
Context
256K
Max output
Input / 1M
₹30.20
Cached / 1M
₹3.02
Output / 1M
₹90.59

Pricing

Token typeUSD / 1MINR / 1M
Input$0.300₹30.20
Cached inputprompt cache read$0.0303.02
Output$0.900₹90.59

INR prices include forex conversion. Billed per token in your wallet. See the cost calculator.

Quickstart

Call Mistral: Codestral 2508 through the supported APIs shown above — just set the base URL and your AICredits key.

cURL — /v1/chat/completions
curl https://api.aicredits.in/v1/chat/completions \
  -H "Authorization: Bearer $AICREDITS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistralai/codestral-2508",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

New here? Follow the quickstart guide or browse all models.