One change
API usage primer for Claude
claude_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.
claude_api_primer Changed · +3 / -4 lines
from line 181
```python Python import anthropic import base64 - import httpx + import httpx2 # Option 1: Base64-encoded image image_url = "https://platform.claude.com/docs/images/vision-example.jpg" image_media_type = "image/jpeg" - image_data = base64.standard_b64encode(httpx.get(image_url).content).decode("utf-8") + image_data = base64.standard_b64encode(httpx2.get(image_url).content).decode("utf-8") message = anthropic.Anthropic().messages.create( model="claude-opus-5",
from line 262
<CodeGroup exclude="shell:cURL, typescript, csharp, go, java, php, ruby"> ```bash CLI - ant messages create \ - --transform content --format yaml <<'YAML' + ant messages create --transform content --format yaml <<'YAML' model: claude-opus-5 max_tokens: 16000 thinking: