> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crazyrouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude PDF Support

> Claude PDF input verified against Crazyrouter production on 2026-03-23

> Last updated: 2026-06-06

# Claude PDF Support

```
POST /v1/messages
```

As of March 23, 2026, Crazyrouter production has verified that `claude-opus-4-8` can read a Base64 PDF through the native Messages API and return a text summary.

***

## Verified Minimal Request

```bash theme={null}
curl https://api.crazyrouter.com/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-opus-4-8",
    "max_tokens": 512,
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "document",
            "source": {
              "type": "base64",
              "media_type": "application/pdf",
              "data": "JVBERi0xLjQK..."
            }
          },
          {
            "type": "text",
            "text": "Summarize the document in one sentence."
          }
        ]
      }
    ]
  }'
```

Observed production response shape:

```json theme={null}
{
  "model": "claude-opus-4-8",
  "content": [
    {
      "type": "text",
      "text": "The document is a simple Crazyrouter PDF test document..."
    }
  ]
}
```

<Note>
  This page keeps only the Base64 PDF path that was revalidated successfully. Remote URLs, multi-PDF comparison, and streamed PDF output were not rechecked item by item in this pass.
</Note>
