POST https://api.tikway.ai/v1/messages,使用 x-api-key 请求头传递 Tikway API Key,并携带 anthropic-version: 2023-06-01。请求体使用 model、max_tokens 和 messages 等 Anthropic 字段。
type: "error" 外层结构,详见状态码与响应。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过 Tikway 的 Anthropic Messages 原生接口发起请求。
POST https://api.tikway.ai/v1/messages,使用 x-api-key 请求头传递 Tikway API Key,并携带 anthropic-version: 2023-06-01。请求体使用 model、max_tokens 和 messages 等 Anthropic 字段。
curl https://api.tikway.ai/v1/messages \
-H "x-api-key: $TIKWAY_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "你好"}]
}'
type: "error" 外层结构,详见状态码与响应。