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

Detailed paper-art scene representing text-to-image generation
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 <code>https://api.goenhance.ai/api/v1/flux-2-9b</code>.

Authorization

Include your GoEnhance API credential in the <code>Authorization</code> header.

Prompt

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

Reference Images

Optionally send <code>image_list</code> with 1–9 objects containing publicly accessible image URLs.

Aspect Ratio

Supported values are <code>1:1</code>, <code>2:3</code>, <code>3:2</code>, <code>4:3</code>, <code>3:4</code>, <code>16:9</code>, and <code>9:16</code>.

Callback URL

Optionally provide a public HTTPS <code>custom_callback_url</code> 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 <code>img_uuid</code>; retrieve the output from the task-detail endpoint or callback.

Integrate FLUX.2 klein 9B in Three Steps

1. Build the Request
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. Submit and Persist
2

2. Submit and Persist

POST the payload with authorization, confirm code: 0, and store the returned img_uuid with your application job.
3. Resolve the Task
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.
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

Build with FLUX.2 klein 9B API