Claude 聊天
API 参考
Claude 聊天
Anthropic Claude Messages API 格式的请求。
需要在请求头中包含 anthropic-version。
POST
Claude 聊天
Authorizations
Use your XRouter API Key. Format: Authorization: Bearer sk-xxxxxx
Headers
Anthropic API 版本
Example:
"2023-06-01"
Anthropic API Key (可选,也可使用 Bearer Token)
Body
application/json
Example:
"your-model-id"
Required range:
x >= 1Required range:
0 <= x <= 1Available options:
standard, fast Available options:
auto, standard_only