FLUX Kontext Pro
使用文本指令编辑图像
model: "flux-kontext-pro"
模式
一个模型ID,支持下列所有模式。您发送的字段决定模式,价格随模式而定。
| 模式 | 选择方式 | 典型价格 |
|---|---|---|
| 图像编辑 | image_url请求示例{
"model": "flux-kontext-pro",
"input": {
"prompt": "a lighthouse at dusk",
"image_url": "https://example.com/image.jpg"
}
} | $0.040 |
| 结构控制 | modecontrol_image_url请求示例{
"model": "flux-kontext-pro",
"input": {
"prompt": "a lighthouse at dusk",
"image_url": "https://example.com/image.jpg",
"mode": "structure",
"control_image_url": "https://example.com/image.jpg"
}
} | $0.050 |
输入
Prompt
Image to edit. A public https URL, or an upload URL from POST /v1/uploads.
Count
Control image (https URL), with mode "structure".
Selects a mode that the other fields cannot: "structure" follows the edges or depth of a control image.
Follow the control image's edges (canny) or its depth.
高级选项 (4)
主要控件之外的提供商设置。保持为空可使用模型的默认值。
Let the model rewrite the prompt for better results.
How strictly the model follows the prompt. Higher is more literal.
File format of the result.
Random seed. The same seed and input reproduce the same result.
结果
示例输出该模型的真实结果。运行它可在此处查看您的输出。
curl https://arteza.ai/api/v1/generations \
-H "Authorization: Bearer $ARTEZA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-kontext-pro",
"input": {
"prompt": "man with the bycycle"
}
}'使用 FLUX Kontext Pro 创建






相关模型
Black Forest Labs
FLUX 3
最多 20 秒的 1080p AI 视频,支持原生音频
图像新增ByteDance
Seedream 5.0 Lite
最新一代,具有深度思考模式
图像新增ByteDance
Seedream 5.0 Pro
旗舰级深度思考图像模型,具有图像内文本和精确编辑
图像新增Black Forest Labs
FLUX 2 Pro
生产级逼真摄影
图像新增Black Forest Labs
FLUX Pro Ultra
最高质量,分辨率高达2K
图像新增Black Forest Labs
FLUX.1 Dev
具有精细控制的高质量图像生成