Key points for AI agents
- Create a task with
POST https://1788.love/v1/videosand save the returnedid. - Poll
GET https://1788.love/v1/videos/{id}every 3–5 seconds untilstatusiscompletedorfailed. - Once
completed, download the MP4 fromGET https://1788.love/v1/videos/{id}/contentwith your API key and follow redirects. - Every video model (Seedance, Grok, MiniMax H3, Muse, WAN, KLING) follows this exact same workflow.
1. Create a task
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; Pythonrequestsfollows redirects by default). - The status payload may also include a
urlfield, but/contentworks 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 typeSora (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
idin your database so you can resume polling after a restart without resubmitting.