Skip to main content
Flux Kontext Dev is a 12 billion parameter rectified flow transformer capable of editing images based on text instructions. It excels at making targeted edits to existing images while preserving the overall context and style.

Try in playground

Test Flux Kontext Dev in the Runpod Hub playground.

Request

All parameters are passed within the input object in the request body.
string
required
Text instructions describing the desired edits to the image.
string
required
URL of the input image to edit.
string
Elements to exclude from the edited image.
string
default:"1024*1024"
Output image size in format “width*height”.
integer
default:"28"
Number of denoising steps. Higher values produce more detailed edits. Range: 1-50.
float
default:"2"
How closely to follow the prompt. Range: 0.0-10.0.
integer
default:"-1"
Seed for reproducible results. Set to -1 for random.
string
default:"png"
Output image format. Accepts png or jpeg.
boolean
default:"true"
Whether to run safety checks on the output.

Response

string
Unique identifier for the request.
string
Request status. Returns COMPLETED on success, FAILED on error.
integer
Time in milliseconds the request spent in queue before processing began.
integer
Time in milliseconds the model took to edit the image.
string
Identifier of the worker that processed the request.
object
The generation result containing the image URL and cost.
string
URL of the edited image. This URL expires after 7 days.
float
Cost of the generation in USD, calculated based on the output megapixels.
Image URLs expire after 7 days. Download and store edited images immediately if you need to keep them.

Cost calculation

Flux Kontext Dev charges $0.025 per image edited.