Veo 3.1 Lite create video
POST/v1/videos
Create an asynchronous Veo 3.1 Lite video generation task with the OpenAI-compatible Video API.
Request flow
- Call
POST /open/aigw/gateway/v1/videosto submit a video generation task - Read
idortask_idfrom the response - Poll
GET /open/aigw/gateway/v1/videos/{task_id}for task status and results
Request example
curl --location 'https://open-api.fancyai.com/v1/videos' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"model": "veo-3.1-lite",
"prompt": "A serene mountain landscape at sunset with clouds drifting by"
}'
Request
Responses
- 200
- 400
- 401
- 502
Task submitted successfully
Invalid request parameters
Unauthorized
Upstream task submission failed