Claude
Claude 对话模型通过一个简单的端点调用:发送 messages 数组加模型 slug,即可拿到回复文本。本系列提供 10 个模型。
概览
发送标准的 messages 数组(user / assistant / system 角色)。每次响应从你的积分余额扣费;响应包含你的剩余 balance。
认证
在 /api-keys 创建 API 密钥,然后作为 Bearer token 发送。已登录时从浏览器发起的请求也可通过会话 cookie 生效。
Authorization: Bearer <YOUR_API_KEY>对话补全
POST
POST https://97ai.97claude.com/api/chat请求体: { "model": "<slug>", "messages": [{ "role": "user", "content": "…" }] }
响应: { "text": "<assistant reply>", "credits": <billed>, "balance": <remaining> }
模型
| 模型 | 供应商 | model slug |
|---|---|---|
| Claude Opus 5 | Anthropic | chat/claude-opus-5 |
| Claude Opus 4.8 | Anthropic | chat/claude-opus-4-8 |
| Claude Opus 4.7 | Anthropic | chat/claude-opus-4-7 |
| Claude Opus 4.6 | Anthropic | chat/claude-opus-4-6 |
| Claude Opus 4.5 | Anthropic | chat/claude-opus-4-5 |
| Claude Sonnet 5 | Anthropic | chat/claude-sonnet-5 |
| Claude Sonnet 4.6 | Anthropic | chat/claude-sonnet-4-6 |
| Claude Sonnet 4.5 | Anthropic | chat/claude-sonnet-4-5 |
| Claude Fable 5 | Anthropic | chat/claude-fable-5 |
| Claude Haiku 4.5 | Anthropic | chat/claude-haiku-4-5 |
Claude Opus 5
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-opus-5",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Claude Opus 4.8
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-opus-4-8",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Claude Opus 4.7
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-opus-4-7",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Claude Opus 4.6
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-opus-4-6",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Claude Opus 4.5
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-opus-4-5",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Claude Sonnet 5
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-sonnet-5",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Claude Sonnet 4.6
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-sonnet-4-6",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Claude Sonnet 4.5
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-sonnet-4-5",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Claude Fable 5
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-fable-5",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Claude Haiku 4.5
POST
/api/chatcURL
curl -X POST https://97ai.97claude.com/api/chat \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chat/claude-haiku-4-5",
"messages": [{ "role": "user", "content": "Hello!" }]
}'