pdf-support changedbuild-with-claude/pdf-support
Nearest release: v2.1.304, published under an hour after 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+32added
Lines−47removed
From line
133
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits14to this page, all time
The whole hunk
from line 133, old and new numbered
/
from line 133
133133 ```
134134
135135 ```bash CLI
136 ant messages create --transform content --format yaml <<'YAML'
136 ant messages create <<'YAML'
137137 model: claude-opus-5-5
138138 max_tokens: 1024
139139 messages:
from line 414
414414 ```bash CLI
415415 ant messages create \
416416 --model claude-opus-5-5 \
417 --max-tokens 1024 \
418 --transform content \
419 --format yaml <<'YAML'
417 --max-tokens 1024 <<'YAML'
420418 messages:
421419 - role: user
422420 content:
from line 714
716714<CodeGroup>
717715 ```bash cURL
718716 # First, upload your PDF to the Files API
719 FILE_ID=$(curl -sS -X POST https://api.anthropic.com/v1/files \
717 curl -sS -X POST https://api.anthropic.com/v1/files \
720718 -H "x-api-key: $ANTHROPIC_API_KEY" \
721719 -H "anthropic-version: 2023-06-01" \
722 -F "[email protected]" | jq -r '.id')
720 -F "[email protected]"
723721
724 # Then use the returned file_id in your message
722 # Then use the file_id from the upload response in your message
725723 curl https://api.anthropic.com/v1/messages \
726724 -H "content-type: application/json" \
727725 -H "x-api-key: $ANTHROPIC_API_KEY" \
from line 746
748746
749747 ```bash CLI
750748 # First, upload your PDF to the Files API
751 FILE_ID=$(ant files upload \
752 --file ./document.pdf \
753 --transform id \
754 --raw-output)
749 ant files upload \
750 --file ./document.pdf
755751
756 # Then use the returned file_id in your message
757 ant messages create \
758 --transform content \
759 --format yaml <<YAML
752 # Then use the file_id from the upload response in your message
753 ant messages create <<YAML
760754 model: claude-opus-5-5
761755 max_tokens: 1024
762756 messages:
from line 1065
10711065
10721066<CodeGroup>
10731067 ```bash cURL
1074 curl -sL "https://assets.anthropic.com/m/1cd9d098ac3e6467/original/Claude-3-Model-Card-October-Addendum.pdf" | base64 | tr -d '\n' > pdf_base64.txt
1075 # Create a JSON request file using the pdf_base64.txt content
1076 jq -n --rawfile PDF_BASE64 pdf_base64.txt '{
1077 "model": "claude-opus-5-5",
1078 "max_tokens": 1024,
1079 "messages": [{
1080 "role": "user",
1081 "content": [{
1082 "type": "document",
1083 "source": {
1084 "type": "base64",
1085 "media_type": "application/pdf",
1086 "data": $PDF_BASE64
1087 },
1088 "cache_control": {
1089 "type": "ephemeral"
1090 }
1091 },
1068 curl -sL "https://assets.anthropic.com/m/1cd9d098ac3e6467/original/Claude-3-Model-Card-October-Addendum.pdf" |
1069 base64 | tr -d '\n' |
1070 jq -Rs '{
1071 model: "claude-opus-5-5",
1072 max_tokens: 1024,
1073 messages: [{
1074 role: "user",
1075 content: [
10921076 {
1093 "type": "text",
1094 "text": "Which model has the highest human preference win rates across each use-case?"
1095 }]
1077 type: "document",
1078 source: {type: "base64", media_type: "application/pdf", data: .},
1079 cache_control: {type: "ephemeral"}
1080 },
1081 {type: "text", text: "Which model has the highest human preference win rates across each use-case?"}
1082 ]
10961083 }]
1097 }' > request.json
1098
1099 # Then make the API call using the JSON file
1100 curl https://api.anthropic.com/v1/messages \
1101 -H "content-type: application/json" \
1102 -H "x-api-key: $ANTHROPIC_API_KEY" \
1103 -H "anthropic-version: 2023-06-01" \
1104 -d @request.json
1084 }' |
1085 curl https://api.anthropic.com/v1/messages \
1086 -H "content-type: application/json" \
1087 -H "x-api-key: $ANTHROPIC_API_KEY" \
1088 -H "anthropic-version: 2023-06-01" \
1089 -d @-
11051090 ```
11061091
11071092 ```bash CLI
1108 ant messages create --transform content --format yaml <<'YAML'
1093 ant messages create <<'YAML'
11091094 model: claude-opus-5-5
11101095 max_tokens: 1024
11111096 messages:
No line in this hunk matches that.