Skip to main content

Base URL

Workflow

All AI generation tasks follow the same asynchronous workflow:
1

Submit a Task

Call POST /api/v1/task/submit, specify the model and parameters, and receive a taskId immediately.
2

Wait for Results

Retrieve results by polling GET /api/v1/task/:taskId or by setting up a Webhook callback.
3

Get Output

Once the task succeeds, result.urls contains the generated image or video URLs.
File URLs are valid for 7 days from the time of generation. Please download and save files promptly to avoid link expiration.

Common Response Format

Success:
Failure:

Task Status

Status Transitions:

Supported Models