Skip to main content
POST
/
v1
/
videos
/
generations
curl --request POST \
  --url https://api.foxapi.cc/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "veo-3.1",
  "prompt": "A golden retriever running on the beach at sunset",
  "aspect_ratio": "16:9",
  "duration": 8,
  "resolution": "1080p",
  "generate_audio": true
}
'
{
  "created": 1757165031,
  "id": "task-unified-1757165031-uyujaw3d",
  "model": "<string>",
  "object": "video.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 45
  },
  "type": "video"
}

Authorizations

Authorization
string
header
required

All APIs require Bearer Token authentication

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
default:veo-3.1-fast
required

VEO 3.1 video model variant

Options:

ValueDescription
veo-3.1Standard
veo-3.1-fastFast
Available options:
veo-3.1-fast
Example:

"veo-3.1-fast"

prompt
string
required

Text prompt describing the desired video content

Notes:

  • Supports both Chinese and English
  • Detailed descriptions yield better generation results
Example:

"A golden retriever running on the beach at sunset"

generation_type
string
default:text-to-video

Generation mode

Options:

ValueDescriptionimage_urls requirement
text-to-videoText-to-video (default)Not required
image-to-videoImage-to-videoExactly 1 image
first-last-frameFirst-last-frame transition videoExactly 2 images
reference-to-videoReference-to-video1-3 images
Example:

"text-to-video"

image_urls
string[] | null

List of image URLs, meaning determined by generation_type

Example:
["https://example.com/photo.jpg"]
aspect_ratio
string
default:16:9

Output video aspect ratio

Options:

ValueDescription
16:9Landscape (default)
9:16Portrait
Example:

"16:9"

duration
integer
default:8

Output video duration (seconds)

Options: 4, 6, 8

Example:

4

resolution
string
default:1080p

Output video resolution

Options:

ValueDescription
720pStandard definition
1080pHigh definition (default)
2160p / 4k4K Ultra HD
Example:

"720p"

generate_audio
boolean
default:true

Whether to generate accompanying audio

Notes:

  • Enabled by default
  • VEO 3.1 can generate sound effects matching the video content
Example:

true

advanced
object

Advanced options for additional control

Response

Task created successfully

created
integer

Task creation timestamp

Example:

1757165031

id
string

Task ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

Actual model name used

object
enum<string>

Specific task type

Available options:
video.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Async task information

type
enum<string>

Task output type

Available options:
video
Example:

"video"