Mistral
Mistral Codestral 2508 (batch)
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)
- Context window
- 256Ktokens
- Max output
- 205Ktokens
- Input
- $0.15/ 1M
- Output
- $0.45/ 1M
Quick start
from openai import OpenAI
client = OpenAI(
base_url="https://neurongate.net/v1",
api_key="sk-ng-your-api-key",
)
completion = client.chat.completions.create(
model="mistralai/codestral-2508:batch",
messages=[{"role": "user", "content": "Hello!"}],
)
print(completion.choices[0].message.content)Cost
| Example request | Tokens | Cost |
|---|---|---|
| Short prompt | 1K in | $0.00015 |
| Typical chat turn | 1K in · 500 out | $0.000375 |
| Document analysis | 10K in · 2K out | $0.0024 |
| Long context | 100K in · 10K out | $0.0195 |
Prices in USD. Billed per token actually used, from a balance prepaid in USDT, USDC, ETH or BTC.
Frequently asked questions
What is Mistral Codestral 2508 (batch)?
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)
How much does Mistral Codestral 2508 (batch) cost?
Mistral Codestral 2508 (batch) is priced at $0.15 per 1 million input tokens and $0.45 per 1 million output tokens when accessed via NeuronGate. You pay per token — no subscriptions required. Top up with crypto (USDT, USDC, ETH, BTC).
Does Mistral Codestral 2508 (batch) support streaming?
Yes, Mistral Codestral 2508 (batch) supports streaming responses via NeuronGate's API. Use the standard "stream": true parameter in your request.
What is the context window of Mistral Codestral 2508 (batch)?
Mistral Codestral 2508 (batch) has a context window of 256K tokens (~192K words). Maximum output is 205K tokens.
Does Mistral Codestral 2508 (batch) support function calling (tools)?
Yes, Mistral Codestral 2508 (batch) supports function calling / tool use via NeuronGate's standard API.
How do I use Mistral Codestral 2508 (batch) with NeuronGate?
Create a NeuronGate account, top up your balance with crypto, generate an API key, and use the model id mistralai/codestral-2508:batch in your requests. NeuronGate uses the OpenAI-compatible API format — set your base URL to https://neurongate.net/v1.