Native Claude Format
POST /v1/messages
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
anthropic-version (header) | string | Required | Anthropic API Version |
x-api-key (header) | string | Optional | Anthropic API Key (Optional, or use Bearer Token) |
model | string | Required | - |
messages | array<object> | Required | - |
messages[].role | string | Required | - |
messages[].content | string | array<object> | Required | - |
system | string | array<object> | Optional | - |
max_tokens | integer | Required | - |
temperature | number | Optional | - |
top_p | number | Optional | - |
top_k | integer | Optional | - |
stream | boolean | Optional | - |
stop_sequences | array<string> | Optional | - |
tools | array<object> | Optional | - |
tools[].name | string | Optional | - |
tools[].description | string | Optional | - |
tools[].input_schema | object | Optional | - |
tool_choice | object | Optional | - |
thinking | object | Optional | - |
thinking.type | string | Optional | - |
thinking.budget_tokens | integer | Optional | - |
metadata | object | Optional | - |
metadata.user_id | string | Optional | - |
Request Example
{
"header": {
"anthropic-version": "2023-06-01"
},
"body": {
"model": "claude-3-opus-20240229",
"messages": [
{
"role": "user",
"content": "string"
}
],
"max_tokens": 1
}
}
Response Fields(200)
| Field Name | Type | Description |
|---|---|---|
| No structured response fields (may be binary or empty response body) |