HiAPI
OverviewModels MarketAPI KeysUsage StatisticsCall LogsBillingReferralPlaygroundStorageChangelogContact UsSettings
Display unit
N
Powered by hiapi
Settings

Welcome

Contact Us

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

Back to Models

FLUX.2 [klein] 9B Text to Image

by Black Forest LabsImage

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

17 Credits/ image

Input

0 / 5000

More parameters

Generation settings

Choose the output image file format

Inference steps used for generation; Range: 4 - 8, Integer only

Advanced

For repeatable results · integer 0-2147483647
Estimated cost17 Credits / imageper image

Output

Ready for generation

Configure your parameters and click "Run" to see the output here.

--GPU-T4

From product campaigns to detailed scenes

Browse real API results across different aspect ratios, complete prompts, and visual detail.

Related image models

Choose an adjacent model by task, output tier, and reference-image needs.

Higher-resolution FLUX generation

FLUX.2 Pro

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

2K or 4K flat-price generation

Seedream 5.0 Lite

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

Structured prompt generation

GPT Image 2

An alternative for product layouts, posters, and complex prompt relationships.

Compare AI image APIs

About FLUX.2 [klein] 9B Text to Image

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.

Provider
Black Forest Labs
Task
Text-to-Image
References
Not supported
Pricing
17 Credits / image

Model specifications

These specifications reflect the current FLUX.2 [klein] 9B Text to Image request contract.

Reference images
Not supported
Inference steps
4-8 steps (default 4)
Aspect ratios
1:14:33:416:99:16
Output formats
JPEGPNGWEBP
Prompt length
Required text prompt
Pricing
Per image: 17 Credits / image

Final cost depends on the output tier and input add-ons. Check the live page price and task record for the final charge.

How to use FLUX.2 [klein] 9B Text to Image

Choose the destination and aspect ratio before composing subject, scene, material, light, and text.

Subject
Scene
Camera and light
01

API Quickstart

Copy a minimal request below. See Docs for parameters, callbacks, task retrieval, and errors.

Endpoint
POST /v1/tasks
Model ID
flux-2-klein-9b/text-to-image
cURL
curl -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.

Read the full API documentation

Frequently asked questions

What is FLUX.2 [klein] 9B Text to Image best for?

It is suited to fast commercial visuals, product images, English-text posters, and magazine covers. This route does not accept reference images.

How do I set inference steps?

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.

Which ratios and formats are supported?

Ratios: 1:1, 4:3, 3:4, 16:9, and 9:16. Formats: JPEG, PNG, and WebP.

How can I reproduce or compare outputs?

Fix the seed and keep prompt, ratio, format, and inference steps constant while changing only the variable you want to compare.

Which fields are required in the minimal API request?

POST /v1/tasks with model and input.prompt. Ratio, inference steps, and output format may use their defaults.

Describe subject and scene

Start with the subject, environment, and visual goal, then add material, light, camera, and exact text.

Draft

4 steps

Final

8 steps

02

Choose output settings

Choose the aspect ratio, output format, and four to eight inference steps.

Playground
POST /v1/tasks
03

Validate before integration

Confirm the result in Playground, then reuse the same prompt and model ID in an asynchronous task.