Anthropic API
Core Facts
Token caching (Prompt Caching) is a cost-optimization mechanism in large model APIs; when the same prefix appears repeatedly across multiple requests, the computation result can be cached and charged at a lower rate.
Prompt Caching is a mechanism provided by large-model service providers such as the Anthropic API: when the request prefix is exactly the same as that of a previous request, the server reuses the already-computed KV Cache, the cache-hit portion is billed at 0.1 times the input price, and the first cache write is billed at 1.25 times.
Prompt caching requires the request prefix to match byte for byte, and caches usually have a time to live (such as 5 minutes to 1 hour), after which they must be written again.
Timeline (last 90 days)
The Advisor feature is currently available through the Anthropic API and Claude Platform on AWS, and is not yet supported on Amazon Bedrock, Google Cloud Agent Platform, or Microsoft Foundry.
When the advisor is invoked, it re-reads the full session as input, and this reading does not enter prompt caching, so each summon is billed at full price for input tokens; the main model's cache is unaffected, and the advisor's returned suggestions are cached locally in subsequent steps.
Advisor Mode is offered through the Anthropic API and the Claude Platform on AWS, but it is not yet supported on Amazon Bedrock, Google Cloud Agent Platform, and Microsoft Foundry.
The "model-layer decoupling" of Free Claude Code is essentially inserting a middleware layer compatible with the Anthropic API protocol between Claude Code and model services: the client sends requests in its original format, the middleware parses them and forwards them to OpenAI-compatible or custom interfaces, then converts the returned results into a format the client can recognize.
The $100 in API credits for Max and $200 for Ultra require staying on an eligible plan for 7 full days and linking an API organization, and only offset calls made with API keys; they cannot be used for chat or client interactions such as Claude Code.
Most cost waste does not come from the model's unit price but from using whole-repository context and the strongest model in scenarios that don't need them; shifting cost from model unit price to engineering choices such as request structure and scheduling strategy is the key to cost control.
The Claude apps gateway is a gateway-layer component for enterprise deployments, positioned between clients and model upstreams (such as the Anthropic API, Amazon Bedrock and Vertex AI), responsible for unified authentication, policy distribution, model access allowlists and cost accounting.
Halogen is precisely optimized for AMD's Strix Halo chip (GFX1151) plus one model family; it has no browser UI and is a pure API backend, natively implements the Anthropic API, and Cloud Code can connect directly to local models.
A beta value is a request header marker in the Anthropic API used to enable experimental features, typically sent with requests in the form anthropic-beta.
Claude Code supports forwarding requests via configuration to other services compatible with the Anthropic API format, as described in the official documentation.
24 more timeline events
All Facts (20)
Token caching (Prompt Caching) is a cost-optimization mechanism in large model APIs; when the same prefix appears repeatedly across multiple requests, the computation result can be cached and charged at a lower rate.
80%VerifiedPrompt Caching is a mechanism provided by large-model service providers such as the Anthropic API: when the request prefix is exactly the same as that of a previous request, the server reuses the already-computed KV Cache, the cache-hit portion is billed at 0.1 times the input price, and the first cache write is billed at 1.25 times.
75%VerifiedPrompt caching requires the request prefix to match byte for byte, and caches usually have a time to live (such as 5 minutes to 1 hour), after which they must be written again.
75%VerifiedPrompt caching is a capability of the Anthropic API: when the prefix portion of a request is exactly identical to the previous request, the server can reuse the already-computed intermediate state and skip redundant prefill computation.
75%VerifiedThe free credit can be used for the Claude API, Agent SDK, Managed Agent and Playground.
65%VerifiedCache entries have a validity period of approximately 5 minutes (default) to 1 hour (extendable), after which they are treated as cache misses.
65%UnverifiedAnthropic uses a token-based API pricing model, where stronger models (such as the Opus series) have higher unit prices.
60%UnverifiedIn OpenAI's API specification, when the model decides to call a tool, the finish_reason field in the response is set to tool_calls, and the message object contains a tool_calls array, each element of which includes id, type, function.name, and function.arguments.
60%UnverifiedWhen the advisor is invoked, it re-reads the full session as input, and this reading does not enter prompt caching, so each summon is billed at full price for input tokens; the main model's cache is unaffected, and the advisor's returned suggestions are cached locally in subsequent steps.
50%UnverifiedThe Advisor feature is currently available through the Anthropic API and Claude Platform on AWS, and is not yet supported on Amazon Bedrock, Google Cloud Agent Platform, or Microsoft Foundry.
50%UnverifiedAdvisor Mode is offered through the Anthropic API and the Claude Platform on AWS, but it is not yet supported on Amazon Bedrock, Google Cloud Agent Platform, and Microsoft Foundry.
50%UnverifiedThe "model-layer decoupling" of Free Claude Code is essentially inserting a middleware layer compatible with the Anthropic API protocol between Claude Code and model services: the client sends requests in its original format, the middleware parses them and forwards them to OpenAI-compatible or custom interfaces, then converts the returned results into a format the client can recognize.
50%UnverifiedThe $100 in API credits for Max and $200 for Ultra require staying on an eligible plan for 7 full days and linking an API organization, and only offset calls made with API keys; they cannot be used for chat or client interactions such as Claude Code.
50%UnverifiedMost cost waste does not come from the model's unit price but from using whole-repository context and the strongest model in scenarios that don't need them; shifting cost from model unit price to engineering choices such as request structure and scheduling strategy is the key to cost control.
50%UnverifiedThe Claude apps gateway is a gateway-layer component for enterprise deployments, positioned between clients and model upstreams (such as the Anthropic API, Amazon Bedrock and Vertex AI), responsible for unified authentication, policy distribution, model access allowlists and cost accounting.
50%UnverifiedHalogen is precisely optimized for AMD's Strix Halo chip (GFX1151) plus one model family; it has no browser UI and is a pure API backend, natively implements the Anthropic API, and Cloud Code can connect directly to local models.
50%UnverifiedA beta value is a request header marker in the Anthropic API used to enable experimental features, typically sent with requests in the form anthropic-beta.
50%UnverifiedClaude Code supports forwarding requests via configuration to other services compatible with the Anthropic API format, as described in the official documentation.
50%UnverifiedThe API version (interface contract) and the model version (model ID) are two independent dimensions: the former constrains interface behavior, and the latter determines inference capability.
50%UnverifiedThe Anthropic API uses a date-based versioning mechanism: each API version is named after its release date and is specified via the anthropic-version request header or SDK configuration, with semantics frozen after release.
50%