- 最新公告
- OpenAI
- AnthropicClaude
- Elevenlabs 语音
- Fal.ai
- 火山方舟
- 可灵 Kling
- MiniMax
- 智谱 AI
- 万相
- 搜索 Search
- Textin
- Images
- Midjourney
- Audio
- RAG
- Files
- 🔥AI 工具
- 文档智能&图片处理
- AI产品配置教程
- 教程类
- 系统API
- 视频生成(Videos)
- 内容审查(Moderations)
- Deepdataspace
FLUX.1 [Dev] 图片生成图片
POST
/fal-ai/flux-1/dev/image-to-image
绘图模型/Flux 系列/Fal.ai 平台兼容
最后修改时间:2025-07-02 09:37:37
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例值:
Bearer {{API_KEY}}
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
image_url
string
必需
示例值:
https://fal.media/files/koala/Chls9L2ZnvuipUTEwlnJC.png
prompt
string
必需
示例值:
a cat dressed as a wizard with a background of a mystic forest.
strength
number
可选
>= 0.01<= 1
默认值:
0.95
num_inference_steps
integer
可选
>= 10<= 50
默认值:
40
guidance_scale
number
可选
>= 1<= 20
默认值:
3.5
seed
integer | null
可选
sync_mode
boolean
可选
默认值:
false
num_images
integer
可选
>= 1<= 4
默认值:
1
enable_safety_checker
boolean
可选
默认值:
true
示例
{
"image_url": "https://fal.media/files/koala/Chls9L2ZnvuipUTEwlnJC.png",
"prompt": "a cat dressed as a wizard with a background of a mystic forest.",
"strength": 0.2703404389085102,
"num_inference_steps": 50,
"guidance_scale": 2.6027691093823955,
"seed": 26,
"sync_mode": true,
"num_images": 4,
"enable_safety_checker": 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 '/fal-ai/flux-1/dev/image-to-image' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_url": "https://fal.media/files/koala/Chls9L2ZnvuipUTEwlnJC.png",
"prompt": "a cat dressed as a wizard with a background of a mystic forest.",
"strength": 0.2703404389085102,
"num_inference_steps": 50,
"guidance_scale": 2.6027691093823955,
"seed": 26,
"sync_mode": true,
"num_images": 4,
"enable_safety_checker": true
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2025-07-02 09:37:37