Try FLUX.2 [klein] 9B Text to Image with real event, product, magazine, and neon examples, five aspect ratios, four to eight inference steps, and API code.
Provider: Black Forest Labs
Category: image generation
Endpoint: /v1/tasks
Status: Available
Cost: See live page pricing
Try FLUX.2 [klein] 9B Text to Image with real event, product, magazine, and neon examples, five aspect ratios, four to eight inference steps, and API code.
Pricing
Standard Usage
Choose the output image file format
Inference steps used for generation; Range: 4 - 8, Integer only
Ready for generation
Configure your parameters and click "Run" to see the output here.
Browse real API results across different aspect ratios, complete prompts, and visual detail.
Choose an adjacent model by task, output tier, and reference-image needs.

Higher-resolution FLUX generation
Use FLUX.2 Pro when resolution tiers and more complex final composition matter.

2K or 4K flat-price generation
Compare multilingual text, eight ratios, and flat 2K or 4K pricing.

Structured prompt generation
An alternative for product layouts, posters, and complex prompt relationships.
Try FLUX.2 [klein] 9B Text to Image with real event, product, magazine, and neon examples, five aspect ratios, four to eight inference steps, and API code.
The Playground and API use the same model ID: flux-2-klein-9b/text-to-image. This endpoint accepts text prompts only; reference-image editing uses the separate Image-to-Image route.
These specifications reflect the current FLUX.2 [klein] 9B Text to Image request contract.
Final cost depends on the output tier and input add-ons. Check the live page price and task record for the final charge.
Choose the destination and aspect ratio before composing subject, scene, material, light, and text.
Copy a minimal request below. See Docs for parameters, callbacks, task retrieval, and errors.
POST /v1/tasksflux-2-klein-9b/text-to-imagecurl -X POST https://api.hiapi.ai/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-klein-9b/text-to-image",
"input": {
"prompt": "A cinematic product campaign with sharp text",
"aspect_ratio": "4:3",
"num_inference_steps": 4,
"output_format": "png"
}
}'The create request immediately returns a taskId; image generation continues asynchronously.
It is suited to fast commercial visuals, product images, English-text posters, and magazine covers. This route does not accept reference images.
num_inference_steps accepts integers from 4 to 8 and defaults to 4. More steps do not change the current fixed HiAPI per-image price.
Ratios: 1:1, 4:3, 3:4, 16:9, and 9:16. Formats: JPEG, PNG, and WebP.
Fix the seed and keep prompt, ratio, format, and inference steps constant while changing only the variable you want to compare.
POST /v1/tasks with model and input.prompt. Ratio, inference steps, and output format may use their defaults.
Start with the subject, environment, and visual goal, then add material, light, camera, and exact text.
Draft
4 steps
Final
8 steps
Choose the aspect ratio, output format, and four to eight inference steps.
Confirm the result in Playground, then reuse the same prompt and model ID in an asynchronous task.