- OpenAI
- 平台接口
- 音乐模型
- 图像模型
- MidJourney
- ideogram
- FalAI
- 即梦
- Kling
- 视频模型
提交任务
开发中
POST
/fal-ai/{model}
请求参数
Path 参数
model
string
模型名称
示例值:
kling-video/v2.1/standard/image-to-video
Header 参数
Authorization
string
必需
示例值:
Key {{tokens}}
Body 参数application/json
prompt
string
必需
image_url
string
必需
duration
string
必需
aspect_ratio
string
必需
negative_prompt
string
必需
cfg_scale
number
必需
示例
{
"prompt": "As the sun dips below the horizon, painting the sky in fiery hues of orange and purple, powerful waves relentlessly crash against jagged, dark rocks, their white foam a stark contrast to the deepening twilight; the textured surface of the rocks, wet and glistening, reflects the vibrant colors, creating a mesmerizing spectacle of nature's raw power and breathtaking beauty",
"image_url": "https://v3.fal.media/files/panda/W-_J46zuJDQnUhqkKm9Iv_image.webp",
"duration": "5",
"aspect_ratio": "16:9",
"negative_prompt": "blur, distort, and low quality",
"cfg_scale": 0.5
}
示例代码
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.uniapi.io/fal-ai/kling-video/v2.1/standard/image-to-video' \
--header 'Authorization: Key ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "As the sun dips below the horizon, painting the sky in fiery hues of orange and purple, powerful waves relentlessly crash against jagged, dark rocks, their white foam a stark contrast to the deepening twilight; the textured surface of the rocks, wet and glistening, reflects the vibrant colors, creating a mesmerizing spectacle of nature'\''s raw power and breathtaking beauty",
"image_url": "https://v3.fal.media/files/panda/W-_J46zuJDQnUhqkKm9Iv_image.webp",
"duration": "5",
"aspect_ratio": "16:9",
"negative_prompt": "blur, distort, and low quality",
"cfg_scale": 0.5
}'
返回响应
🟢200成功
application/json
Body
status
string
必需
request_id
string
必需
response_url
string
必需
status_url
string
必需
logs
null
必需
metrics
object
必需
queue_position
integer
必需
示例
{
"status": "IN_QUEUE",
"request_id": "725e8f7a-afbf-4e9d-9e33-314220bb1fed",
"response_url": "https://queue.fal.run/fal-ai/xxxx/requests/725e8f7a-afbf-4e9d-9e33-314220bb1fed",
"status_url": "https://queue.fal.run/fal-ai/xxxx/requests/725e8f7a-afbf-4e9d-9e33-314220bb1fed/status",
"logs": null,
"metrics": {},
"queue_position": 0
}
修改于 2025-06-09 11:22:18