context-editing changedbuild-with-claude/context-editing
Recorded here
Lines+66added
Lines−4removed
From line
2
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits25to this page, all time
## Availability ### API support #### [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) ### Required beta headers ### Data handling
The whole hunk
from line 2, old and new numbered
/
from line 2
22title: Context editing
33url: https://platform.claude.com/docs/en/build-with-claude/context-editing
44description: Automatically manage conversation context as it grows with context editing.
5featureMetadata:
6 status: beta
7 betaHeader: context-management-2025-06-27
8 zdr:
9 eligibility: eligible
10 note: Excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements). Context edits (tool use clearing and thinking clearing) are applied in real time.
11 supportedModels:
12 - claude-fable-5-1
13 - claude-mythos-5-1
14 - claude-fable-5
15 - claude-mythos-5
16 - claude-mythos-preview
17 - claude-opus-5-5
18 - claude-opus-5
19 - claude-sonnet-5-5
20 - claude-sonnet-5
21 - claude-haiku-5-5
22 - claude-haiku-4-5-20251001
23 - claude-opus-4-8
24 - claude-opus-4-7
25 - claude-opus-4-6
26 - claude-sonnet-4-6
27 - claude-opus-4-5-20251101
28 - claude-sonnet-4-5-20250929
29 supportedPlatforms:
30 Claude API: beta
31 Claude Platform on AWS: beta
32 Amazon Bedrock: beta
33 Amazon Bedrock (InvokeModel): beta
34 Claude Models on Google Cloud (Google managed): beta
35 Microsoft Foundry: beta
536---
637
7<Note>
8 To learn how zero data retention (ZDR) applies to this feature, see [API and data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention).
9</Note>
10
1138## Overview
1239
1340<Note>
from line 2963
29362963 Reduce cost and latency by caching prompt prefixes, and learn how context editing interacts with the cache.
29372964 </Card>
29382965</CardGroup>
2966
2967## Availability
2968
2969Context editing is in beta on every model and eligible for zero data retention.
2970
2971### API support
2972
2973#### [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages)
2974
2975* Availability: Available
2976
2977| Status | Cloud platforms |
2978| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2979| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Amazon Bedrock (InvokeModel)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
2980
2981### Required beta headers
2982
2983[Beta headers overview](https://platform.claude.com/docs/en/api/beta-headers)
2984
2985Beta headers allow you to access experimental features and new model capabilities before they become part of the standard API.
2986
2987* `context-management-2025-06-27`
2988
2989### Data handling
2990
2991[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
2992
2993| Item | Zero data retention | HIPAA |
2994| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
2995| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Not eligible |
2996| Details | Context edits (tool use clearing and thinking clearing) are applied in real time. | — |
2997
2998Applicable endpoints:
2999
3000* `/v1/messages` with `context_management`
29393001
No line in this hunk matches that.