1. Get an API key
Create an API key in the Dashboard. Use it as a bearer token:2. Choose an endpoint
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.