跳转到主要内容

Bearer Token

所有 /api/v1/* 接口需要 Bearer Token 认证:
Authorization: Bearer YOUR_API_SECRET
你可以在 API Dashboard 中获取你的 API Key。

示例

curl -X POST https://api.maxapi.io/api/v1/task/submit \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_SECRET" \
  -d '{"model": "jimeng-4.5", "input": {"prompt": "hello"}}'

错误响应

如果认证失败,API 将返回:
{
  "code": 401,
  "msg": "unauthorized"
}