Claude Native Format
x-api-key or Authorization header.
Authentication
Two authentication methods are supported (choose one):Basic Conversation
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model name |
max_tokens | integer | Yes | Maximum output tokens |
messages | array | Yes | Message list |
system | string|array | No | System prompt |
temperature | number | No | Sampling temperature, 0-1 |
top_p | number | No | Nucleus sampling parameter |
top_k | integer | No | Top-K sampling |
stop_sequences | array | No | Stop sequence list |
stream | boolean | No | Whether to stream output |
tools | array | No | Tool definition list |
tool_choice | object | No | Tool selection strategy |
thinking | object | No | Extended Thinking configuration |
Streaming Conversation
Function Calling
Extended Thinking
Enable Extended Thinking to let Claude perform deep thinking before answering:Extended Thinking Response
Crazyrouter’s Claude native format endpoint is fully compatible with the official Anthropic SDK. Simply change the
base_url for seamless switching.