📚 API文档
Harryclaw AI Platform · 统一API接入多渠道AI模型
🚀 快速开始
- 注册账号并登录控制台
- 在「API Key管理」创建你的专属Key
- 开始调用API
🔗 API端点
POST https://harryclaw-ai-platform-production-60da.up.railway.app/v1/chat/completions
Headers: Authorization: Bearer <your_api_key> Content-Type: application/json
🤖 支持模型
MiniMax-Text-01
MiniMax-VL-01
GPT-4
Claude-3
Gemini-Pro
💻 示例代码
import requests
response = requests.post(
"https://harryclaw-ai-platform-production-60da.up.railway.app/v1/chat/completions",
headers={
"Authorization": "Bearer your_api_key",
"Content-Type": "application/json"
},
json={{
"model": "MiniMax-Text-01",
"messages": [
{"role": "user", "content": "Hello!"}
],
"max_tokens": 200
}}
)
print(response.json())📋 请求参数
| 参数 | 类型 | 说明 |
|---|---|---|
| model | string | 模型名称,如 MiniMax-Text-01 |
| messages | array | 对话消息列表 |
| max_tokens | integer | 最大返回token数 |
| stream | boolean | 是否流式输出(待支持) |