Black Forest Labs · Image generation
No pricing information is on file for this model yet.
Sellers set their own ask as a discount off the official list price, capped at 50%. The figure above is the deepest ask currently in force.
All prices are shown in US dollars; billing and settlement are in CNY.
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...
| Context window | not published |
| Max output | not published |
| Input modalities | text, image |
| Output modalities | image |
| Modality signature | text+image->image |
| Endpoints | 1 |
curl https://ai.dijinlong.com/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"flux.2-klein-4b","prompt":"A cat sunbathing on a windowsill, backlit afternoon light, film look","n":1,"size":"1024x1024"}'
from openai import OpenAI
client = OpenAI(base_url="https://ai.dijinlong.com/v1", api_key="YOUR_API_KEY")
resp = client.images.generate(
model="flux.2-klein-4b",
prompt="A cat sunbathing on a windowsill, backlit afternoon light, film look",
n=1,
size="1024x1024",
)
print(resp.data[0].url)
The call returns image URLs (some models return b64_json inline). Set size and n to control dimensions and count.
1 endpoints currently serve this model on LONG AI, so a single seller outage does not take it offline.