logo
RunComfy
  • ComfyUI
  • TrainerNew
  • Models
  • API
  • Pricing
discord logo
MODELS
Explore
All Models
LIBRARY
Generations
MODEL APIS
API Docs
API Keys
ACCOUNT
Usage

Flux 2 Klein 4B:4 步亚秒文本到图像生成 | Models and API | RunComfy

blackforestlabs/flux-2-klein/4b/text-to-image

以亚秒级速度、精确的多参考合成以及高达 1024x1024 的分辨率从文本生成和编辑高质量图像,适用于电子商务、设计和产品营销。

Idle
[Super Limited Time Offer] The rate is $0.003 per image.

Flux 2 Klein 4B 简介

Black Forest Labs 的 Flux 2 Klein 4B 文本到图像从文本生成图像,并以每张图像 0.003 美元的价格执行多参考编辑,具有亚秒级延迟和高达 1024x1024 的输出,提供超快速、统一的文本到图像和图像编辑。 Flux 2 Klein 4B 将手动遮罩、缓慢升级和 GPU 处理转换为 4 步、即时忠实、多参考合成,为 RunComfy 上的电子商务团队、设计师和产品营销人员简化了创意迭代和品牌安全编辑。对于开发人员来说,RunComfy 上的 Flux 2 Klein 4B 既可以在浏览器中使用,也可以通过 HTTP API 使用,因此您无需自行托管或扩展模型。
非常适合:快速创意原型制作|品牌活动视觉效果|多参考产品模型

Black Forest Labs / Flux 2 Klein 4B Text to Image#


Flux 2 Klein 4B is a compact, open-weight text-to-image and image-editing model built by Black Forest Labs, optimized for speed and responsive creative iteration. It accepts a text prompt (and optionally one or more reference images for editing) and returns a single image suitable for 概念草图, mockups, and fast visual experiments.


Output format: up to ~1024×1024 resolution (commonly used), fps: n/a, duration: n/a, aspect ratio: flexible, audio: none




Highlights#


  • Distilled, fast sampling: Flux 2 Klein 4B commonly reaches interactive latency with very few steps, enabling quick prompt iteration.
  • Unified generate + edit: One model for text-to-image and image-to-image, with optional multi-reference guidance for consistent edits.
  • Open and integration-friendly: Apache 2.0 open weights and support across popular tooling make deployment flexible.
  • Efficient by design: Flux 2 Klein 4B typically runs on consumer-grade GPUs or cloud instances without heavy VRAM needs.
  • Strong prompt adherence: Good control via descriptive prompts, camera terms, and style cues, with reliable reproducibility via seeds (when exposed by the platform).



Parameters#


ParameterRequiredTypeDefaultRange / OptionsDescription
multipart*Yes (*)objectNonen/aContainer for form-data fields; typically includes prompt text and generation options.
bodyNoobjectNonen/aThe multipart body payload; commonly includes fields such as prompt, steps, width, height, and optional references (varies by provider).
contentTypeNostringNonen/aContent type for multipart submissions; set by the client or SDK.



Pricing#


UnitPrice
Per image$0.003



How to Use#


1) 在 RunComfy 中选择本模型: select Flux 2 Klein 4B Text to Image for generation or editing workflows.

2) Prepare your input:

- Text-to-image: write a concise prompt with subject, style, lighting, and camera terms.

- Image editing: upload one or more reference images (if your workflow supports multi-reference editing) to guide style or identity.

3) Set image size and aspect ratio:

- Start with 1024×1024 for quality and speed; adjust aspect ratio to fit your composition.

4) Configure steps and quality:

- Fewer steps are faster; more steps can refine detail. Typical ranges vary by provider.

5) Use a seed if available:

- Fix a seed to reproduce results; change it to explore new variations around the same prompt.

6) Run the job and review outputs:

- Iterate by adjusting style tokens, composition terms, or references; save preferred seeds and prompts.

7) API usage (no self-hosting required):

- Submit a multipart POST with fields like prompt, steps, width, and height to the platform endpoint; Flux 2 Klein 4B is also compatible with common AI-inference APIs that accept multipart form data.




Prompt & Reference Tips#


  • Use structured prompts: subject + style + medium + lighting + lens/camera + mood; Flux 2 Klein 4B responds well to concrete, visual language.
  • Keep references consistent: if editing, align angle, lighting, and scale between reference(s) and the target description.
  • “Follow the reference but change X”: be explicit (e.g., “same outfit and pose, new background: rainy neon city”).
  • Iterate thoughtfully: lock a good seed, then vary one factor at a time (lighting, aspect ratio, or adjective set).
  • Mind resolution trade-offs: very high resolutions can be slower or less stable; upscale externally if needed after Flux 2 Klein 4B generation.
  • Avoid conflicting terms: remove redundant style tags that point in different directions (e.g., “soft cinematic” vs “harsh studio flash”).
  • Fix common errors: if uploads fail, ensure multipart content type; if compositions clip, choose a matching aspect ratio or reduce subject count.



How Flux 2 Klein 4B Text to Image compares to other models#


  • Compared to Nano Banana Pro, Flux 2 Klein 4B delivers much faster generation and open-weight flexibility, while high-end 4K detail and advanced multilingual text rendering are stronger on the competitor (based on publicly available information).
  • Key improvements versus larger, slower setups: Flux 2 Klein 4B emphasizes low-latency 4-step inference, prompt adherence, and unified generate/edit workflows on modest hardware.
  • Ideal use case: choose Flux 2 Klein 4B when rapid creative iteration, multi-reference editing, and open licensing matter more than extreme photorealism or native 4K output.

