POST
/
v1
/
image
/
gen
/
flux
curl --request POST \
  --url https://openapi.monica.im/v1/image/gen/flux \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "flux_dev",
  "prompt": "black forest gateau cake spelling out the words \"FLUX DEV\", tasty, food photography, dynamic shot",
  "num_outputs": 1,
  "size": "1024x1024",
  "seed": 42,
  "steps": 25,
  "guidance": "3",
  "interval": 2,
  "safety_tolerance": 2
}'
{
  "data": [
    {
      "url": "<string>"
    }
  ]
}
Follow the quickstart guide to get your own API Key.

The FLUX series represents a family of AI image generation models developed by Black Forest Labs. See the pricing page for pricing details.

FLUX.1 Schnell

  • Entry-level model in the FLUX series
  • Optimized for speed and efficiency
  • Balanced performance for general-purpose use

FLUX.1 dev

  • Developer-focused variant
  • Enhanced customization options
  • Flexible parameter adjustments

FLUX.1 pro

  • Professional-grade model
  • Highest quality output in the series
  • Advanced features and controls

Previews

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/json
Success

The response is of type object.