FLUX 3 Image Klein 是 Black Forest Labs FLUX 3 Image 家族中 5.6B 参数的开放权重模型。调用 FLUX 3 Image Klein API 时使用模型 flux-3-image-klein,可根据文字或最多 10 张参考图每次生成或编辑一张图像。
服务亮点

Image link valid for 72 hours
透明定价,无隐藏费用。按量付费,用多少付多少。
* 实际费用以最终输出为准。
通过 FLUX 3 Image Klein API,可根据文字生成图像、编辑参考图或组合最多 10 张图像。可选择分辨率档位和宽高比,并控制随机种子、步数、输出格式和安全容忍度。
FLUX 3 Image Klein 是 FLUX 3 Image 家族中更小、更快的开放权重模型。 对比 FLUX 3 Image
FLUX 3 Image Klein API 支持的生成、编辑与输出控制
创意、产品与设计团队如何使用 FLUX 3 Image Klein 模型
三步完成从注册到发出第一个 FLUX 3 Image Klein API 请求
免费注册。一个账号即可使用 FLUX 3 Image Klein API 以及 APIMart 上的其他所有模型。
为账户充值。FLUX 3 Image Klein 按张、按分辨率档位计费,同一份余额可用于所有模型。
在控制台创建 API Key,以 Bearer Token 调用 POST /v1/images/generations,并指定模型 flux-3-image-klein。
一次 POST 请求即可调用 flux-3-image-klein。生成为异步任务:先提交任务,再轮询任务接口获取图片链接。
把 APIMart Key 保存到环境变量 APIMART_API_KEY,每个请求都带上 Authorization: Bearer <key>。
向 POST /v1/images/generations 提交 model flux-3-image-klein、提示词、resolution 和 aspect_ratio。按需加 seed、steps 或 output_format,编辑时传 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 Klein 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-klein",
"prompt": "山间日出的扁平矢量海报,醒目的标题文字 SUMMIT 2026,暖橙与青绿配色",
"resolution": "1k",
"aspect_ratio": "16:9",
"output_format": "png"
}'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-klein",
"prompt": "山间日出的扁平矢量海报,醒目的标题文字 SUMMIT 2026,暖橙与青绿配色",
"resolution": "1k",
"aspect_ratio": "16:9",
"output_format": "png"
}
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-klein",
"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-klein | 填 flux-3-image-klein。 |
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。 |
seed | integer | 否 | 默认值: — | 0 到 4294967295。相同 seed 与设置可复现结果;不传则随机。 |
steps | integer | 否 | 默认值: 16 | 1–16 步去噪。步数越少越快,价格不变。 |
output_format | string | 否 | 默认值: jpeg | jpeg 或 png(jpg 等同 jpeg)。传 webp 会返回 HTTP 400。 |
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 Image Klein API 的模型、输入、价格、API Key 与任务处理
FLUX 3 Image Klein API 提供 Black Forest Labs FLUX 3 Image 家族中 5.6B 参数开放权重模型的调用。在 APIMart 使用模型 flux-3-image-klein,可进行文生图、编辑或多图参考,每次请求返回一张图像。
Black Forest Labs 于 2026 年 10 月 15 日发布 FLUX 3 Image Klein,同时开放权重并上线官方 API,比 FLUX 3 Image 晚两周。在 APIMart 上调用时 model 填 flux-3-image-klein。
Klein 是家族中更小、更快、单张价格更低的模型。通过 API 使用时,它额外支持随机种子、1–16 步和 PNG/JPEG 输出;不支持 FLUX 3 Image 的 grounding 搜索增强,safety_tolerance 同样为 0 到 4。
image_urls 最多接受 10 个 HTTP(S) 地址或 Base64 图片,第一张是被编辑的图像。
可选择分辨率档位 768sq(768×768)、1k(约 1MP)、1.5k(约 2MP)、2k(约 4MP)或 4k(约 16MP),搭配 auto 或 15 种宽高比。目前不接受 width / height 精确像素参数,需要特定画幅请用 aspect_ratio 搭配 resolution。
seed(0 到 4294967295)在相同设置下可复现结果,留空则随机;steps 设置 1–16 步降噪,默认 16,步数越少越快,且不影响价格;output_format 可选 jpeg(默认)或 png,jpg 等同 jpeg。
Black Forest Labs 在 Hugging Face 发布 Klein 权重,适用模型卡上的许可证。据 Black Forest Labs 说明,在商业产品中运行这些权重需要向其获取商业许可。本页介绍的是 API 调用,自托管条款请以 Black Forest Labs 的许可页面为准。
每张图片只按分辨率档位计价。APIMart 原价(2026 年 10 月):768sq $0.008、1k $0.009、1.5k $0.011、2k $0.014、4k $0.036。宽高比、参考图数量、steps、seed 和 output_format 都不影响价格,文生图与编辑同价。黄金会员立减 20%,铂金和钻石会员最高省 28%;最终扣费以完成任务的 cost 为准。
注册 APIMart 账号并为余额充值,然后在控制台的 API Key 页面创建密钥。调用 FLUX 3 Image Klein API 时以 Bearer Token 方式携带该密钥;同一个密钥可调用 APIMart 上的所有模型。
POST /v1/images/generations 返回 task_id。轮询 GET /v1/tasks/{task_id} 直到任务完成或失败,然后从 data.result.images[0].url[0] 读取图片链接。APIMart 生成结果保留 72 小时,请及时下载需要保存的图片。
FLUX 3 Image Klein、FLUX 3 Klein、FLUX.3 Klein、FLUX3 Klein 指的是同一个模型,在 APIMart 上用 flux-3-image-klein 调用。FLUX.2 [klein] 是 Black Forest Labs 于 2026 年 1 月发布的另一个更早的开放权重模型,本 API 不提供。Klein Base 是用于微调的 50 步 FLUX 3 版本,只发布开放权重,没有 API。
不免费。APIMart 的 FLUX 3 Image Klein API 没有免费额度,按量付费,原价 768sq 每张 $0.008 起,失败任务会退款。如果想自己部署,Black Forest Labs 在 Hugging Face 按其许可证发布了模型权重。
探索同类型的其他模型。

Mai Image 2.6 Flash
MAI-Image-2.6 Flash is the Flash version of Microsoft MAI-Image-2.6 for text-to-image and image editing with up to 5 references, 1K/2K PNG output and optional Bing grounding, billed by actual token usage.

Mai Image 2.6
MAI-Image-2.6 is Microsoft's image model for text-to-image, single-image editing and composition with up to 5 reference images. It is available in high-quality and Flash versions, with 1K and 2K output and sharp text rendering.

Flux 3 Image
FLUX 3 Image by Black Forest Labs handles text-to-image, single-image editing and generation with up to 10 reference images. It supports multiple aspect ratios and resolutions up to 4K, priced by resolution with no extra charge for references.

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.