Authentication
Authenticate every request with an API key as a Bearer token.
Every request must carry an API key as a Bearer token in the Authorization header. Create and manage keys in Settings → API Keys.
There are two key types:
| Prefix | Type | |
|---|---|---|
sk_live_ | Live | Calls real models and spends credits. Use in production. |
sk_test_ | Test | Free sandbox: requests are validated and priced exactly like live ones, but nothing is generated and no credits are spent. Task results are placeholder media. Use it to build and test your integration. |
Authorization: Bearer sk_live_xxxxxxxxThe full key is shown once at creation and never again — store it securely. Anyone holding the key can act as your account.