快速开始
如果你的应用已经使用 OpenAI SDK,只需要替换 base_url 和 API Key,即可接入 Maitoken。
- 注册账户
- 充值或申请测试额度
- 创建 API Key
- 调用 OpenAI 兼容接口
- 查看用量和账单
curl https://api.maitoken.ai/v1/chat/completions \
-H "Authorization: Bearer MAITOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-chat",
"messages": [{"role":"user","content":"Hello"}]
}'