Skip to main content
POST
Generate or edit one image
Send a prompt to POST /api/gengen/v1/images/generations with model flux-3-image. The request waits for one image. Download it promptly from outputs.images[0]. This is the original signed BFL URL, and BFL controls when it expires.

Edit with reference images

Pass up to ten publicly accessible HTTP(S) image URLs in assets.referenceImages. Signed URLs work while valid. Refer to images by position in the prompt. The following request keeps the first image’s framing and disables search grounding.

Size and billing

controls.size defaults to 1k. The five price tiers are 768sq, 1k, 1.5k, 2k, and 4k. Reference images are included in the per-image rate. See pricing for customer rates. Use match_input with a reference to match its size up to 4 megapixels. For exact dimensions, supply both controls.width and controls.height, each from 256 to 6256 pixels. Their product must be at most 16,822,272 pixels for text-to-image or 4,194,304 for edits. Exact dimensions take precedence over size and aspect ratio. For custom sizes and match_input, the wallet reserves up to the highest applicable tier price and settles the billed tier. The model supports search grounding by default. Set providerOptions.bfl.grounding to false to disable it. The accepted range for safetyTolerance is 0–7, subject to the account’s permitted levels.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
Allowed value: "flux-3-image"
prompt
string
required
Minimum string length: 1
assets
object
controls
object
providerOptions
object

Response

One generated image at its original signed BFL delivery URL. Download promptly before the link expires.

id
string
required
model
string
required
Allowed value: "flux-3-image"
status
string
required
Allowed value: "succeeded"
outputs
object
required