Skip to main content

Claude (Native Format) - PDF Analysis

Claude’s native request format supports prompt caching, which can significantly reduce costs for repeated context.
The native format only lists commonly used parameters. For full parameter details, read the Claude official documentation.

Supported Models

Claude native format supports models with cld- or claude- prefixes, as well as kimi-k2-0711-preview, qwen3-coder-plus, and glm-4.5+.

Request

Headers

Request Body

Content Types for PDF/Image Analysis

Cache Control

For files used across multiple messages, add cache_control to cache the file:

Example Request - Chat

Python Example - PDF Analysis with Caching

Example - Extended Thinking

Response

Response Schema