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-extend",
  "prompt": "The camera continues to pan across the landscape",
  "video": "https://example.com/input-video.mp4",
  "aspect_ratio": "16:9",
  "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

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

使用时在请求头中添加:

Authorization: Bearer YOUR_API_KEY

Body

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

VEO 3.1 Extend 视频延展模型变体

可选值:

说明
veo-3.1-extend标准版
veo-3.1-extend-fast快速版
Available options:
veo-3.1-extend-fast
Example:

"veo-3.1-extend-fast"

prompt
string
required

文本提示词,描述视频延展后的内容走向

说明:

  • 支持中英文
  • 描述延续的动作、场景变化等
Example:

"The camera continues to pan across the landscape"

video
string
required

输入视频的公开 URL

说明:

  • 必须为公开可访问的 URL
  • 系统将从该视频末尾继续生成 7 秒内容
Example:

"https://example.com/input-video.mp4"

aspect_ratio
string
default:16:9

输出视频宽高比

可选值:

说明
16:9横屏(默认)
9:16竖屏
Example:

"16:9"

generate_audio
boolean
default:true

是否生成配套音频

说明:

  • 默认开启
Example:

true

advanced
object

高级选项,提供额外控制能力

Response

任务创建成功

created
integer

任务创建时间戳

Example:

1757165031

id
string

任务ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

实际使用的模型名称

object
enum<string>

任务的具体类型

Available options:
video.generation.task
progress
integer

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

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

0

status
enum<string>

任务状态

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

"pending"

task_info
object

异步任务信息

type
enum<string>

任务的输出类型

Available options:
video
Example:

"video"