Image

Flux Kontext

Frontier model designed for image editing, optimized for Krea

post/generate/image/bfl/flux-1-kontext-dev

Headers

X-Webhook-URLstring uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results.

Request body

promptstring required
seednumber
stepsinteger
widthnumber
heightnumber
image_urlstring uri nullable

Can be an external URL, base64 data URI, or uploaded asset URL.

guidance_scalenumber

Classifier-free guidance scale. Higher values follow the prompt more strictly. Default 3.0.

strengthnumber

Denoising strength when an input image is provided. 0 keeps the input image, 1 fully replaces it.

Response

The resulting job data. This will be returned in a pending state until the job is completed. See /jobs/{id} for retrieving the results.

job_idstring uuid required
status'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'completed' | 'failed' | 'cancelled' required
created_atstring date-time required
{"stackTrail":"paths:/generate/image/bfl/flux-1-kontext-dev:post:responses:200:content:application/json:schema:properties:completed_at","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/generate/image/bfl/flux-1-kontext-dev:post:responses:200:content:application/json:schema:properties:result","oasType":"schema","type":"unknown"}

Changes

Changed in 41 of the 48 revisions of this API.144

  • dd9cc1c7373114See the full diff
    • the prompt request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the seed request property default value changed from 317061788 to 1337

      request-property-default-value-changed

    • the steps request property default value changed from 25 to 28

      request-property-default-value-changed

    • the height request property's max was increased from 2368.00 to 8192.00

      request-property-max-increased

    • the width request property's max was increased from 2368.00 to 8192.00

      request-property-max-increased

    • the seed request property default value changed from 3092248665 to 317061788

      request-property-default-value-changed

    • the seed request property default value changed from 3378512399 to 3092248665

      request-property-default-value-changed

    • the seed request property default value changed from 734594549 to 3378512399

      request-property-default-value-changed

    • the seed request property default value changed from 3179271128 to 734594549

      request-property-default-value-changed

    • the seed request property default value changed from 1610545498 to 3179271128

      request-property-default-value-changed

    • the seed request property default value changed from 739990150 to 1610545498

      request-property-default-value-changed

    • the seed request property default value changed from 4021896229 to 739990150

      request-property-default-value-changed

    • the seed request property default value changed from 119645681 to 4021896229

      request-property-default-value-changed

    • the seed request property default value changed from 2249380041 to 119645681

      request-property-default-value-changed