- 最新公告
- 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}/{submodel}
最后修改时间:2025-07-04 04:06:49
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
model
string
枚举值
示例值:
pika
submodel
string
必需
示例值:
v2.2/text-to-video
Body 参数application/json
prompt
string
生成的提示词
seed
integer
随机数生成器的种子
negative_prompt
string
可选
默认值:
aspect_ratio
enum<string>
生成视频的宽高比
枚举值:
16:99:161:14:55:43:22:3
默认值:
16:9
resolution
enum<string>
生成视频的分辨率
枚举值:
720p1080p
默认值:
720p
duration
integer
可选
默认值:
5
示例
{
"prompt": "Sunlight streams down on a woman with flowing auburn hair as she runs effortlessly along a tree-lined street, her joyous expression reflecting the freedom of the moment; the simple, steady camerawork emphasizes her grace and the beauty of the everyday.",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"seed": 3809957,
"negative_prompt": ""
}
示例代码
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/pika/v2.2/text-to-video' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "Sunlight streams down on a woman with flowing auburn hair as she runs effortlessly along a tree-lined street, her joyous expression reflecting the freedom of the moment; the simple, steady camerawork emphasizes her grace and the beauty of the everyday.",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"seed": 3809957,
"negative_prompt": ""
}'
返回响应
🟢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": "253d3040-d026-4edf-adcc-9e6f83963d47",
"response_url": "https://queue.fal.run/fal-ai/pika/requests/253d3040-d026-4edf-adcc-9e6f83963d47",
"status_url": "https://queue.fal.run/fal-ai/pika/requests/253d3040-d026-4edf-adcc-9e6f83963d47/status",
"cancel_url": "https://queue.fal.run/fal-ai/pika/requests/253d3040-d026-4edf-adcc-9e6f83963d47/cancel",
"logs": null,
"metrics": {},
"queue_position": 109
}
修改于 2025-07-04 04:06:49