Model

Codestral 2508.
Same key.

by Mistral AI

Call Codestral 2508 with the same key and base_url as the rest of the catalog. Billed per token from your prepaid balance.

mistralai/codestral-2508Try it in the console
Price per 1M tokens
Inputprompt tokens$0.30
Outputcompletion tokens$0.90
Cache readcached prompt tokens$0.030

What Utopixel charges your balance, per 1M tokens, base tier.

Quick facts
Model id
mistralai/codestral-2508
Provider
Mistral AI
Context
256K
Max output
205K
Modalities
text, file to text
Knowledge cutoff
2025-03-31
APIs
OpenAI SDKAnthropic SDK
Billing
Prepaid balance, usage.cost on every response
About this model

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)

Request

Call Codestral 2508 today.

Same request shape across the catalog. Swap the base_url, keep your SDK, set model to the id.

OpenAI SDKbase_url https://utopixel.online/api/v1
main.pyopenai
1import os
2from openai import OpenAI
3
4client = OpenAI(
+ base_url="https://utopixel.online/api/v1",
6 api_key=os.environ["UTOPIXEL_API_KEY"],
7)
8r = client.chat.completions.create(
9 model="mistralai/codestral-2508",
10 messages=[{"role": "user", "content": "Hello"}],
11)
12print(r.usage.cost)
Anthropic SDKbase_url https://utopixel.online/api
main.pyanthropic
1import os
2import anthropic
3
4client = anthropic.Anthropic(
+ base_url="https://utopixel.online/api",
6 api_key=os.environ["UTOPIXEL_API_KEY"],
7)
8m = client.messages.create(
9 model="mistralai/codestral-2508",
10 max_tokens=1024,
11 messages=[{"role": "user", "content": "Hello"}],
12)
cURL
1curl https://utopixel.online/api/v1/chat/completions \
2 -H "Authorization: Bearer $UTOPIXEL_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"model": "mistralai/codestral-2508", "messages": [{"role": "user", "content": "Hello"}]}'
Availability

Where to call it.

Latency appears once a channel has enough measured requests.

RouteContextInput / MOutput / MCache read / M
Utopixel
OpenAI ChatAnthropic Messages
256K$0.30$0.90$0.030
Supported parameters
frequency_penaltymax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p
01Cost example

What a call
costs you.

Tokens times the Utopixel price. Drag the sliders to match your traffic. Every response returns its own usage.cost.

Cost example, Codestral 2508

Per requestPer month
Total per month$67.50
02Fallback

Use Codestral 2508
as a backup.

Put Codestral 2508 in a models array. If the first model's upstream errors, Utopixel sends the same request to the next one. You pay only for the call that answers.

See fallback docs
request.jsonPOST /v1/chat/completions
1{
- "model": "openai/gpt-6.1-sol",
+ "models": [
+ "openai/gpt-6.1-sol",
+ "mistralai/codestral-2508"
+ ],
7 "messages": [ ... ]
8}
openai/gpt-6.1-solattempt 1, upstream error502
mistralai/codestral-2508attempt 2, answered200

Start building in minutes.

One API key for the models of OpenAI, Google, DeepSeek, Moonshot AI, Qwen, xAI, Z.ai, Meta, Amazon, AionLabs, Anthropic, Baidu, ByteDance Seed, Cohere, Elorian, Fireworks AI, IBM, inclusionAI, Inference.net, KT, Liquid AI, Meituan, Meta, MiniMax, Mistral AI, Moondream, Motif Technologies, Nex AGI, NVIDIA, Particle AI, Perceptron, Prism ML, Reflection AI, Reka, Relace, Ricursive AI, Sakana AI, StepFun, Tencent, Thinking Machines, Unbiased, Upstage, Writer and Xiaomi. Start free, no card needed.