Skip to main content

Base URL

Most API requests require authentication using an API key in the Authorization header:
Some endpoints like /api/models and /api/models-config/* are public and don’t require authentication.

Endpoints

Generation Endpoints

Account & Usage Endpoints

Response Format

All generation endpoints return a consistent response structure:
For video generation, the response includes video URLs instead of images:

Error Responses

401 Unauthorized

403 Forbidden

404 Not Found

429 Too Many Requests

400 Bad Request

402 Payment Required

Common causes:
  • Credit balance is too low for the requested operation
  • Cost exceeds available balance

500 Internal Server Error