- Text-to-image — POST JSON to
/v1/images/generations - Image editing — POST multipart form to
/v1/images/edits
Key Capabilities
- Image editing — Modify existing images using text instructions (e.g., “Change the red car to blue”)
- Text-to-image — Generate images from text descriptions
- Context-aware — Understands and preserves the context of reference images
- Reproducible — Use
seedfor deterministic generation
Quick Example
Text-to-image
Image Editing
Text-to-image Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Fixed value: flux-1-kontext-pro |
prompt | string | Yes | Image description. ⚠️ Prompt must be in English |
n | integer | No | Number of images to generate. Only 1 is supported |
size | string | No | Output resolution, e.g. 1024x1024 |
output_format | string | No | jpeg or png |
seed | integer | No | Random seed for reproducibility |
Image Editing Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Fixed value: flux-1-kontext-pro |
image | file | Yes | Image file to edit (multipart upload) |
prompt | string | Yes | Editing instruction. ⚠️ Prompt must be in English |
n | integer | No | Number of images to generate. Only 1 is supported |
size | string | No | Output resolution, e.g. 1024x1024 |
Response Fields
| Field | Description |
|---|---|
data[].b64_json | Base64-encoded image data |
created | Creation timestamp |
API Reference
View the interactive API Playground for FLUX.1 Kontext [pro].

