Function calling Code

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. ai/news/codestral-25-08)

What it's best for

Best for heavier coding work: multi-file implementation, debugging, code review and complex refactors. Bigger code models cost more per token but need fewer retries on hard problems. It supports function calling, so it can drive tools and agent workflows.

Pricing

Input $0.37 (£0.28) per 1M tokens
Output $1.11 (£0.83) per 1M tokens
Context window 256K tokens
Hosting Partner-routed vetted partner provider

Prices updated daily — last generated 2026-07-08.

Billing is metered per request in GBP on the same monthly invoice as your apps — no subscription, no minimum. We list every model once, at the cheapest route we can serve it on; if we have to fail over to a more expensive route, we absorb the difference and your price does not change.

Where your data is processed

Requests to Codestral 2508 are routed to a vetted partner provider and processed on that provider's infrastructure — they leave our infrastructure, and the UK-residency guarantee that applies to our UK-hosted models does not apply here. We hold the provider credentials server-side and route on cost and availability. If you need prompts that never leave our own infrastructure, use one of our UK-hosted models.

Call it in two minutes

The gateway is OpenAI-compatible: point your SDK or HTTP client at api.node.uk and use the model id codestral-2508. Credentials come from your portal, with £15 of free credit on signup.

curl https://api.node.uk/api/v1/models/codestral-2508/v1/chat/completions \
  -H "Authorization: Bearer $NODE_GATEWAY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model": "codestral-2508", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI

client = OpenAI(
    base_url="https://api.node.uk/api/v1/models/codestral-2508/v1",
    api_key=NODE_GATEWAY_TOKEN,
)

reply = client.chat.completions.create(
    model="codestral-2508",
    messages=[{"role": "user", "content": "Hello"}],
)

Browse the full model catalogue, read which model for which task, or see how the AI Gateway works.