Runflow
Back to Gallery

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

Image-to-image editing with FLUX.2 [klein] 9B from Black Forest Labs. Precise modifications using natural language descriptions and hex color control.

$0.011/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/edit",
    headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
    json={
    "prompt": "Replace the computer monitors with a large glass aquarium full of colorful tr...",
    "image_urls": [
        "https://public.runflow.io/images/models/_shared/base-engineer.png"
    ]
    },
)

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

Input schema

ParameterTypeDescription
promptstring
image_urlsarray
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 — Edit

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