Skip to main content
Video generation starts with the model list. Pick an available model, then create a generation task.
If you do not have an API Key yet, read Get API Key first.
View video generation model pricing: International site.

Integration order

  1. Call Video generation models to list available video models.
  2. Copy data[n].name from the model list and pass it as model.
  3. Choose resolution, aspect ratio, duration, and reference assets from the same model item.
  4. Call Generate video.
  5. Use the returned data.id to call Video task status.
If you need reference images, videos, or audio, use OSS upload first.

Minimal request

curl --request GET 'https://aitoearn.ai/api/ai/models/video/generation' \
  --header 'X-Api-Key: <API_KEY>'
curl --request POST 'https://aitoearn.ai/api/ai/video/generations' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <API_KEY>' \
  --data '{
    "model": "copy from data[n].name",
    "prompt": "Generate an aerial video of a city at night",
    "resolution": "720p",
    "ratio": "16:9",
    "duration": 5
  }'