Faster generation speed — ideal for quick previews and iteration
Image or reference video URL is required: You must provide either image_urls (image-to-video) or metadata.reference_urls (reference video). Sending a prompt-only request will return an error.
Reference image URL array for image-to-video mode (only supports 1 image)Required if metadata.reference_urls is not provided⚠️ URL format only (base64 no longer supported)
Publicly accessible image URL (http:// or https://)
You can use the Upload Image API to upload local images and get URLs
Reference Video (r2v) mode — array of reference video URLsWhen provided, the server routes to the reference video Flash upstream model (wan2.6-r2v-flash). The model uses these videos to generate new content with consistent characters or scenes.
Each entry must be a publicly accessible video URL (http:// or https://)
Example: ["https://cdn.example.com/ref-character.mp4"]Note: Cannot be combined with image_urls
{ "model": "wan2.6-flash", "image_urls": ["https://example.com/photo.jpg"], "prompt": "The person comes alive and smiles", "resolution": "1080p", "duration": 5, "audio": true}
{ "model": "wan2.6-flash", "prompt": "The character is watching a movie on the couch", "metadata": { "reference_urls": ["https://cdn.example.com/ref-character.mp4"] }, "resolution": "1080p", "duration": 5, "audio": true}
Querying Task ResultsVideo generation is an asynchronous task. After submission, a task_id is returned. Use the Get Task Status interface to query generation progress and results.
Copy
curl --request POST \ --url https://toapis.com/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "wan2.6-flash", "image_urls": ["https://example.com/photo.jpg"], "prompt": "The person comes alive and smiles", "resolution": "1080p", "duration": 5, "audio": true }'