FLUX.2 [klein] Base 9B is a high-quality text-to-image model with 9B parameters, offering enhanced realism and crisper text generation. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.
Idle

$0.015per run·~66 / $1

A cinematic cyberpunk noir still of a tired detective standing on a high balcony above a neon city at dawn, long dark coat, rain-soaked railing, holographic advertisements fading in the mist, sunrise breaking through smog, serious expression, realistic sci-fi film still, ultra-detailed

A cinematic portrait of an adult woman standing alone on a rainy city street at night, wet pavement reflecting neon lights, black coat, calm but emotional expression, soft bokeh background, realistic movie photography, shallow depth of field, moody lighting, ultra-detailed

A warm lifestyle portrait of an adult woman sitting by a large cafe window in the morning, soft sunlight, coffee cup on the table, relaxed natural smile, cozy modern interior, shallow depth of field, premium editorial photography, photorealistic, highly detailed
WaveSpeed AI FLUX.2 Klein Base 9B Text-to-Image generates images from natural-language prompts with a simple interface for prompt input, output size selection, and optional seed control. It is suitable for concept art, creative ideation, marketing visuals, and other prompt-driven image generation workflows.
Prompt-based image generation Turn natural-language descriptions into generated images with minimal setup.
Simple control surface Only a few core inputs are required, making the workflow easy to use and integrate.
Flexible image size
Use the size parameter to control the output dimensions.
Seed support for reproducibility
Use seed to get more consistent generations across repeated runs.
Production-ready API Suitable for image generation tools, prototyping pipelines, and creative applications.
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text prompt describing the image you want to generate. |
| size | No | Output image size. Default: 1024*1024. |
| seed | No | Random seed for reproducibility. Use -1 for a random seed. Default: -1. |
-1 for random generation.A cinematic futuristic city street at night, neon reflections on wet pavement, atmospheric fog, ultra-detailed, dramatic lighting
Just $0.015 per image.
size and seed do not affect pricingseed when you want more consistent variations of a concept.-1 when you want a fresh random result each time.prompt is required.size defaults to 1024*1024.seed defaults to -1, which means random generation.Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-klein-base-9b/text-to-image with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Flux 2 Klein Base 9b Text To Image below.
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-klein-base-9b/text-to-image" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1024*1024",
"seed": -1,
"enable_sync_mode": false,
"enable_base64_output": false
}'
# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
-H "Authorization: Bearer $WAVESPEED_API_KEY"
# When status is "completed", read the output from data.outputs[0].// npm install wavespeed
const WaveSpeed = require('wavespeed');
const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env
const result = await client.run("wavespeed-ai/flux-2-klein-base-9b/text-to-image", {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1024*1024",
"seed": -1,
"enable_sync_mode": false,
"enable_base64_output": false
});
console.log(result.outputs[0]); // → URL of the generated output# pip install wavespeed
import wavespeed
output = wavespeed.run(
"wavespeed-ai/flux-2-klein-base-9b/text-to-image",
{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1024*1024",
"seed": -1,
"enable_sync_mode": false,
"enable_base64_output": false
}
)
print(output["outputs"][0]) # → URL of the generated outputFlux 2 Klein Base 9b Text To Image is a WaveSpeedAI model for image generation, exposed as a REST API on WaveSpeedAI. FLUX.2 [klein] Base 9B is a high-quality text-to-image model with 9B parameters, offering enhanced realism and crisper text generation. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing. You can call it programmatically or try it from the playground above.
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/wavespeed-ai/flux-2-klein-base-9b-text-to-image.
Flux 2 Klein Base 9b Text To Image starts at $0.015 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
Key inputs: `prompt`, `size`, `seed`, `enable_base64_output`, `enable_sync_mode`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/wavespeed-ai/flux-2-klein-base-9b-text-to-image.
Sign up for a free WaveSpeedAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.
Commercial usage rights depend on the model's license, set by its provider (WaveSpeedAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.