Text-to-image generation with FLUX.2 [klein] 9B from Black Forest Labs. Enhanced realism, crisper text generation, and native editing capabilities.
pip install requestsimport 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"])| Parameter | Type | Description |
|---|---|---|
| prompt | string | |
| seed | integer | |
| num_inference_steps | integer | |
| image_size | string | |
| num_images | integer | |
| sync_mode | boolean | |
| enable_safety_checker | boolean | |
| output_format | string |
| Field | Type | Description |
|---|---|---|
| images | json | — |
| timings | json | — |
| seed | integer | — |
| has_nsfw_concepts | json | — |
| prompt | string | — |
FLUX.2 [klein] 9B — Edit
black-forest-labs/flux-2-klein-9b/edit
Image-to-image editing with FLUX.2 [klein] 9B from Black Forest Labs. Precise mo...
Ideogram v3
ideogram/v3
Generate high-quality images, posters, and logos with Ideogram V3. Features exce...
FLUX.2 [klein] 4B
black-forest-labs/flux-2-klein-4b
Compact 4-billion parameter text-to-image model from Black Forest Labs. Step-dis...
Get API access in minutes. No GPU setup, no infrastructure to manage.