Skip to main content
Key points for AI agents
  1. Create a task with POST https://1788.love/v1/videos and save the returned id.
  2. Poll GET https://1788.love/v1/videos/{id} every 3–5 seconds until status is completed or failed.
  3. Once completed, download the MP4 from GET https://1788.love/v1/videos/{id}/content with your API key and follow redirects.
  4. Every video model (Seedance, Grok, MiniMax H3, Muse, WAN, KLING) follows this exact same workflow.

1. Create a task

Fill the request body according to the target model page. Example response:
Invalid parameters immediately return a 4xx error; no task is created and nothing is charged.

2. Poll task status

Treat completed, succeeded, and success as done; treat failed, error, and canceled as failed; keep polling for all other states. Generation usually takes 1–10 minutes (longer for long clips or peak hours). Set an overall timeout of at least 30 minutes.

3. Download the video

  • The endpoint returns video bytes directly or redirects to storage—always follow redirects (curl -L; Python requests follows redirects by default).
  • The status payload may also include a url field, but /content works consistently across all models and is recommended.
  • Output files are retained temporarily; download and persist them to your own storage promptly.

Integrating from another New API instance?

If your downstream platform also runs New API, select channel type Sora (not OpenAI) and set Base URL to https://1788.love. See Downstream New API integration.

Best practices

  • Poll every 3–5 seconds—avoid tighter loops. Back off if you receive 429.
  • Control concurrency when submitting batches and poll each task by its id.
  • Persist the task id in your database so you can resume polling after a restart without resubmitting.