Hormouz AIHormouzSign in

Mistral: Codestral 2508 (batch): AI model

Context window:
256,000 tokens
Input:
$0.15/1M tokens
Output:
$0.45/1M tokens
Type:
text
  • Tools
  • Streaming
  • Long context

Mistral: Codestral 2508 (batch) is a AI model from Mistral AI, available through Hormouz via an OpenAI-compatible API with stable access from inside Iran.

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

Quickstart

curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistralai/codestral-2508:batch",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Specs

VendorMistral AI
TypeText
Context window256,000 tokens
Pricing$0.15/M in · $0.45/M out
APIChat Completions
CapabilitiesStreaming · Tools
Code
Top 99%
840Elo
Win rate: 30.2%Avg time: 6.1s
Data Viz
Top 99%
785Elo
Win rate: 30.8%Avg time: 3.9s
Game Dev
Top 99%
824Elo
Win rate: 27.6%Avg time: 6.8s
UI Component
Top 99%
859Elo
Win rate: 32.9%Avg time: 5.5s
Website
Top 99%
816Elo
Win rate: 28.3%Avg time: 6.1s
3D
Top 88%
1,030Elo
Win rate: 45.4%Avg time: 7.8s

Metrics sourced from Design Arena

Code example

cURL
curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistralai/codestral-2508:batch",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Python
from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
    model="mistralai/codestral-2508:batch",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
  model: "mistralai/codestral-2508:batch",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Buy the Mistral: Codestral 2508 (batch) API, paid in rial

  • Buy credit with an Iranian bank card; no foreign card or account needed.
  • One Hormouz key reaches Mistral: Codestral 2508 (batch) and 600+ other models, and you pay only for what you use.
  • No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Create an account

Use via Hormouz

Connect to this model and 600+ others with one API key, then see usage down to each request.

Request company access

Updated 2026-10-13