Skip to main content

Text model

Codestral 2508

mistralai/codestral-2508

mistralai/codestral-2508 is a language model from Mistral AI you can call on the OceanToken API at $0.30 per 1M input tokens and $0.90 per 1M output tokens, with a 256K-token context window and up to 205K output tokens; it supports tool calling.

At a glance

Model IDmistralai/codestral-2508
TypeText
PublisherMistral AI
Context window256,000 tokens
Max output204,800 tokens
Input price$0.30 per 1M tokens
Output price$0.90 per 1M tokens
Cached input price$0.03 per 1M tokens
Capabilitiestool calling
Endpoint/v1/chat/completions, /v1/responses
API shapeOpenAI-compatible
In the catalog since2025-08-01

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

curl https://api.oceantoken.ai/v1/chat/completions \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "mistralai/codestral-2508", "messages": [{"role": "user", "content": "Hello"}]}'

Compared with similar models

Text models on OceanToken closest to mistralai/codestral-2508 in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per 1M tokens)
Codestral 2508Mistral AI256,000$0.30 / $0.90
Dolphin Mistral 24B Venice Edition
cognitivecomputations/dolphin-mistral-24b-venice-edition
Cognitivecomputations128K$0.20 / $0.90
Llama 3.3 70B Instruct
meta-llama/llama-3.3-70b-instruct
Meta131K$0.45 / $0.90
GLM-4.6v
z-ai/glm-4.6v
Z.ai131K$0.30 / $0.90

More from Mistral AI

All Mistral AI models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.