Gemini
Gemini 对话模型通过一个简单的端点调用:发送 messages 数组加模型 slug,即可拿到回复文本。本系列提供 7 个模型。
概览
发送标准的 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 |
|---|---|---|
| Gemini 2.5 Pro | chat/gemini-2.5-pro | |
| Gemini 3 Pro | chat/gemini-3-pro | |
| Gemini 3.1 Pro | chat/gemini-3.1-pro | |
| Gemini 2.5 Flash | chat/gemini-2.5-flash | |
| Gemini 3 Flash | chat/gemini-3-flash | |
| Gemini 3.5 Flash | chat/gemini-3-5-flash | |
| Gemini 3.6 Flash | chat/gemini-3-6-flash |
Gemini 2.5 Pro
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/gemini-2.5-pro",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Gemini 3 Pro
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/gemini-3-pro",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Gemini 3.1 Pro
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/gemini-3.1-pro",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Gemini 2.5 Flash
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/gemini-2.5-flash",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Gemini 3 Flash
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/gemini-3-flash",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Gemini 3.5 Flash
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/gemini-3-5-flash",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Gemini 3.6 Flash
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/gemini-3-6-flash",
"messages": [{ "role": "user", "content": "Hello!" }]
}'