Skip to main content
Model IDimage_generate.flux_2_pro
ProviderKIE (Black Forest Labs)
ModalityImage — Text-to-Image

Parameters

prompt
string
required
Text description of the image to generate.
image_params.aspect_ratio
string
Output aspect ratio. Options: 1:1, 16:9, 9:16. Default: 1:1.
image_params.width
number
Output width in pixels. Use with height instead of aspect_ratio for precise dimensions.
image_params.height
number
Output height in pixels.
image_params.guidance_scale
number
How closely the output follows the prompt (1–20). Higher = more literal.
image_params.steps
number
Number of diffusion steps. More steps = higher quality, slower generation.
image_params.seed
number
Random seed for reproducible results.
callback_url
string
Webhook URL for completion notification.

Example

curl -X POST https://routerbase.kuaibaike.com/api/v1/run/image_generate.flux_2_pro \
  -H "Authorization: Bearer sk-t0-xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cinematic still of a lone samurai standing in a bamboo forest, golden hour, dramatic shadows",
    "image_params": {
      "aspect_ratio": "16:9",
      "guidance_scale": 7.5
    }
  }'

Notes

  • Flux 2 Pro requires either aspect_ratio or explicit width/height.