Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

API usage primer for Claude changedclaude_api_primer

Nearest release: v2.1.239, published 2 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+3added
Lines−4removed
From line 181 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits19to this page, all time

The whole hunk

from line 181, old and new numbered
/
lines
from line 181
181181 ```python Python
182182 import anthropic
183183 import base64
184 import httpx
184 import httpx2
185185 
186186 # Option 1: Base64-encoded image
187187 image_url = "https://platform.claude.com/docs/images/vision-example.jpg"
188188 image_media_type = "image/jpeg"
189 image_data = base64.standard_b64encode(httpx.get(image_url).content).decode("utf-8")
189 image_data = base64.standard_b64encode(httpx2.get(image_url).content).decode("utf-8")
190190 
191191 message = anthropic.Anthropic().messages.create(
192192 model="claude-opus-5",
from line 262
262262 
263263<CodeGroup exclude="shell:cURL, typescript, csharp, go, java, php, ruby">
264264 ```bash CLI
265 ant messages create \
266 --transform content --format yaml <<'YAML'
265 ant messages create --transform content --format yaml <<'YAML'
267266 model: claude-opus-5
268267 max_tokens: 16000
269268 thinking:
Feedback