跳到主要内容

Veo 3.1 create video

POST 

/v1/videos

Create an asynchronous Veo 3.1 video generation task with the OpenAI-compatible Video API.

Request flow

  1. Call POST /open/aigw/gateway/v1/videos to submit a video generation task
  2. Read id or task_id from the response
  3. 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",
"prompt": "A serene mountain landscape at sunset with clouds drifting by"
}'

Request

Responses

Task submitted successfully