by MistralReleased Aug 1, 2025
mistralai/codestral-2508Mistral'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
| Billed for | You pay |
|---|---|
| Input tokens | $0.36 / 1M |
| Output tokens | $1.08 / 1M |
| Cached input, read | $0.036 / 1M |
import OpenAI from "openai";const ai = new OpenAI({ baseURL: "https://relayfor.si/api/v1", apiKey: process.env.RELAYFOR_ROUTER_KEY,});const reply = await ai.chat.completions.create({ model: "mistralai/codestral-2508", messages: [{ role: "user", content: "Welcome the 1,000th holder in one line." }],});$0.36 per million input tokens and $1.08 per million output tokens, paid from the token's AI credit. A call of 2,000 tokens in and 500 out costs about $0.0013.
Make a router key for one of your tokens on the dashboard, point any OpenAI or Anthropic SDK at https://relayfor.si/api/v1 and send the model id mistralai/codestral-2508. The token's AI credit pays for each call.
Up to 256,000 tokens of context, and up to 204,800 tokens in one answer.
No. The RFS Router passes each call through and keeps only its token counts and cost, for the token's usage page.
| Provider | Answered, 24 h |
|---|---|
| Mistral | 99.8% |