black-forest-labsChat
Black Forest Labs: FLUX.2 Klein 4B
black-forest-labs/flux.2-klein-4b
41KContext Window
Supported Protocols:seed
Online
FLUX.2 [klein] 4B is the fastest and most cost-effective model in the FLUX.2 family, optimized for high-throughput use cases while maintaining excellent image quality. Pricing is based on the output image. The first generated megapixel is charged $0.014. Each subsequent megapixel is charged $0.001.
Capabilities
👁 VisionText GenerationCode GenerationAnalysis & Reasoningmodels.reasoning
Technical Specs
Input Modality
Text、Image
Output Modality
Image
Arch
—
Pricing
Pay per use, no monthly feesInput Token< ¥0.001/1K Token
Output Token< ¥0.001/1K Token
Quick Start
from openai import OpenAI
client = OpenAI(
base_url="https://api.uniontoken.ai/v1",
api_key="YOUR_UNIONTOKEN_API_KEY",
)
response = client.chat.completions.create(
model="black-forest-labs/flux.2-klein-4b",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)FAQ
Black Forest Labs: FLUX.2 Klein 4B
black-forest-labs/flux.2-klein-4b
In< ¥0.001/1K
Out< ¥0.001/1K
Context Window41K
Related Models
View All → →Ready to get started?
Get 1M free tokens on registration, no monthly fees or minimum spend
Register Now →