跳转到主要内容
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.

授权

Authorization
string
header
必填

所有接口均需要使用Bearer Token进行认证

使用时在请求头中添加:

Authorization: Bearer YOUR_API_KEY

请求体

application/json
model
string
默认值:veo-3.1-image-to-video
必填

veo-3.1-image-to-video:标准版图生视频 veo-3.1-fast-image-to-video:快速版 veo-3.1-lite-image-to-video:Lite 版,仅支持 720p / 1080p

示例:

"veo-3.1-image-to-video"

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

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

prompt
string
必填

文本提示词,描述输入图片应如何运动

说明:

  • 支持中英文
示例:

"The flowers sway gently in the wind"

image_url
string
必填

输入图片 URL

说明:

  • 必须为公开可访问的图片 URL
  • 推荐分辨率不低于 720p,宽高比为 16:99:16
示例:

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

aspect_ratio
string
默认值:16:9

输出视频宽高比

可选值:

  • 16:9 — 横屏(默认)
  • 9:16 — 竖屏
示例:

"16:9"

duration
integer
默认值:8

输出视频时长(秒)

可选值: 468

模型差异:

  • veo-3.1-lite-image-to-videoresolution=1080p 时仅支持 8
示例:

4

resolution
string
默认值:1080p

输出视频分辨率

可选值:

  • 720p — 标清
  • 1080p — 高清(默认)
  • 4k — 4K 超高清

模型差异:

  • veo-3.1-image-to-video / veo-3.1-fast-image-to-video 支持 720p / 1080p / 4k
  • veo-3.1-lite-image-to-video 仅支持 720p / 1080p
示例:

"720p"

"1080p"

"4k"

generate_audio
boolean
默认值:false

是否生成配套音频

说明:

  • 默认关闭
  • 三个模型变体均可选 truefalse
示例:

true

auto_fix
boolean | null

自动修复提示词

说明:

  • 三个模型变体都可传该字段;未传时使用对应模型的默认行为

非必须不要传这个参数。

示例:

true

safety_tolerance
integer | null

内容安全等级,1 最严格,6 最宽松

模型差异:

  • veo-3.1-image-to-video / veo-3.1-fast-image-to-video 可用
  • veo-3.1-lite-image-to-video 不适用

非必须不要传这个参数。

必填范围: 1 <= x <= 6
示例:

3

enhance_prompt
boolean | null

自动优化提示词

模型差异:

  • veo-3.1-image-to-video 可用
  • veo-3.1-fast-image-to-video / veo-3.1-lite-image-to-video 不适用

非必须不要传这个参数。

示例:

true

person_generation
string | null

人物生成控制

可选值: dont_allow / allow_adult

模型差异:

  • veo-3.1-image-to-video 可用
  • veo-3.1-fast-image-to-video / veo-3.1-lite-image-to-video 不适用

非必须不要传这个参数。

示例:

"allow_adult"

negative_prompt
string | null

负面提示词,描述不希望出现的元素

说明:

  • 用逗号分隔多个关键词

非必须不要传这个参数。

示例:

"blurry, low quality, watermark"

seed
integer | null

随机种子

说明:

  • 设置固定值可复现生成结果
  • 不传则随机

非必须不要传这个参数。

示例:

42

响应

任务创建成功

created
integer

任务创建时间戳

示例:

1757165031

id
string

任务ID

示例:

"task-unified-1757165031-uyujaw3d"

model
string

实际使用的模型名称

object
enum<string>

任务的具体类型

可用选项:
video.generation.task
progress
integer

任务进度百分比 (0-100)

必填范围: 0 <= x <= 100
示例:

0

status
enum<string>

任务状态

可用选项:
pending,
processing,
completed,
failed
示例:

"pending"

task_info
object

异步任务信息

type
enum<string>

任务的输出类型

可用选项:
video
示例:

"video"