- OpenAI
- 平台接口
- 音乐模型
- 图像模型
- MidJourney
- ideogram
- FalAI
- 即梦
- Kling
- 视频模型
提交任务
开发中
POST
/fal-ai/{model}
请求参数
Path 参数
model
string
模型名称
示例值:
flux-pro/kontext
Header 参数
Authorization
string
必需
示例值:
Key {{tokens}}
Body 参数application/json
prompt
string
必需
guidance_scale
number
必需
num_images
integer
必需
safety_tolerance
string
必需
output_format
string
必需
image_url
string
必需
示例
{
"prompt": "Put a donut next to the flour.",
"guidance_scale": 3.5,
"num_images": 1,
"safety_tolerance": "2",
"output_format": "jpeg",
"image_url": "https://v3.fal.media/files/rabbit/rmgBxhwGYb2d3pl3x9sKf_output.png"
}
示例代码
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/flux-pro/kontext' \
--header 'Authorization: Key ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "Put a donut next to the flour.",
"guidance_scale": 3.5,
"num_images": 1,
"safety_tolerance": "2",
"output_format": "jpeg",
"image_url": "https://v3.fal.media/files/rabbit/rmgBxhwGYb2d3pl3x9sKf_output.png"
}'
返回响应
🟢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:20:01