Black Forest Labs: FLUX.2 [klein] 4B Base
flux-2-klein-4b-base- 价格
- 起 $0.0019
- 模态
- 图像
FLUX.2 [klein] 4B Base 简介
FLUX.2 [klein] 4B Base 是 Black Forest Labs 最小的 FLUX.2 模型的未蒸馏版本,40 亿参数,支持文生图和多参考图编辑。与步数蒸馏的 klein 4B 不同,它保留了完整的训练信号,输出更多样,也是更好的微调起点,代价是需要多得多的采样步数。
擅长的任务
- 未经蒸馏,保留完整的训练信号,是 LoRA 训练和自定义后训练的预期基座。
- Black Forest Labs 称其输出多样性高于蒸馏版 klein 模型,适合一个提示词要很多种不同解读的情况。
- 40 亿参数,约 13GB 显存即可运行,消费级 GPU 也能做本地实验。
- 权重采用 Apache 2.0,是 FLUX.2 系列中最宽松的许可。
什么情况换别的模型
- 默认采样约 50 步,单张出图比步数蒸馏的 klein 4B 慢。
- 图中文字可能变形,厂商也提醒提示词遵循程度取决于措辞。
- 更大的 FLUX.2 [dev] 和 9B 模型容量更大,处理复杂场景和多参考图融合更好。
快速上手
创建 API 密钥
在 Console 生成一把密钥,平台上的模型都能用。
发送第一个请求
复制你所用语言的示例代码,向该端点发起请求。
图像编辑文生图TokenLab 端点POST/v1/images/generationscurl -X POST "https://api.tokenlab.sh/v1/images/generations" \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d '{ "operation": "image-to-image", "model": "flux-2-klein-4b-base", "prompt": "A minimalist product photo of matte black headphones on a soft blue background.", "image_url": "https://example.com/source.png" }'
参数
图像编辑
| 参数 | 可选值与限制 | 默认值 | 说明 |
|---|---|---|---|
cfg_scale | ≥ 1, ≤ 20 | 未提供 | Use multiples of 0.01. |
guidance_scale | ≥ 1, ≤ 20 | 未提供 | Use multiples of 0.01. |
height | ≥ 128, ≤ 2048 | 1024 | Use an integer. Use multiples of 16. |
image | 未提供 | 未提供 | Alias of the combined images input. See input_limits.images for the total input image count. |
image_url | 未提供 | 未提供 | Alias of the combined images input. See input_limits.images for the total input image count. |
image_urls | 未提供 | 未提供 | Alias of the combined images input. See input_limits.images for the total input image count. |
images | 输入数量:≥ 1, ≤ 4 | 未提供 | Limits apply when this input is supplied. Image aliases are combined into one input image list; the limit applies to the combined list. |
n | 1 | 1 | Use an integer. |
negative_prompt | 未提供 | 未提供 | Minimum length: 1 characters. Maximum length: 10000 characters. |
operation必填 | 未提供 | 未提供 | 未提供 |
output_format | jpeg, png, webp | 未提供 | Default encoding is shared by these equivalent values: jpg, jpeg. |
prompt | 未提供 | 未提供 | Minimum length: 1 characters. Maximum length: 10000 characters. |
seed | ≥ 0, ≤ 9007199254740991 | 未提供 | Use an integer. |
size | 未提供 | 1024x1024 | Use WIDTHxHEIGHT in pixels. The width and height constraints also apply to size. |
steps | ≥ 1, ≤ 50 | 28 | Use an integer. |
width | ≥ 128, ≤ 2048 | 1024 | Use an integer. Use multiples of 16. |
文生图
| 参数 | 可选值与限制 | 默认值 | 说明 |
|---|---|---|---|
cfg_scale | ≥ 1, ≤ 20 | 未提供 | Use multiples of 0.01. |
guidance_scale | ≥ 1, ≤ 20 | 未提供 | Use multiples of 0.01. |
height | ≥ 128, ≤ 2048 | 1024 | Use an integer. Use multiples of 16. |
images | 未提供 | 未提供 | Text-to-image does not accept source images. Do not send this field for that operation. Use one of this model's declared image operations for source-image requests. |
n | 1 | 1 | Use an integer. |
negative_prompt | 未提供 | 未提供 | Minimum length: 1 characters. Maximum length: 10000 characters. |
operation必填 | 未提供 | 未提供 | 未提供 |
output_format | jpeg, png, webp | 未提供 | Default encoding is shared by these equivalent values: jpg, jpeg. |
prompt | 未提供 | 未提供 | Minimum length: 1 characters. Maximum length: 10000 characters. |
seed | ≥ 0, ≤ 9007199254740991 | 未提供 | Use an integer. |
size | 未提供 | 1024x1024 | Use WIDTHxHEIGHT in pixels. The width and height constraints also apply to size. |
steps | ≥ 1, ≤ 50 | 28 | Use an integer. |
width | ≥ 128, ≤ 2048 | 1024 | Use an integer. Use multiples of 16. |
Fields outside this contract are rejected.
价格
Verified 价格用于 Verified,多数模型更便宜;Official 价格是模型厂商公布的价格,用于更稳定的 Official。Auto 按最终完成请求的线路计价。
图像编辑
每次请求- Official 价格
- $0.0019
- Verified 价格
- —
- 折扣
- —
文生图
每次请求- Official 价格
- $0.0019
- Verified 价格
- —
- 折扣
- —
| Official 价格每次请求 | Verified 价格每次请求 | 折扣 | |
|---|---|---|---|
| 图像编辑 | $0.0019 | — | — |
| 文生图 | $0.0019 | — | — |
用量与动态
成功率是请求完成的比例;延迟是拿到一次完整响应要花的时间,P95 表示 95% 的请求都在这个时间内完成。
用量与可用性
最近 24 小时- 请求
- 成功率
- P95 延迟
- 总 token 数
数据来自汇总的用户请求,不含状态检查。
直接在 Console 里试
FLUX.2 [klein] 4B Base 已在 Console 备好,提示词已填好,可以直接修改或发送。
帮我用 flux-2-klein-4b-base 完成一次 image-edit 图片创作,接口是 /v1/images/edits。返回生成结果、费用和需要注意的限制。
使用场景
适用场景- 文生图
微调自家风格
用几百张品牌图训练 LoRA,起点是没有被蒸馏压缩过的基座。
生成多样的候选
对同一份需求生成许多不同的诠释供设计师挑选,输出更分散正好派上用场。
小型图像模型研究
在衡量蒸馏或新训练方案带来什么变化时,把它当作参照点。
轻量编辑流程
在自定义工作流里,用一个小模型同时跑文生图和基于参考图的编辑。
提示词示例
一张虚构港口小镇的水彩地图,柔和的青绿和赭石色,手写字体质感,不要出现可辨认的文字。
为一家叫 Crumb 的面包店设计四个不同方向的 logo,扁平矢量风格,每个只用一种颜色。
把参考照片里的沙发放进阳光明媚的北欧风客厅。
FAQ
FLUX.2 [klein] 4B Base 里的 Base 是什么意思?
Base 指未蒸馏。这个检查点保留完整的训练信号,没有被压缩成几步采样器,所以更适合定制,输出也更多样,但没有针对最快推理做优化。
它和 FLUX.2 [klein] 4B 有什么区别?
普通 4B 做了步数蒸馏以提速,一秒内就能出图。4B Base 需要多得多的采样步数,用于训练、研究,以及输出多样性比延迟更重要的场景。
FLUX.2 [klein] 4B Base 可以商用吗?
权重按 Apache 2.0 发布,允许商用模型及其输出。你的部署若有额外条件,请核对许可文本和厂商的使用政策。
它支持图像编辑吗?
支持。Black Forest Labs 称 klein 系列是文生图与多参考图编辑的统一架构,4B Base 继承了这两项能力,一个检查点就能同时处理生成和编辑请求。
自托管需要什么 GPU?
模型卡给出的最低显存约为 13GB,RTX 3090 和 4070 这一档显卡可以满足。只有自己运行权重时,这个要求才有意义。
FLUX.2 [klein] 4B Base 的费用是多少?
在 TokenLab 上,FLUX.2 [klein] 4B Base 的价格为 $0.0019 每次请求。完整明细见上方价格表。 价格因计费单位、规格和用量而异。请在模型的详细定价中对比相同条件下的费率;单一费率不代表总价。
FLUX.2 [klein] 4B Base 应该使用哪个端点?
FLUX.2 [klein] 4B Base 使用 https://api.tokenlab.sh/v1/images/edits。代码写法见下方的请求示例。
FLUX.2 [klein] 4B Base 支持哪些操作?
FLUX.2 [klein] 4B Base 支持 图像编辑, 文生图。选了操作,上面会显示对应的端点和请求示例。
FLUX.2 [klein] 4B Base 对比
用到 FLUX.2 [klein] 4B Base 的指南
资料来源
审阅于 2026年10月2日