Runflow
Back to Gallery

black-forest-labs/flux-2-klein-9b

Text-to-image generation with FLUX.2 [klein] 9B from Black Forest Labs. Enhanced realism, crisper text generation, and native editing capabilities.

$0.006/megapixel 2026-04-08

Install

pip install requests

Run the model

import requests

response = requests.post(
    "https://api.runflow.io/v1/run/flux-2-klein-9b",
    headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
    json={
    "prompt": "A neon-lit Tokyo alleyway at night with a vending machine glowing amber, stea...",
    "image_size": "landscape_4_3",
    "output_format": "png"
    },
)

data = response.json()
print(data["images"][0]["url"])

Input schema

ParameterTypeDescription
promptstring
seedinteger
num_inference_stepsinteger
image_sizestring
num_imagesinteger
sync_modeboolean
enable_safety_checkerboolean
output_formatstring

Output schema

FieldTypeDescription
imagesjson
timingsjson
seedinteger
has_nsfw_conceptsjson
promptstring

Related models

Start generating with FLUX.2 [klein] 9B

Get API access in minutes. No GPU setup, no infrastructure to manage.