跳转到主要内容
POST
/
v1
/
videos
/
generations
PixVerse V6 Text to Video
curl --request POST \
  --url https://api.foxapi.cc/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "pixverse-v6-text-to-video",
  "prompt": "A futuristic train speeding through a rainy neon city, cinematic lighting",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "duration": 5,
  "generate_audio": true,
  "generate_multi_clip": true,
  "thinking_type": "auto",
  "style": "cyberpunk"
}
'
{
  "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
默认值:pixverse-v6-text-to-video
必填

pixverse-v6-text-to-video:文生视频,支持风格化、音频生成、多镜头与提示词优化

示例:

"pixverse-v6-text-to-video"

prompt
string
必填

文本提示词,描述想要生成或延长的视频内容

说明:

  • 支持中英文
  • 建议明确描述主体、动作、场景与镜头语言
示例:

"A cinematic dolly shot through a neon cyberpunk alley at night"

resolution
string
默认值:720p

输出视频分辨率

可选值:

  • 360p
  • 540p
  • 720p — 默认
  • 1080p
示例:

"720p"

duration
integer
默认值:5

输出视频时长(秒)

说明:

  • 支持 115
  • 默认 5
示例:

5

generate_audio
boolean
默认值:false

是否生成配套音频

说明:

  • 启用后可生成背景音、音效或对白
  • 默认关闭
示例:

false

negative_prompt
string | null

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

说明:

  • 可用逗号分隔多个关键词

非必须不要传这个参数。

示例:

"blurry, low quality, watermark"

style
string | null

输出风格

可选值:

  • anime
  • 3d_animation
  • clay
  • comic
  • cyberpunk

非必须不要传这个参数。

示例:

"cyberpunk"

seed
integer | null

随机种子

说明:

  • 相同参数配合相同 seed 可提高结果复现性
  • 不传则随机

非必须不要传这个参数。

示例:

42

aspect_ratio
string
默认值:16:9

输出视频宽高比

可选值:

  • 16:9
  • 4:3
  • 1:1
  • 3:4
  • 9:16
  • 2:3
  • 3:2
  • 21:9
示例:

"16:9"

generate_multi_clip
boolean | null

是否启用多镜头生成

说明:

  • 启用后可生成带动态镜头变化的多片段视频

非必须不要传这个参数。

示例:

true

thinking_type
string | null

提示词优化模式

可选值:

  • enabled — 总是优化
  • disabled — 不优化
  • auto — 由模型决定

非必须不要传这个参数。

示例:

"auto"

响应

任务创建成功

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"