Generate images using Flux.2 Flex with up to 10 reference images and advanced quality controls.

Model

black-forest-labs/flux.2-flex

Parameters

ParameterTypeRequiredDescription
promptstringYesText description of the image
image_urlsarrayNoReference images (max 10)
aspect_ratiostringNoauto, 1:1, 4:3, 16:9, 3:2, 2:3, 9:16, 3:4
resolutionstringNo1k or 2k
stepsintegerNoQuality steps (1-50). More steps = higher quality
cfgnumberNoPrompt strength (1.5-10). Higher = follows prompt more strictly

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 detailed digital artwork",
      "aspect_ratio": "1:1",
      "resolution": "2k",
      "steps": 30,
      "cfg": 7.5
    }
  }'

Response

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

Pricing

ResolutionPrice
1K$0.04
2K$0.06