跳转到主要内容
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": "kling-v3-motion-control",
  "image_url": "https://example.com/person.jpg",
  "video_url": "https://example.com/dance.mp4",
  "mode": "pro",
  "prompt": "人物跟随参考视频的舞蹈动作,流畅自然",
  "character_orientation": "image",
  "keep_original_sound": "no"
}
'
{
  "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
默认值:kling-v3-motion-control
必填

kling-v3-motion-control:V3 版本 kling-v2-6-motion-control:V2.6 版本

示例:

"kling-v3-motion-control"

"kling-v2-6-motion-control"

image_url
string
必填

参考图片的公开 URL(人物外观来源)

说明:

  • 格式:JPG / PNG
  • 必须为公开可访问的 URL
  • 图片中的人物将被赋予参考视频中的动作
  • 人物需无遮挡,并建议占画面面积超过 5%
示例:

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

video_url
string
必填

参考视频的公开 URL(动作来源)

说明:

  • 格式:MP4 / MOV
  • 必须为公开可访问的 URL
  • 时长上限受 character_orientation 影响:image 最长 10 秒,video 最长 30
  • 建议画面中包含完整或半身人物,且头部无遮挡
  • 视频时长决定输出时长和计费
示例:

"https://example.com/dance.mp4"

mode
string
默认值:std

生成模式

可选值:

  • std — 标准质量(默认)
  • pro — 高质量
示例:

"std"

prompt
string
默认值:""

文本提示词

说明:

  • 可选,用于补充描述期望的视频效果
  • 支持中英文
示例:

"人物跟随参考视频的舞蹈动作,流畅自然"

character_orientation
string
默认值:image

角色朝向控制

可选值:

  • image — 保持图片中的朝向(默认),输入视频最长 10
  • video — 跟随参考视频中的朝向,输入视频最长 30

非必须不要传这个参数。

示例:

"image"

keep_original_sound
string
默认值:yes

是否保留参考视频的原始音频

可选值:

  • yes — 保留原始音频(默认)
  • no — 静音

非必须不要传这个参数。

示例:

"yes"

响应

任务创建成功

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"