Enjoy 50% OFF Vidu Q3 & Q3 Pro models • Only on WaveSpeedAI | May 20 – Jun 2

Flux 2 Klein Base 9B Text to Image

wavespeed-ai /

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.

text-to-image
Input
width
height
1024 × 1024 px
Range: 256 - 1536
If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Idle

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

$0.015per run·~66 / $1

Next:

ExamplesView all

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 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 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

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

Related Models

README

WaveSpeed AI FLUX.2 Klein Base 9B Text-to-Image

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.

Why Choose This?

  • 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.

Parameters

ParameterRequiredDescription
promptYesText prompt describing the image you want to generate.
sizeNoOutput image size. Default: 1024*1024.
seedNoRandom seed for reproducibility. Use -1 for a random seed. Default: -1.

How to Use

  1. Write your prompt — describe the subject, style, lighting, composition, and mood you want.
  2. Choose size (optional) — set the output dimensions if you want something other than the default.
  3. Set a seed (optional) — use a fixed seed for more reproducible results, or -1 for random generation.
  4. Submit — run the model and download the generated image.

Example Prompt

A cinematic futuristic city street at night, neon reflections on wet pavement, atmospheric fog, ultra-detailed, dramatic lighting

Pricing

Just $0.015 per image.

Billing Rules

  • Each generated image costs $0.015
  • size and seed do not affect pricing
  • Pricing is fixed per generated image

Best Use Cases

  • Concept art — Explore visual ideas and creative directions quickly.
  • Marketing creatives — Generate visuals for campaigns, ads, and presentations.
  • Social media content — Produce prompt-driven images for posts and promotional content.
  • Creative prototyping — Test visual ideas before moving into heavier production workflows.
  • General image generation — Create still images from short or detailed prompts.

Pro Tips

  • Be specific in your prompt about subject, environment, style, and lighting.
  • Start with the default size for quick generation, then adjust if needed.
  • Use the same seed when you want more consistent variations of a concept.
  • Use -1 when you want a fresh random result each time.
  • Short, focused prompts often produce more controllable results than overly broad descriptions.

Notes

  • prompt is required.
  • size defaults to 1024*1024.
  • seed defaults to -1, which means random generation.
  • Pricing is fixed at $0.015 per image.

Related Models

Accessibility:This website uses AI models provided by third parties.

Flux 2 Klein Base 9b Text To Image API — Quick start

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.

HTTP example
# 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].
Node.js example
// 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
Python example
# 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 output

Flux 2 Klein Base 9b Text To Image API — Frequently asked questions

What is the Flux 2 Klein Base 9b Text To Image API?

Flux 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.

How do I call the Flux 2 Klein Base 9b Text To Image API?

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.

How much does Flux 2 Klein Base 9b Text To Image cost per run?

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.

What inputs does Flux 2 Klein Base 9b Text To Image accept?

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.

How do I get started with the Flux 2 Klein Base 9b Text To Image API?

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.

Can I use Flux 2 Klein Base 9b Text To Image outputs commercially?

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.