Back to model shop
Mistral
Rendered from D1 model snapshot · D1 read 122msCache check: checking

mistral/codestral-latest

Open weights
Codestral (latest)

Mistral code model for completions, refactors, and developer IDE workflows

This model's cache

This model page returns the exact headers below. The page and /api/models/mistral--codestral-latest share the model:mistral--codestral-latest tag, so invalidation stays scoped to this model.

Cache key/models/mistral--codestral-latest
Cache-Controlpublic, max-age=300, stale-while-revalidate=3600
Cache-Tagcatalogmodel:mistral--codestral-latest

Workers Cache derives the key from this path/query, plus the Worker entrypoint and current Worker version.

export const Route = createFileRoute('/models/$modelSlug')({
  headers: () => ({
    'Cache-Control': 'public, max-age=300, stale-while-revalidate=3600',
    'Cache-Tag': 'catalog,model:mistral--codestral-latest',
  }),
})

Invalidate this cache tag

await ctx.cache.purge({ tags: ['model:mistral--codestral-latest'] })

Use this when one model changes and you do not want to evict the whole catalog.

CodestralTool callingTemperature control
Released
May 29, 2024
Last updated
Jan 4, 2025
Context window
256K tokens
Max output
4.1K tokens
Open weights
Yes
Family
Codestral

Starts at

$0.3

per 1M input tokens

Output

$0.9

Sellers

2

No cart or checkout in this MVP — pick a provider below and open their docs when you're ready to use it.

Capabilities & modalities
Reasoning
Tool calling
Structured output
Attachments
InputText
OutputText
Provider shelf
Where to get Codestral (latest)

Sorted by lowest input price

ProviderInput / 1MOutput / 1MContext

Mistral

codestral-latest

$0.3$0.9256KDocs

Merge Gateway

mistral/codestral-latest

$0.3$0.9256KDocs
More from Mistral