Requesty
Mistral AI logo

codestral-latest

Mistral AI/Proprietary/1 provider

Codestral-latest is Mistral AI’s state-of-the-art open-weight language model built specifically for software development and code generation. It is fine-tuned to assist developers with code generation, completion, refactoring, and debugging across more than 80 programming languages.More

Which id to call

mistral/codestral-latest

This model has no managed policy yet, so call the provider endpoint directly. Every id in the endpoints table works the same way.

From /1M input

$0.33

Mistral AI SAS

Context

131K

tokens

Endpoints

1

1 region

Regions

1

chat

Capabilities 2/8

VisionReasoningTool callingCachingWeb searchJSON schemaComputer useImage generation

1 endpoint / 1 region

Providers serving codestral-latest

Provider prices, per 1M tokens. Pay as you go adds 5%, or 0% on your own keys.

Providers serving codestral-latest, with pricing and measured performance. The best value in each column is highlighted.
RankPrivacy
1Mistral AI SASEU131K$0.33$0.99$0.33zdr

A column is blank where no qualifying sample exists, and every row links to that provider's endpoint page.

model=

Which id to call

One base url, https://router.requesty.ai/v1, and one key for every id here.

mistral/codestral-latest

This model has no managed policy yet, so call the provider endpoint directly. Every id in the endpoints table works the same way.

OpenAI compatible

Call it in three lines

Change the base url, use your Requesty key, set the model to any id on the left. Existing OpenAI SDK code needs no other edit.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from openai import OpenAI client = OpenAI( api_key="YOUR_REQUESTY_API_KEY", base_url="https://router.requesty.ai/v1", ) response = client.chat.completions.create( model="mistral/codestral-latest", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)

Artificial Analysis

Benchmark scores

GPQA Diamondreasoning
34.9%

Graduate-level physics, chemistry & biology questions designed to resist Googling.

Intelligence Indexreasoning
5.5%

Artificial Analysis Intelligence Index: a composite of multiple evaluations measuring overall model capability.

Scores from artificialanalysis.ai. They measure the model, not the provider, so they are the same on every endpoint above.

6

More from Mistral AI

Reference

codestral-latest questions

Which providers serve codestral-latest?

codestral-latest is available from 1 provider through Requesty: Mistral AI SAS. All endpoints share one OpenAI-compatible API and one key, and Requesty fails over between them automatically.

How much does codestral-latest cost?

Pricing starts at $0.33 per million input tokens and $0.99 per million output tokens on Mistral AI SAS, the cheapest endpoint. Prices vary by provider and region; the table above shows every endpoint. Those are the upstream provider rates: pay as you go adds 5% on top, or 0% if you bring your own provider keys.

Is codestral-latest open weights?

No. codestral-latest is a proprietary model from Mistral AI, served through Mistral AI's own API and licensed cloud platforms.

What is the context window of codestral-latest?

codestral-latest supports up to 131K tokens of context. Some providers expose a smaller window; check the per-endpoint context column above.

How do I use codestral-latest with the OpenAI SDK?

Install the OpenAI SDK, set base_url to "https://router.requesty.ai/v1", set your API key to your Requesty key, and set the model to "mistral/codestral-latest" or any endpoint id from the table above. The quickstart section shows Python, JavaScript and cURL snippets.

Route codestral-latest through one endpoint

One key for 1 provider on this model and 600+ others. No markup on provider prices, automatic failover, caching built in.

Benchmark rankings