Skip to main content
Generate images using Flux.2 Flex with advanced controls for guidance, steps, and reproducibility.

Model

black-forest-labs/flux.2-flex

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Text description of the image
aspect_ratiostringNo"16:9""21:9", "16:9", "4:3", "1:1", "3:4", "9:16", "9:21"
resolutionstringNo"1mp""0.6mp", "1mp", "2mp", "4mp"
image_urlsstring[]NonullReference image URLs
guidancefloatNo-Guidance scale (e.g. 1.5)
stepsintegerNo-Number of generation steps
seedintegerNorandomSeed for reproducibility
prompt_upsamplingbooleanNotrueAuto-enhance prompt for more creative output

Example Request

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "black-forest-labs/flux.2-flex",
    "input": {
      "prompt": "A cyberpunk city at night with neon reflections",
      "aspect_ratio": "21:9",
      "resolution": "2mp",
      "guidance": 1.5,
      "steps": 30,
      "seed": 124242,
      "prompt_upsampling": false
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}