Skip to main content
OpenPAI integrates Anthropic Claude over two protocols at once: OpenAI-compatible and the Claude-native /v1/messages.

Available models

Legacy (still available)

Thinking

Claude can reason internally before the final answer. There are two approaches across generations:
  • Extended Thinking: claude-sonnet-4-6 and claude-haiku-4-5 set a budget_tokens thinking budget via the thinking parameter.
  • Adaptive Thinking: claude-opus-4-8 and claude-opus-4-7 are controlled by the effort parameter (low / medium / high); Opus 4.8 defaults to high and no longer uses budget_tokens.

Enable extended thinking via model ID

Enable via parameter (Claude native protocol)

Tokens produced by thinking and tokens in the final answer are billed separately (thinking_tokens vs. output_tokens), shown distinctly in the console log. Exact parameter support is subject to the console.

Examples

OpenAI-compatible protocol

Claude native SDK

Tool calling

Claude natively supports the three-step tools / tool_use / tool_result tool-calling flow, fully compatible with the official Anthropic protocol. When accessed via the OpenAI-compatible endpoint, tool calls are automatically converted to OpenAI’s tools / tool_calls structures. See Function calling.

Vision

Supports image URL and base64 input:

Prompt caching

Claude supports marking long context segments with cache_control to hit the prompt cache, with cache hits billed at a lower rate. OpenPAI passes this field through verbatim — see Cache billing.

Other capabilities

Anthropic also offers Message Batches (asynchronous, ~50% off), the Files API, 1M long context, citations, and memory. Whether these are exposed through the OpenPAI gateway is subject to the console / site announcements.

API docs