Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用原生 Messages API 调用 Claude 模型
https://api.bianxie.ai
curl https://api.bianxie.ai/v1/messages \ -H "x-api-key: API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "your-model", "max_tokens": 1024, "messages": [{ "role": "user", "content": "用一段话解释量子纠缠。" }] }'
max_tokens
system
"stream": true
{ "id": "msg_example", "type": "message", "role": "assistant", "model": "your-model", "content": [{"type": "text", "text": "量子纠缠是..."}], "stop_reason": "end_turn", "stop_sequence": null, "usage": {"input_tokens": 18, "output_tokens": 42} }
content[]
type
text