1. Get an API key
Create an API key in the Dashboard. Use it as a bearer token:2. Choose an endpoint
GET /models is public and does not require an API key. Generation and chat endpoints require the Bearer header configured above.
3. Create a task
This example creates a video task:task_id:
4. Poll the task
Use thetask_id with the matching query endpoint:
status is Success, Failed, or Cancelled. When video generation succeeds, file_url contains the generated video URL. For image tasks, output_images contains generated image URLs. These output URLs are dynamically signed; download or copy assets you need instead of storing the URL as a permanent identifier.