FLUX.2 klein 9B API

Add FLUX.2 klein 9B image generation to your application through GoEnhance. Submit text prompts or up to nine reference images, receive an img_uuid, and resolve results by polling or HTTPS callback.
Create an API Key
Abstract creative studio scene for the FLUX.2 klein 9B API

Two Image Workflows, One Endpoint

Text-to-Image Generation

Send a required prompt of 1–2,000 characters and omit image_list to generate an image from text. Choose a supported ratio or let the model use its default.
Detailed paper-art scene representing text-to-image generation

Reference-Guided Editing

Provide 1–9 HTTPS image objects in image_list with the prompt to run image-to-image. This supports product variations, concept refinement, and art-direction workflows.
Single studio still life representing reference-guided image editing
Validate the request before submitting it to the image endpoint.

FLUX.2 klein 9B API Parameters

Endpoint

POST JSON to https://api.goenhance.ai/api/v1/flux-2-9b.

Authorization

Include your GoEnhance API credential in the Authorization header.

Prompt

Required text from 1 to 2,000 characters describing the requested output or edit.

Reference Images

Optionally send image_list with 1–9 objects containing publicly accessible image URLs.

Aspect Ratio

Supported values are 1:1, 2:3, 3:2, 4:3, 3:4, 16:9, and 9:16.

Callback URL

Optionally provide a public HTTPS custom_callback_url for processing, success, and failed updates.
Use the documented GoEnhance rate and asynchronous task contract in your integration plan.

FLUX.2 klein 9B API Pricing and Delivery

0.4 Tokens per Image

GoEnhance documents a price of 0.4 tokens, equal to $0.008, for each generated image.

Same Rate for Both Modes

Text-to-image and image-to-image requests use the same documented per-image price.

Asynchronous Response

A successful submission returns img_uuid; retrieve the output from the task-detail endpoint or callback.

Integrate FLUX.2 klein 9B in Three Steps

1

1. Build the Request

Write a precise prompt, optionally add 1–9 reference image URLs, select a supported ratio, and add a public HTTPS callback if needed.
2

2. Submit and Persist

POST the payload with authorization, confirm code: 0, and store the returned img_uuid with your application job.
3

3. Resolve the Task

Poll GET /api/v1/jobs/detail or validate callback events until the task reaches success or failed, then store the output or handle the failure.
Create an API Key
Use prompt-only generation or reference-guided editing in practical image workflows.

What Developers Can Build

Product Visual Variations

Generate new settings or art directions around reference product imagery for campaign exploration.

Ad Creative Pipelines

Produce ratio-specific image concepts for banners, social placements, and performance creative testing.

Concept Art Tools

Turn structured prompts into visual concepts for environments, props, and characters.

Brand Style Exploration

Use reference inputs to test visual treatments while retaining useful context from supplied assets.

Localized Campaign Assets

Adapt scene direction and composition for regional creative workflows without changing the integration path.

Creative Prototyping

Compare prompt and reference strategies before committing to a larger production pipeline.
Answers about pricing, inputs, task handling, and Black Forest Labs API search intent.

FLUX.2 klein 9B API FAQ

How much does the FLUX.2 klein 9B API cost?

GoEnhance documents 0.4 tokens per generated image, equal to $0.008 per image. The same rate applies to text-to-image and image-to-image requests.

Is this the official Black Forest Labs API?

No. FLUX.2 klein is a Black Forest Labs model family, while this page describes independent API access provided by GoEnhance. It does not imply affiliation, partnership, or endorsement.

Does the endpoint support image-to-image?

Yes. Add image_list with 1–9 image URL objects to use references with your prompt. Omit the field for pure text-to-image generation.

Which aspect ratios can I request?

The endpoint documents 1:1, 2:3, 3:2, 4:3, 3:4, 16:9, and 9:16. If omitted, the model uses its own default.

Does the API return an image immediately?

The submission response returns an img_uuid. Your application should poll the task-detail API or use a callback to retrieve the terminal result.

What happens when a callback fails?

If your callback server does not return HTTP 200, GoEnhance documents up to three notification retries with a three-second timeout per attempt. Polling remains a useful recovery path.

Build with FLUX.2 klein 9B API