Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.319 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Request 2 caches its request content (not the response) changedbuild-with-claude/prompt-caching

Nearest release: v2.1.318, published 4 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+14added
Lines−14removed
From line 53 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits39to this page, all time

The whole hunk

from line 53, old and new numbered
/
lines
from line 53
5353 curl https://api.anthropic.com/v1/messages \
5454 -H "content-type: application/json" \
5555 -H "x-api-key: $ANTHROPIC_API_KEY" \
56 -H "anthropic-version: 2023-06-01" \
56 -H "anthropic-version: 2026-10-21" \
5757 -d '{
5858 "model": "claude-opus-5-5",
5959 "max_tokens": 1024,
from line 271
271271| Claude Opus 4.7 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
272272| Claude Opus 4.6 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
273273| Claude Opus 4.5 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
274| Claude Opus 4.1 ([retired, except on Bedrock and Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $15 / MTok | $18.75 / MTok | $30 / MTok | $1.50 / MTok | $75 / MTok |
274| Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $15 / MTok | $18.75 / MTok | $30 / MTok | $1.50 / MTok | $75 / MTok |
275275| Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $15 / MTok | $18.75 / MTok | $30 / MTok | $1.50 / MTok | $75 / MTok |
276276| Claude Sonnet 5.5 | $2 / MTok | $2.50 / MTok | $4 / MTok | $0.10 / MTok<sup>2</sup> | $10 / MTok |
277277| Claude Sonnet 5 | $2 / MTok | $2.50 / MTok | $4 / MTok | $0.20 / MTok | $10 / MTok |
278278| Claude Sonnet 4.6 | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
279279| Claude Sonnet 4.5 | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
280| Claude Sonnet 4 ([retired, except on Bedrock and Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
280| Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
281281| Claude Haiku 5.5 (for prompts up to 100,000 tokens) | $0.10 / MTok | $0.125 / MTok | $0.20 / MTok | $0.01 / MTok | $0.50 / MTok |
282282| Claude Haiku 5.5 (for prompts over 100,000 tokens) | $0.50 / MTok | $0.625 / MTok | $1 / MTok | $0.05 / MTok | $2.50 / MTok |
283283| Claude Haiku 4.5 | $1 / MTok | $1.25 / MTok | $2 / MTok | $0.10 / MTok | $5 / MTok |
from line 316
316316 curl https://api.anthropic.com/v1/messages \
317317 -H "content-type: application/json" \
318318 -H "x-api-key: $ANTHROPIC_API_KEY" \
319 -H "anthropic-version: 2023-06-01" \
319 -H "anthropic-version: 2026-10-21" \
320320 -d '{
321321 "model": "claude-opus-5-5",
322322 "max_tokens": 1024,
from line 628
628628* 512 tokens for Claude Fable 5.1, [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Fable 5, [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), and Claude Haiku 5.5
629629* 2,048 tokens for [Claude Mythos Preview](https://anthropic.com/glasswing) and Claude Opus 4.7
630630* 4,096 tokens for Claude Opus 4.6 and Claude Opus 4.5
631* 1,024 tokens for Claude Opus 4.8, Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 ([deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Opus 4.1 ([retired, except on Bedrock and Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)), and Claude Sonnet 4 ([retired, except on Bedrock and Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations))
631* 1,024 tokens for Claude Opus 4.8, Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 ([deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)), and Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations))
632632* 4,096 tokens for Claude Haiku 4.5
633633* 2,048 tokens for Claude Haiku 3.5 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations))
634634 
from line 779
779779### Cache storage and sharing
780780 
781781<Warning>
782 Prompt caching uses [workspace](https://platform.claude.com/docs/en/manage-claude/workspaces)-level isolation. Caches are isolated by workspace, ensuring data separation between workspaces within the same organization. This applies to the Claude API, Claude Platform on AWS, and Microsoft Foundry; Bedrock and Claude Models on Google Cloud (Google managed) maintain organization-level cache isolation. If you use multiple workspaces, review your caching strategy to account for this difference.
782 Prompt caching uses [workspace](https://platform.claude.com/docs/en/manage-claude/workspaces)-level isolation. Caches are isolated by workspace, ensuring data separation between workspaces within the same organization. This applies to the Claude API, Claude Platform on AWS, and Microsoft Foundry; Claude Models on Google Cloud (Google managed) and Bedrock maintain organization-level cache isolation. If you use multiple workspaces, review your caching strategy to account for this difference.
783783</Warning>
784784 
785* **Organization and workspace isolation:** Caches are isolated between organizations. Different organizations never share caches, even if they use identical prompts. Caches are also isolated by workspace within an organization on the Claude API, Claude Platform on AWS, and Microsoft Foundry; Bedrock and Claude Models on Google Cloud (Google managed) use organization-level isolation only.
785* **Organization and workspace isolation:** Caches are isolated between organizations. Different organizations never share caches, even if they use identical prompts. Caches are also isolated by workspace within an organization on the Claude API, Claude Platform on AWS, and Microsoft Foundry; Claude Models on Google Cloud (Google managed) and Bedrock use organization-level isolation only.
786786 
787787* **Exact matching:** Cache hits require 100 percent identical prompt segments, including all text and images up to and including the block marked with cache control.
788788 
from line 933
933933 curl https://api.anthropic.com/v1/messages \
934934 -H "content-type: application/json" \
935935 -H "x-api-key: $ANTHROPIC_API_KEY" \
936 -H "anthropic-version: 2023-06-01" \
936 -H "anthropic-version: 2026-10-21" \
937937 -d '{
938938 "model": "claude-opus-5-5",
939939 "max_tokens": 0,
from line 1168
11681168 curl https://api.anthropic.com/v1/messages \
11691169 -H "content-type: application/json" \
11701170 -H "x-api-key: $ANTHROPIC_API_KEY" \
1171 -H "anthropic-version: 2023-06-01" \
1171 -H "anthropic-version: 2026-10-21" \
11721172 -d '{
11731173 "model": "claude-opus-5-5",
11741174 "max_tokens": 0,
from line 1186
11861186 curl https://api.anthropic.com/v1/messages \
11871187 -H "content-type: application/json" \
11881188 -H "x-api-key: $ANTHROPIC_API_KEY" \
1189 -H "anthropic-version: 2023-06-01" \
1189 -H "anthropic-version: 2026-10-21" \
11901190 -d '{
11911191 "model": "claude-opus-5-5",
11921192 "max_tokens": 1024,
from line 1573
15731573 ```bash cURL
15741574 curl https://api.anthropic.com/v1/messages \
15751575 -H "x-api-key: $ANTHROPIC_API_KEY" \
1576 -H "anthropic-version: 2023-06-01" \
1576 -H "anthropic-version: 2026-10-21" \
15771577 -H "content-type: application/json" \
15781578 -d '{
15791579 "model": "claude-opus-5-5",
from line 1877
18771877 ```bash cURL
18781878 curl https://api.anthropic.com/v1/messages \
18791879 -H "x-api-key: $ANTHROPIC_API_KEY" \
1880 -H "anthropic-version: 2023-06-01" \
1880 -H "anthropic-version: 2026-10-21" \
18811881 -H "content-type: application/json" \
18821882 -d '{
18831883 "model": "claude-opus-5-5",
from line 2279
22792279 ```bash cURL
22802280 curl https://api.anthropic.com/v1/messages \
22812281 -H "x-api-key: $ANTHROPIC_API_KEY" \
2282 -H "anthropic-version: 2023-06-01" \
2282 -H "anthropic-version: 2026-10-21" \
22832283 -H "content-type: application/json" \
22842284 -d '{
22852285 "model": "claude-opus-5-5",
from line 3302
33023302 
33033303 1. Cache keys are generated using a cryptographic hash of the prompts up to the cache control point. This means only requests with identical prompts can access a specific cache.
33043304 
3305 2. On the Claude API, Claude Platform on AWS, and Microsoft Foundry, caches are isolated by workspace within an organization. On Bedrock and Claude Models on Google Cloud (Google managed), caches are isolated by organization. In every case, caches are never shared across organizations, even for identical prompts. See [Cache storage and sharing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#cache-storage-and-sharing) for details.
3305 2. On the Claude API, Claude Platform on AWS, and Microsoft Foundry, caches are isolated by workspace within an organization. On Claude Models on Google Cloud (Google managed) and Bedrock, caches are isolated by organization. In every case, caches are never shared across organizations, even for identical prompts. See [Cache storage and sharing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#cache-storage-and-sharing) for details.
33063306 
33073307 3. The caching mechanism is designed to maintain the integrity and privacy of each unique conversation or context.
33083308 
Feedback