FLUX.1 Kontext [pro] handles both text and reference images as inputs, seamlessly enabling targeted, local edits and complex transformations of entire scenes.
pip install requestsimport requests
response = requests.post(
"https://api.runflow.io/v1/run/flux-pro/kontext",
headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
json={
"prompt": "Add a fluffy orange tabby cat sleeping on the desk between the two monitors, ...",
"image_url": "https://public.runflow.io/images/models/_shared/base-engineer.png"
},
)
data = response.json()
print(data["images"][0]["url"])| Parameter | Type | Description |
|---|---|---|
| prompt | string | Editing instruction describing the desired transformation. |
| image_url | image | URL of the source image to edit. |
| aspect_ratio | string | Output aspect ratio. Options: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9. |
| num_images | integer | Number of images to generate per request. Range: 1–4. Default: 1. |
| guidance_scale | number | How closely the model follows the prompt. Range: 1–20. Default: 3.5. |
| output_format | string | Output format. Options: "jpeg", "png". Default: "jpeg". |
| safety_tolerance | string | Content moderation strictness. 1 = most strict, 6 = most permissive. Default: 2. |
| enhance_prompt | boolean | Automatically enhance the prompt for better results. Default: false. |
| seed | integer | Random seed for reproducible outputs. |
| sync_mode | boolean | Return media as data URI without storing in request history. Default: false. |
| Field | Type | Description |
|---|---|---|
| prompt | string | The prompt used for generating the image. |
| images | json | The generated image files info. |
| timings | json | Timings |
| has_nsfw_concepts | json | Whether the generated images contain NSFW concepts. |
| seed | integer | Seed of the generated Image. It will be the same value of the one passed in the input or the randomly generated that was used in case none was passed. |
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...
Reve Edit
reve/edit
Reve's edit model lets you upload an existing image and then transform it via a ...
Wan 2.7 Pro Edit
alibaba/wan/v2.7/pro/edit
Edit and transform images using text instructions with the WAN 2.7 Pro model for...
Nano Banana 2 — Edit
google/nano-banana-2/edit
Nano Banana 2 is Google's new state-of-the-art image generation and editing mode...
Get API access in minutes. No GPU setup, no infrastructure to manage.