curl --request POST \ --url https://toapis.com/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "grok-video-3", "prompt": "A golden retriever running on a green field in sunny weather", "seconds": 10, "aspect_ratio": "16:9" }'
Generate high-quality videos using Grok Video model
POST
/
v1
/
videos
/
generations
curl --request POST \ --url https://toapis.com/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "grok-video-3", "prompt": "A golden retriever running on a green field in sunny weather", "seconds": 10, "aspect_ratio": "16:9" }'
Use this file to discover all available pages before exploring further.
Grok Video generation model
Select grok-video-3 model via the model parameter
Supports text-to-video and image-to-video
Async task management, query results via task ID
Important Change: For better performance and cost control, we no longer support passing base64 image data directly in images. Please use the Upload Image API to upload images first, then call this API with the returned URL.
curl --request POST \ --url https://toapis.com/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "grok-video-3", "prompt": "A golden retriever running on a green field in sunny weather", "seconds": 10, "aspect_ratio": "16:9" }'