Async processing mode, returns task ID for subsequent queries
Supports text-to-video and image-to-video (first frame / first-last frame control)
Supports standard mode (720P) and professional mode (1080P)
Text-to-video supports 15-second duration
Important Change: For better performance and cost control, we no longer support passing base64 image data directly in image_urls. Please use the Upload Image API first to upload images and get URLs, then call this endpoint.
Text prompt describing the video contentDescribe scenes, actions, and styles in detail for better generation results. English prompts are recommended.Example: "A golden retriever running on a beach at sunset, cinematic quality"
{ "model": "kling-v3", "prompt": "The person in the frame turns and smiles", "image_urls": ["https://example.com/portrait.jpg"], "mode": "std", "duration": 5}
Case 5: Image-to-Video (First + Last Frame Control)
Copy
{ "model": "kling-v3", "prompt": "City timelapse transitioning from day to night", "image_urls": ["https://example.com/day-city.jpg", "https://example.com/night-city.jpg"], "mode": "pro", "duration": 5}
Query Task ResultsVideo generation is an async task that returns a task ID upon submission. Use the Get Task Status endpoint 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": "kling-v3", "prompt": "A golden cat running on a sunlit meadow, slow motion, cinematic quality", "mode": "std", "duration": 5, "aspect_ratio": "16:9" }'