Quickstart
Get your API key
Sign in to your Dashboard and create an API key.
Pick a model
Browse the full model catalog to compare capabilities and pricing — or jump straight into the API Reference on the left.
Base URL
application/json and return JSON.
Authentication
Pass your API key as a Bearer token in theAuthorization header.
Response envelope
Every response shares the same outer shape:| Field | Type | Description |
|---|---|---|
code | integer | 0 indicates success; non-zero is an error (mirrors HTTP status). |
data | object | Endpoint-specific payload. Empty {} on errors. |
msg | string | Human-readable status or error message. |
request_id | string | Trace id — include when contacting support. |
Success example
Error codes
| Code | Meaning |
|---|---|
400 | Bad request — required field missing or invalid. |
401 | Unauthorized — missing or invalid API key. |
500 | Internal error — task creation failed (e.g. insufficient balance). |
code and a descriptive msg.