Anthropic
Anthropic 兼容
Messages
POST
Anthropic
调用示例
响应示例
"stream": true)会发送 Anthropic SSE 事件(message_start、content_block_delta、message_delta、message_stop):
加群 & 客服


Authorizations
Use the API key created at https://coder.visioncoder.cn/key as the Bearer token. Anthropic clients can pass the same key via the x-api-key header.
Body
application/json
Anthropic Messages API request body. The platform forwards it upstream as-is; fields follow the official Anthropic protocol.
Claude model ID, e.g. claude-sonnet-4-6, claude-opus-4-7, claude-haiku-4-5-20251001, claude-opus-4-5-20251101, claude-opus-4-6, claude-sonnet-4-5-20250929. Call GET /v1/models for the live list.
Example:
"claude-sonnet-4-6"
Example:
4096
String or structured array, used as the system prompt
Example:
"You are a concise assistant."
Required range:
0 <= x <= 1Response
200 - application/json
A successful response.
Anthropic Messages API response body.