Anthropic SDKs deprecate seven old beta header values (Python 2.9.0, TypeScript 1.9.0, November 16, 2026)
Remove prompt-caching, pdfs, token-counting and four other old anthropic-beta values. Batches stop sending their old header.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. Your keys stay in this tab. They are never sent to Wirestack or saved; we only count that the panel was used.
- Anthropic API keyANTHROPIC_API_KEYGet key
Click Create key. It starts with sk-ant- and is shown only once
What changed
On November 16, 2026 Anthropic released Python SDK anthropic 2.9.0 and TypeScript SDK @anthropic-ai/sdk 1.9.0. Both deprecate old anthropic-beta header values. The API still accepts them, but a later SDK release removes them from the SDKs.
Delete these values from your requests:
prompt-caching-2024-07-31pdfs-2024-09-25token-counting-2024-11-01token-efficient-tools-2025-02-19extended-cache-ttl-2025-04-11cache-diagnosis-2026-04-07ce-user-management-2026-07-13
Two values need more care: files-api-2025-04-14 and skills-2025-10-02 select the beta response shapes. Follow the Files API and Skills migration guides before you delete them.
Batch requests change too: beta.messages.batches no longer sends message-batches-2024-09-24, which the API doesn't need. If your client sets a default anthropic-beta header, batch requests now send that header, where in some SDKs the old value replaced it.
In C#, the AnthropicBeta enum's members have new numbers, so code compiled against an earlier SDK sends a different beta value, with no error, until you rebuild it.
Prerequisites
- An app that calls Claude through the official Python, TypeScript or C# SDK
- An Anthropic API key in
ANTHROPIC_API_KEY
Steps
- Search your code for
anthropic-beta,betas=andbetas:and remove the seven values listed above. - If you use
files-api-2025-04-14orskills-2025-10-02, read the Files API and Skills migration guides first and keep those values until you have moved.