In short, Flux 2 Klein 4B offers one of the best speed-to-quality trade-offs in its family for agile image creation.




More Models to Try#


  • Flux 2 Klein 9B Text to Image — higher fidelity and texture richness; use when you outgrow Flux 2 Klein 4B for fine detail.
  • Flux 2 Flex Text to Image — a higher-quality sibling oriented toward premium outputs on stronger hardware.
  • Flux 2 Dev Text to Image — developer-focused variant for advanced control and research-style workflows.
  • Seedream 4.5 — photorealism-focused alternative for complex scenes and high-resolution demands.
  • Z-Image-Turbo — a low-latency alternative with competitive detail at moderate resolutions.


相关模型

gpt-image-2/edit

OpenAI 的 GPT Image 2 图像编辑:通过精确的文本控制和输入输出绘画进行图像到图像编辑

seedream-5/lite/text-to-image

Seedream 5.0 Lite 文本生成图像:支持精确布局与字体排版控制的提示词到视觉引擎

flux-1-kontext/max/edit

使用 FLUX Kontext Max 快速生成并编辑图像,精准控制提示词,保持视觉风格一致。

flux-1-1-pro/text-to-image

高速生成高质量图像,助力设计师高效实现创意表现。

gpt-4o-image/image-to-image

使用 GPT-4o Image 从图片或提示生成高质量视觉内容,轻松实现图像到图像创作。

seedream-5/lite/edit

Seedream 5.0 Lite 将参考图像转化为布局精准、风格一致的设计,助力创意工作流。

Frequently Asked Questions

Flux 2 Klein 4B 在文本转图像应用中的主要功能是什么?

Flux 2 Klein 4B 擅长文本到图像生成、图像到图像编辑和多参考输入混合 - 所有这些都在一个统一模型内。它提供清晰的文本渲染、逼真的图像以及适合 UI 模型和品牌一致性的快速输出,且延迟较低,在消费类 GPU 上通常低于一秒。

Flux 2 Klein 4B 文本到图像与 Seedream 4.5 或 Nano Banana Pro 等模型相比如何?

Flux 2 Klein 4B 文本到图像强调速度、本地执行和开源可用性,而 Seedream 4.5 和 Nano Banana Pro 旨在以更高的计算成本实现极致的细节和保真度。当您需要快速迭代和对有限资源的强烈及时遵守时,Flux 2 Klein 4B 仍然是首选。

RunComfy 中 Flux 2 Klein 4B 文本转图像支持的最大输出分辨率是多少?

Flux 2 Klein 4B 文本到图像目前支持高达约 2048×2048 像素(约 4 兆像素)的图像分辨率,具体取决于宽高比设置。此限制可确保快速生成,而不会超出具有约 13 GB 内存的 GPU 上的 VRAM 要求。

Flux 2 Klein 4B 文本到图像生成中是否存在长宽比或提示标记限制?

Flux 2 Klein 4B 文本到图像逐步支持 128×128 和 2048×2048 之间的灵活宽高比,通常允许提示最多 512 个标记以实现最高清晰度。较长的提示将被自动截断,以在推理过程中保持一致的性能。

如何从 RunComfy 模型界面 中测试 Flux 2 Klein 4B 文本到图像转换到生产 API 使用?

您可以使用 RunComfy API 从 RunComfy 模型界面 (Web UI) 转移到生产环境。该 API 镜像 Flux 2 Klein 4B 文本到图像的模型设置,允许您自动生成或将其集成到后端工作流程中。确保您保护 API 密钥、查看使用定价并根据 API 文档配置生成设置。

Flux 2 Klein 4B 文本到图像可以处理多少参考图像以实现风格或字符一致性?

Flux 2 Klein 4B 文本到图像通过其多参考模式支持多个参考输入。虽然专为提高效率而设计,但大多数部署都允许同时进行 2-3 个参考,从而平衡消费者硬件配置的保真度和速度。

与 Flux 1 或更大的 Flux 2 变体相比,Flux 2 Klein 4B 文本到图像有何改进?

与 FLUX.1 和更大的 Flux 2 模型相比,Flux 2 Klein 4B 文本到图像使用整流流转换器,精简为 4 个推理步骤,实现亚秒级图像创建,同时保持保真度。它牺牲了一些微观细节来换取较小 GPU 上的速度和可访问性。

Flux 2 Klein 4B 文本转图像在文本渲染和多语言提示方面的表现如何?

Flux 2 Klein 4B 文本到图像针对准确的英文文本渲染和结构化组合(例如 UI 或品牌模型)进行了优化。虽然可以进行多语言输入,但使用英语可获得最佳结果。对于双语任务,额外的微调可能是有益的。

Follow us
  • LinkedIn
  • Facebook
  • Instagram
  • Twitter
Support
  • Discord
  • Email
  • System Status
  • Affiliate
Video Models
  • Wan 2.6 Flash
  • Wan 2.7 Reference to Video
  • Seedance 1.0
  • Seedance 1.0 Pro Fast
  • Seedance 2.0 Pro
  • Hailuo 2.3 Fast Standard
  • View All Models →
Image Models
  • Ideogram V4
  • Wan 2.6 Image to Image
  • Nano Banana 2 Edit
  • Flux 2 Dev
  • Nano Banana Pro
  • Qwen Image Edit 2511 LoRA
  • View All Models →
Legal
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
RunComfy
Copyright 2026 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Flux 2 Klein 4B 图像示例