Skip to main content

Bearer Token

All /api/v1/* endpoints require Bearer Token authentication:
Authorization: Bearer YOUR_API_SECRET
You can obtain your API Key from the API Dashboard.

Example

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"}}'

Error Response

If authentication fails, the API will return:
{
  "code": 401,
  "msg": "unauthorized"
}