vision changedbuild-with-claude/vision
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+7added
Lines−7removed
From line
57
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits22to this page, all time
The whole hunk
from line 57, old and new numbered
/
from line 57
57573. A `file_id` returned by the [Files API](https://platform.claude.com/docs/en/build-with-claude/files) (upload once, reference many times)
5858
5959<Note>
60 On Amazon Bedrock and Claude Models on Google Cloud (Google managed), only base64-encoded sources are currently available.
60 On Claude Models on Google Cloud (Google managed) and Amazon Bedrock, only base64-encoded sources are available.
6161</Note>
6262
6363<Tip>
from line 70
7070 ```bash cURL
7171 curl https://api.anthropic.com/v1/messages \
7272 -H "x-api-key: $ANTHROPIC_API_KEY" \
73 -H "anthropic-version: 2023-06-01" \
73 -H "anthropic-version: 2026-10-21" \
7474 -H "content-type: application/json" \
7575 -d @- <<EOF
7676 {
from line 332
332332 ```bash cURL
333333 curl https://api.anthropic.com/v1/messages \
334334 -H "x-api-key: $ANTHROPIC_API_KEY" \
335 -H "anthropic-version: 2023-06-01" \
335 -H "anthropic-version: 2026-10-21" \
336336 -H "content-type: application/json" \
337337 -d '{
338338 "model": "claude-opus-5-5",
from line 576
576576 # First, upload your image to the Files API
577577 curl -sS -X POST https://api.anthropic.com/v1/files \
578578 -H "x-api-key: $ANTHROPIC_API_KEY" \
579 -H "anthropic-version: 2023-06-01" \
579 -H "anthropic-version: 2026-10-21" \
581581
582582 # Then use the file_id from the upload response in your message
583583 curl https://api.anthropic.com/v1/messages \
584584 -H "x-api-key: $ANTHROPIC_API_KEY" \
585 -H "anthropic-version: 2023-06-01" \
585 -H "anthropic-version: 2026-10-21" \
586586 -H "content-type: application/json" \
587587 -d '{
588588 "model": "claude-opus-5-5",
from line 900
900900 ```bash cURL
901901 curl https://api.anthropic.com/v1/messages \
902902 -H "x-api-key: $ANTHROPIC_API_KEY" \
903 -H "anthropic-version: 2023-06-01" \
903 -H "anthropic-version: 2026-10-21" \
904904 -H "content-type: application/json" \
905905 -d '{
906906 "model": "claude-opus-5-5",
from line 1275
12751275
12761276The maximum dimensions for each image are 8000x8000 px.
12771277
1278If a single API request contains more than 20 images, a stricter per-image dimension limit applies to every image in that request. All `image` blocks in the request count toward this threshold, including images from earlier conversation turns that you resend and images nested inside `tool_result` content (for example, screenshots returned to the computer use tool). On Amazon Bedrock and Claude Models on Google Cloud (Google managed), document blocks such as PDFs also count toward this threshold. Images exceeding the stricter limit are rejected with an `invalid_request_error` whose message references “many-image requests” and states the current limit in pixels. To stay under the limit on all platforms, either resize each image so that neither dimension exceeds 3,000 px, or keep the request to 20 or fewer image and document blocks.
1278If a single API request contains more than 20 images, a stricter per-image dimension limit applies to every image in that request. All `image` blocks in the request count toward this threshold, including images from earlier conversation turns that you resend and images nested inside `tool_result` content (for example, screenshots returned to the computer use tool). On Claude Models on Google Cloud (Google managed) and Amazon Bedrock, document blocks such as PDFs also count toward this threshold. Images exceeding the stricter limit are rejected with an `invalid_request_error` whose message references “many-image requests” and states the current limit in pixels. To stay under the limit on all platforms, either resize each image so that neither dimension exceeds 3,000 px, or keep the request to 20 or fewer image and document blocks.
12791279
12801280The maximum size per image is:
12811281
No line in this hunk matches that.