Generate high-quality images using Flux.2 Pro with up to 8 reference images.

Model

black-forest-labs/flux.2-pro

Parameters

ParameterTypeRequiredDescription
promptstringYesText description of the image
image_urlsarrayNoReference images (max 8)
aspect_ratiostringNoauto, 1:1, 4:3, 16:9, 3:2, 2:3, 9:16, 3:4
resolutionstringNo1k or 2k

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-pro",
    "input": {
      "prompt": "A beautiful sunset over mountains",
      "aspect_ratio": "16:9",
      "resolution": "2k"
    }
  }'

With Reference Images

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-pro",
    "input": {
      "prompt": "A portrait in this style",
      "image_urls": ["https://example.com/ref1.jpg", "https://example.com/ref2.jpg"],
      "resolution": "2k"
    }
  }'

Response

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

Pricing

ResolutionPrice
1K$0.02
2K$0.03