Back to model shop
Anthropic
Rendered from D1 model snapshot · D1 read 108msCache check: checking

anthropic/claude-3-5-sonnet-20241022

Claude Sonnet 3.5 v2

Balanced Claude model for coding, analysis, agent workflows, and cost control

This model's cache

This model page returns the exact headers below. The page and /api/models/anthropic--claude-3-5-sonnet-20241022 share the model:anthropic--claude-3-5-sonnet-20241022 tag, so invalidation stays scoped to this model.

Cache key/models/anthropic--claude-3-5-sonnet-20241022
Cache-Controlpublic, max-age=300, stale-while-revalidate=3600
Cache-Tagcatalogmodel:anthropic--claude-3-5-sonnet-20241022

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:anthropic--claude-3-5-sonnet-20241022',
  }),
})

Invalidate this cache tag

await ctx.cache.purge({ tags: ['model:anthropic--claude-3-5-sonnet-20241022'] })

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

Claude SonnetTool callingAttachmentsTemperature control
Released
Oct 22, 2024
Last updated
Oct 22, 2024
Context window
200K tokens
Max output
8.2K tokens
Open weights
No
Family
Claude Sonnet

Starts at

Quote

per 1M input tokens

Output

Quote

Sellers

0

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, Image, Pdf
OutputText
Provider shelf
Where to get Claude Sonnet 3.5 v2

Sorted by lowest input price

Models.dev has metadata for this model, but this MVP snapshot did not find a matching provider offer.

More from Anthropic