Black Forest Labs 的 FLUX 3 Image 是 FLUX 3 API 中的图片模型。每次请求根据文字或最多 10 张参考图生成 1 张图片,提供 5 档分辨率,最高 4K。价格由分辨率决定,参考图不另收费。
服务亮点

Image link valid for 72 hours
透明定价,无隐藏费用。按量付费,用多少付多少。
* 实际费用以最终输出为准。
用 FLUX 3 API 从文字生成图片、编辑参考图或组合最多 10 张图片。可选择分辨率和宽高比、控制搜索增强,并在提示词中描述版式。Klein 与 Video 使用同一个 APIMart Key。
FLUX 3 Image Klein 是同系列中更小、更快的开放权重模型,额外支持 seed、1–16 步与 PNG/JPEG 输出,单张价格更低。 查看 FLUX 3 Image Klein
已接入的生成、编辑与输出设置
结合人工审阅与批准的创作场景建议
三步完成从注册到发出第一个 FLUX 3 Image API 请求
免费注册。一个账号即可使用 FLUX 3 Image API 以及 APIMart 上的其他所有模型。
为账户充值。FLUX 3 Image 按张、按分辨率档位计费,同一份余额可用于所有模型。
在控制台创建 API Key,以 Bearer Token 调用 POST /v1/images/generations,并指定模型 flux-3-image。
一次 POST 请求即可调用 flux-3-image。生成为异步任务:先提交任务,再轮询任务接口获取图片链接。
把 APIMart Key 保存到环境变量 APIMART_API_KEY,每个请求都带上 Authorization: Bearer <key>。
向 POST /v1/images/generations 提交 model flux-3-image、提示词、resolution 和 aspect_ratio。编辑或组合参考图时传 image_urls。示例里的 example.com 地址只是占位,请换成你自己可公开访问的图片 URL 或 Base64。任务 ID 在 data[0].task_id。
轮询 GET /v1/tasks/{task_id},状态为 completed 后从 data.result.images[0].url[0] 读取图片链接。结果保留 72 小时,请及时下载需要保存的图片。
全部参数、版式语法与返回字段见 FLUX 3 Image API 文档。
curl -X POST https://api.apimart.ai/v1/images/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-3-image",
"prompt": "窗边亚麻桌布上的陶瓷咖啡杯,柔和晨光,产品摄影,杯身印有 MORNING 字样",
"resolution": "1k",
"aspect_ratio": "16:9"
}'import os
import time
import requests
API_BASE = "https://api.apimart.ai"
headers = {"Authorization": f"Bearer {os.environ['APIMART_API_KEY']}"}
# 1. Submit the generation task
payload = {
"model": "flux-3-image",
"prompt": "窗边亚麻桌布上的陶瓷咖啡杯,柔和晨光,产品摄影,杯身印有 MORNING 字样",
"resolution": "1k",
"aspect_ratio": "16:9"
}
resp = requests.post(f"{API_BASE}/v1/images/generations", headers=headers, json=payload, timeout=60)
resp.raise_for_status()
task_id = resp.json()["data"][0]["task_id"]
# 2. Poll the task until it finishes
for _ in range(200):
task_resp = requests.get(f"{API_BASE}/v1/tasks/{task_id}", headers=headers, timeout=30)
task_resp.raise_for_status()
task = task_resp.json()["data"]
if task["status"] == "completed":
print(task["result"]["images"][0]["url"][0])
break
if task["status"] == "failed":
raise RuntimeError(task.get("error", {}).get("message", "generation failed"))
time.sleep(3)
else:
raise TimeoutError(f"task {task_id} did not finish in time; continue GET polling with this task ID")curl -X POST https://api.apimart.ai/v1/images/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-3-image",
"prompt": "把背景换成阳光海滩,产品本身、标签和光线保持不变",
"resolution": "1k",
"aspect_ratio": "auto",
"image_urls": [
"https://example.com/reference.jpg"
]
}'TASK_ID="task_xxx" # replace with the task_id returned by the POST request
curl "https://api.apimart.ai/v1/tasks/$TASK_ID" \
-H "Authorization: Bearer $APIMART_API_KEY"| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
model | string | 是 | 默认值: flux-3-image | 填 flux-3-image。 |
prompt | string | 是 | 默认值: — | 文生图时描述画面,编辑时写修改指令。不支持负向提示词,请直接描述想要的效果。 |
image_urls | string[] | 否 | 默认值: — | 最多 10 张参考图,支持公开 HTTP(S) URL 或 Base64。文生图时不传;编辑时第一张为被编辑的图片。 |
resolution | string | 否 | 默认值: 1k | 768sq、1k、1.5k、2k 或 4k(约 16 MP)。决定单张价格。 |
aspect_ratio | string | 否 | 默认值: auto | 21:9 到 9:21 共 15 种比例或 auto。传 1024x1024 这类像素尺寸会返回 HTTP 400。 |
grounding | boolean | 否 | 默认值: true | 生成前允许联网或图片检索。关闭时传布尔值 false。 |
safety_tolerance | integer | 否 | 默认值: 2 | 0(最严格)到 4。 |
一个 APIMart API Key 即可调用下表所有 FLUX 模型。图片模型按张计费,FLUX 3 Video 按视频秒数计费。
| 模型 | 适合场景 | 输出 |
|---|---|---|
| FLUX 3 Image API当前页面 | 图片方向的 FLUX 3 API:文生图与编辑,最多 10 张参考图,支持搜索增强,最高 4K 输出 | 768sq 至 4K(约 16 MP) |
| FLUX 3 Image Klein API | 成本更低的 FLUX 3 图片,可设 seed、1–16 步,输出 PNG 或 JPEG | 768sq 至 4K(约 16 MP) |
| FLUX 3 Video API | 文生视频、1–10 张关键帧、视频续写与草稿,自带同步音频 | HD 或 FHD,5–20 秒 |
| FLUX.2 API | 在一个页面里比较 FLUX.2 Pro、Max 与 Flex | 1–4 MP |
| FLUX.2 Pro API | 兼顾质量与成本的生产级图片,最多 8 张参考图 | 1–4 MP |
| FLUX.2 Max API | FLUX.2 系列最高画质,最多 8 张参考图 | 1–4 MP |
| FLUX.2 Flex API | 可调 steps 与 guidance,适合文字排版和版式设计 | 1–4 MP |
| FLUX.1 Kontext API | 在一个页面里比较 FLUX.1 Kontext Pro 与 Max | 约 1 MP |
| FLUX.1 Kontext Pro API | 上下文感知编辑,每张固定价格,最多 4 张参考图 | 约 1 MP |
| FLUX.1 Kontext Max API | 画质更高、更贴合提示词的 Kontext 编辑 | 约 1 MP |
了解输入、输出设置、计费与任务处理
FLUX 3 是 Black Forest Labs 的多模态模型系列。在 APIMart 上,FLUX 3 API 用同一个 Key 覆盖三个模型:FLUX 3 Image(flux-3-image,本页)用于图像生成与编辑,FLUX 3 Image Klein(flux-3-image-klein)用于更低成本的图片,FLUX 3 Video(flux-3-video)用于带音频的视频。FLUX 3 Image 每次请求返回 1 张最终图片。
根据 Black Forest Labs 的发布说明,FLUX 3 于 2026 年 7 月 23 日发布,FLUX 3 Image 于 2026 年 10 月 1 日通过官方 API 推出。在 APIMart 上调用时 model 填 flux-3-image。
image_urls 接受最多 10 张图片,可使用公网可访问的 HTTP(S) 链接或 base64 图片数据。传入参考图即为编辑或多图参考任务,参考图不额外收费。
分辨率支持 768sq、1k、1.5k、2k、4k;画幅支持从 21:9 到 9:21 的 15 种比例及 auto。默认 1k 和 auto。编辑时 auto 跟随第一张参考图;纯文生图按提示词决定,否则使用 1:1。
grounding 默认 true,允许上游在生成前检索网页或图片;设为 false 可关闭。safety_tolerance 必须是 0–4 的整数,0 最严格,默认 2。
按照官方文档的语法,将布局和局部编辑要求写在 prompt 中。工具没有可视化框选编辑器,也没有独立的 bbox 请求参数。
单张价格只取决于分辨率。APIMart 原价(2026 年 10 月):768sq $0.041、1k $0.048、1.5k $0.07、2k $0.10、4k $0.607。宽高比和参考图数量不影响价格。黄金会员立减 20%,铂金和钻石会员最高省 28%;当前价格以本页价格表为准,最终扣费以任务结果的 cost 为准。失败或被审核拦截的任务全额退款。
POST /v1/images/generations 返回 task_id。轮询 GET /v1/tasks/{task_id} 直到任务完成或失败,然后从 data.result.images[0].url[0] 读取图片链接。4k 任务可能需要几分钟。APIMart 生成结果保留 72 小时,请及时下载需要保存的图片。
不能直接套用。本接口不支持 width、height、像素尺寸字符串、seed、steps、guidance、output_format、negative_prompt 或 prompt_upsampling,也不支持一次生成多张。请通过 resolution 设置分辨率,通过 aspect_ratio 设置画幅。
注册 APIMart 并充值,然后在控制台的 API Keys 页面创建 Key,每次请求以 Bearer Token 方式携带。同一个 Key 可调用 FLUX 3 Image、FLUX 3 Image Klein、FLUX 3 Video 以及 APIMart 上的其他所有模型,按量付费。
探索同类型的其他模型。

Nano banana 2.1
Nano Banana 2.1 is Google's Gemini image model for text-to-image generation and reference-image editing. It outputs 1K, 2K or 4K images in 14 aspect ratios and is available through official and Ext routes.

Seedream 5.0 Flash
Seedream 5.0 Flash is ByteDance's fast, lower-cost text-to-image model. It supports single-image and multi-reference editing with up to 10 references and generates 1K, 1.5K or 2K images, or exact pixel sizes, with strong text rendering.

GPT Image 2.5 Flare
GPT Image 2.5 Flare is OpenAI's speed-focused GPT Image 2.5 model for image generation and editing. It supports up to 16 reference images, inpainting with transparent PNG masks and 15 aspect ratios.

GPT Image 2.5 Sunburst
GPT Image 2.5 Sunburst is an OpenAI image model for generation and editing, focused on precise edits for detail-sensitive creative work. Supports up to 16 reference images and PNG, JPEG or WebP output.
来自 APIMart 博客的教程、对比与价格分析。