Image

Flux 3.1 Image Fast

Changed on

Near-real-time image generation and editing by Black Forest Labs.

post/generate/image/bfl/flux-3.1-image-fast

Request

  • Base URL
    https://api.krea.ai
  • Auth
    HTTP bearer

Headers

X-Webhook-URL, string uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results. Deliveries are signed with Ed25519 (EdDSA); verify them with the keys at https://api.krea.ai/.well-known/jwks.json (see X-Krea-Webhook-* headers). Treat requests without these headers as unauthenticated.

Request body

object required
prompt, string required
image_urls, string[]

Images to edit or use as references, referred to as image 1, image 2, ... in the prompt.

mask_url, string uri

Mask for a local edit of the first image: white may change, black is kept.

aspect_ratio, '21:9' | '2:1' | '16:9' | '3:2' | '7:5' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '5:7' | '2:3' | '9:16' | '1:2' | '9:21' | 'match_first_image' | 'auto'
resolution, '1MP' | '2MP' | '4MP' | '8MP' | '12MP' | '16MP'
grounding, 'off' | 'auto' | 'force'

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.

object required
job_id, string uuid required
status, 'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'finalizing' | 'completed' | 'failed' | 'cancelled' required
created_at, string date-time required
completed_at, unknown required
result, unknown required
error, object
progress, number nullable
export_progress, object

Motion exports only, while running: frames rendered of the total, then finishing while the sound is added, then saving while the MP4 is filed.

Changes