img_uuid, and resolve results by polling or HTTPS callback.FLUX.2 klein 9B API

Two Image Workflows, One Endpoint
Text-to-Image Generation
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.
Reference-Guided Editing
image_list with the prompt to run image-to-image. This supports product variations, concept refinement, and art-direction workflows.
FLUX.2 klein 9B API Parameters
Endpoint
https://api.goenhance.ai/api/v1/flux-2-9b.Authorization
Authorization header.Prompt
Reference Images
image_list with 1–9 objects containing publicly accessible image URLs.Aspect Ratio
1:1, 2:3, 3:2, 4:3, 3:4, 16:9, and 9:16.Callback URL
custom_callback_url for processing, success, and failed updates.FLUX.2 klein 9B API Pricing and Delivery
0.4 Tokens per Image
Same Rate for Both Modes
Asynchronous Response
img_uuid; retrieve the output from the task-detail endpoint or callback.Integrate FLUX.2 klein 9B in Three Steps
1. Build the Request
2. Submit and Persist
code: 0, and store the returned img_uuid with your application job.3. Resolve the Task
GET /api/v1/jobs/detail or validate callback events until the task reaches success or failed, then store the output or handle the failure.What Developers Can Build
Product Visual Variations
Ad Creative Pipelines
Concept Art Tools
Brand Style Exploration
Localized Campaign Assets
Creative Prototyping
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.
