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-image-to-video",
  "prompt": "The flowers sway gently in the wind",
  "image_url": "https://example.com/photo.jpg",
  "resolution": "1080p",
  "duration": 8,
  "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"
}

Documentation Index

Fetch the complete documentation index at: https://docs.foxapi.cc/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

All APIs require Bearer Token authentication

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
default:veo-3.1-image-to-video
required

veo-3.1-image-to-video: Standard image-to-video veo-3.1-fast-image-to-video: Fast version veo-3.1-lite-image-to-video: Lite version, only supports 720p / 1080p

Examples:

"veo-3.1-image-to-video"

"veo-3.1-fast-image-to-video"

"veo-3.1-lite-image-to-video"

prompt
string
required

Text prompt describing how the input image should move

Notes:

  • Supports both Chinese and English
Example:

"The flowers sway gently in the wind"

image_url
string
required

Input image URL

Notes:

  • Must be a publicly accessible image URL
  • Recommended resolution at least 720p, with aspect ratio 16:9 or 9:16
Example:

"https://example.com/photo.jpg"

aspect_ratio
string
default:16:9

Output video aspect ratio

Options:

  • 16:9 — Landscape (default)
  • 9:16 — Portrait
Example:

"16:9"

duration
integer
default:8

Output video duration (seconds)

Options: 4, 6, 8

Model differences:

  • veo-3.1-lite-image-to-video at resolution=1080p only supports 8 seconds
Example:

4

resolution
string
default:1080p

Output video resolution

Options:

  • 720p — Standard definition
  • 1080p — High definition (default)
  • 4k — 4K Ultra HD

Model differences:

  • veo-3.1-image-to-video / veo-3.1-fast-image-to-video support 720p / 1080p / 4k
  • veo-3.1-lite-image-to-video only supports 720p / 1080p
Examples:

"720p"

"1080p"

"4k"

generate_audio
boolean
default:false

Whether to generate accompanying audio

Notes:

  • Disabled by default
  • All three model variants support true or false
Example:

true

auto_fix
boolean | null

Auto-fix prompt

Notes:

  • All three model variants support this field; if omitted, the default behavior of the corresponding model is used

Do not pass this parameter unless necessary.

Example:

true

safety_tolerance
integer | null

Content safety level, 1 is the strictest, 6 is the most permissive

Model differences:

  • Available for veo-3.1-image-to-video / veo-3.1-fast-image-to-video
  • Not applicable for veo-3.1-lite-image-to-video

Do not pass this parameter unless necessary.

Required range: 1 <= x <= 6
Example:

3

enhance_prompt
boolean | null

Automatically enhance the prompt

Model differences:

  • Only available for veo-3.1-image-to-video
  • Not applicable for veo-3.1-fast-image-to-video / veo-3.1-lite-image-to-video

Do not pass this parameter unless necessary.

Example:

true

person_generation
string | null

Person generation control

Options: dont_allow / allow_adult

Model differences:

  • Only available for veo-3.1-image-to-video
  • Not applicable for veo-3.1-fast-image-to-video / veo-3.1-lite-image-to-video

Do not pass this parameter unless necessary.

Example:

"allow_adult"

negative_prompt
string | null

Negative prompt, describing elements you do not want to appear

Notes:

  • Separate multiple keywords with commas

Do not pass this parameter unless necessary.

Example:

"blurry, low quality, watermark"

seed
integer | null

Random seed

Notes:

  • Set a fixed value to reproduce generation results
  • Omit for random

Do not pass this parameter unless necessary.

Example:

42

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

Asynchronous task info

type
enum<string>

Task output type

Available options:
video
Example:

"video"