Message Batches API changedbuild-with-claude/batch-processing
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+11added
Lines−11removed
From line
117
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits30to this page, all time
The whole hunk
from line 117, old and new numbered
/
from line 117
117117| Claude Opus 4.7 | $2.50 / MTok | $12.50 / MTok |
118118| Claude Opus 4.6 | $2.50 / MTok | $12.50 / MTok |
119119| Claude Opus 4.5 | $2.50 / MTok | $12.50 / MTok |
120| 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)) | $7.50 / MTok | $37.50 / MTok |
120| 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)) | $7.50 / MTok | $37.50 / MTok |
121121| Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $7.50 / MTok | $37.50 / MTok |
122122| Claude Sonnet 5.5 | $1 / MTok | $5 / MTok |
123123| Claude Sonnet 5 | $1 / MTok | $5 / MTok |
124124| Claude Sonnet 4.6 | $1.50 / MTok | $7.50 / MTok |
125125| Claude Sonnet 4.5 | $1.50 / MTok | $7.50 / MTok |
126| 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)) | $1.50 / MTok | $7.50 / MTok |
126| 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)) | $1.50 / MTok | $7.50 / MTok |
127127| Claude Haiku 5.5 (for prompts up to 100,000 tokens) | $0.05 / MTok | $0.25 / MTok |
128128| Claude Haiku 5.5 (for prompts over 100,000 tokens) | $0.25 / MTok | $1.25 / MTok |
129129| Claude Haiku 4.5 | $0.50 / MTok | $2.50 / MTok |
from line 148
148148 ```bash cURL
149149 curl https://api.anthropic.com/v1/messages/batches \
150150 -H "x-api-key: $ANTHROPIC_API_KEY" \
151 -H "anthropic-version: 2023-06-01" \
151 -H "anthropic-version: 2026-10-21" \
152152 -H "content-type: application/json" \
153153 -d '{
154154 "requests": [
from line 479
479479 # Check the status; repeat until processing_status is "ended"
480480 curl "https://api.anthropic.com/v1/messages/batches/$MESSAGE_BATCH_ID" \
481481 -H "x-api-key: $ANTHROPIC_API_KEY" \
482 -H "anthropic-version: 2023-06-01"
482 -H "anthropic-version: 2026-10-21"
483483 ```
484484
485485 ```bash CLI
from line 628
628628 # perform automatic pagination.)
629629 curl -s "https://api.anthropic.com/v1/messages/batches?limit=20" \
630630 -H "x-api-key: $ANTHROPIC_API_KEY" \
631 -H "anthropic-version: 2023-06-01"
631 -H "anthropic-version: 2026-10-21"
632632 ```
633633
634634 ```bash CLI
from line 745
745745 # Streams the batch's .jsonl results, one result on each line.
746746 # For per-result handling (retries, validation errors), use the Claude SDK.
747747 curl "https://api.anthropic.com/v1/messages/batches/msgbatch_01HkcTjaV5uDC8jWR4ZsDV8d/results" \
748 -H "anthropic-version: 2023-06-01" \
748 -H "anthropic-version: 2026-10-21" \
749749 -H "x-api-key: $ANTHROPIC_API_KEY"
750750 ```
751751
from line 792
792792 console.log(`Success! ${result.custom_id}`);
793793 break;
794794 case "errored":
795 if (result.result.error.type === "invalid_request_error") {
795 if (result.result.error.error.type === "invalid_request_error") {
796796 // Request body must be fixed before re-sending request
797797 console.log(`Validation error: ${result.custom_id}`);
798798 } else {
from line 931
931931 when Anthropic::Models::Messages::MessageBatchSucceededResult
932932 puts "Success! #{result.custom_id}"
933933 when Anthropic::Models::Messages::MessageBatchErroredResult
934 if outcome.error.type == :invalid_request
934 if outcome.error.error.type == :invalid_request_error
935935 puts "Validation error: #{result.custom_id}"
936936 else
937937 puts "Server error: #{result.custom_id}"
from line 968
968968 ```bash cURL
969969 curl -X POST https://api.anthropic.com/v1/messages/batches/$MESSAGE_BATCH_ID/cancel \
970970 -H "x-api-key: $ANTHROPIC_API_KEY" \
971 -H "anthropic-version: 2023-06-01"
971 -H "anthropic-version: 2026-10-21"
972972 ```
973973
974974 ```bash CLI
from line 1080
10801080 ```bash cURL
10811081 curl https://api.anthropic.com/v1/messages/batches \
10821082 -H "x-api-key: $ANTHROPIC_API_KEY" \
1083 -H "anthropic-version: 2023-06-01" \
1083 -H "anthropic-version: 2026-10-21" \
10841084 -H "content-type: application/json" \
10851085 -d '{
10861086 "requests": [
from line 1590
15901590 ```bash cURL
15911591 curl https://api.anthropic.com/v1/messages/batches \
15921592 -H "x-api-key: $ANTHROPIC_API_KEY" \
1593 -H "anthropic-version: 2023-06-01" \
1593 -H "anthropic-version: 2026-10-21" \
15941594 -H "anthropic-beta: output-300k-2026-03-24" \
15951595 -H "content-type: application/json" \
15961596 -d '{
No line in this hunk matches that.