- 最新公告
- OpenAI
- AnthropicClaude
- Elevenlabs 语音
- Fal.ai
- 火山方舟
- 可灵 Kling
- MiniMax
- 智谱 AI
- 万相
- 搜索 Search
- Textin
- Images
- Midjourney
- Audio
- RAG
- Files
- 🔥AI 工具
- 文档智能&图片处理
- AI产品配置教程
- 教程类
- 系统API
- 视频生成(Videos)
- 内容审查(Moderations)
- Deepdataspace
text-to-video
POST
https://api.chatfire.cn/fal-ai/{model}
最后修改时间:2025-07-04 03:15:26
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
model
string
枚举值
示例值:
hunyuan-video
Body 参数application/json
prompt
string
必需
num_inference_steps
integer
可选
默认值:
30
seed
integer
可选
pro_mode
boolean
可选
默认值:
false
aspect_ratio
enum<string>
可选
枚举值:
16:99:16
默认值:
16:9
resolution
enum<string>
可选
枚举值:
480p580p720p
默认值:
720p
num_frames
enum<string>
要生成的帧数。
枚举值:
12985
默认值:
129
enable_safety_checker
boolean
可选
默认值:
false
示例
{
"prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse.",
"num_inference_steps": 30,
"aspect_ratio": "16:9",
"resolution": "720p",
"num_frames": 129,
"enable_safety_checker": true,
"pro_mode": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.chatfire.cn/fal-ai/hunyuan-video' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse.",
"num_inference_steps": 30,
"aspect_ratio": "16:9",
"resolution": "720p",
"num_frames": 129,
"enable_safety_checker": true,
"pro_mode": true
}'
返回响应
🟢200成功
application/json
Body
status
string
必需
request_id
string
必需
response_url
string
必需
status_url
string
必需
cancel_url
string
必需
logs
null
必需
metrics
object
必需
queue_position
integer
必需
示例
{
"status": "IN_QUEUE",
"request_id": "5988e0ba-f86c-4c95-89c4-b091d36a5dee",
"response_url": "https://queue.fal.run/fal-ai/hunyuan-video/requests/5988e0ba-f86c-4c95-89c4-b091d36a5dee",
"status_url": "https://queue.fal.run/fal-ai/hunyuan-video/requests/5988e0ba-f86c-4c95-89c4-b091d36a5dee/status",
"cancel_url": "https://queue.fal.run/fal-ai/hunyuan-video/requests/5988e0ba-f86c-4c95-89c4-b091d36a5dee/cancel",
"logs": null,
"metrics": {},
"queue_position": 0
}
修改于 2025-07-04 03:15:26