black-forest-labs/flux-2-pro 🔢📝❓🖼️ → 🖼️

⭐ Official ▶️ 1.4M runs 📅 Nov 2025 ⚙️ Cog 0.16.9
image-consistent-character-generation image-editing text-to-image

About

High-quality image generation and editing with support for eight reference images

Example Output

Prompt:

"Glossy candy-colored 3D letters in hot pink, electric orange, and lime green on a sun-drenched poolside patio with bold terrazzo tiles and vintage lounge chairs in turquoise and yellow. Shot on Kodachrome film with a Hasselblad 500C, warm golden afternoon sunlight, dramatic lens flare, punchy oversaturated colors with that distinctive 70s yellow-orange cast, shallow depth of field with the text sharp in the foreground, tropical palms and a sparkling aquamarine pool behind that spells out "Run FLUX.2 [pro] on Replicate!""

Output

Example output

Performance Metrics

5.59s Prediction Time
5.60s Total Time
All Input Parameters
{
  "prompt": "Glossy candy-colored 3D letters in hot pink, electric orange, and lime green on a sun-drenched poolside patio with bold terrazzo tiles and vintage lounge chairs in turquoise and yellow. Shot on Kodachrome film with a Hasselblad 500C, warm golden afternoon sunlight, dramatic lens flare, punchy oversaturated colors with that distinctive 70s yellow-orange cast, shallow depth of field with the text sharp in the foreground, tropical palms and a sparkling aquamarine pool behind that spells out \"Run FLUX.2 [pro] on Replicate!\"",
  "resolution": "1 MP",
  "aspect_ratio": "1:1",
  "input_images": [],
  "output_format": "webp",
  "output_quality": 80,
  "safety_tolerance": 2,
  "prompt_upsampling": false
}
Input Parameters
seed Type: integer
Random seed. Set for reproducible generation
width Type: integerRange: 256 - 2048
Width of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32).
height Type: integerRange: 256 - 2048
Height of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32).
prompt (required) Type: string
Text prompt for image generation
resolution Default: 1 MP
Resolution in megapixels. Up to 4 MP is possible, but 2 MP or below is recommended. The maximum image size is 2048x2048, which means that high-resolution images may not respect the resolution if aspect ratio is not 1:1. Resolution is not used when aspect_ratio is 'custom'. When aspect_ratio is 'match_input_image', use 'match_input_image' to match the input image's resolution (clamped to 0.5-4 MP).
aspect_ratio Default: 1:1
Aspect ratio for the generated image. Use 'match_input_image' to match the first input image's aspect ratio.
input_images Type: arrayDefault:
List of input images for image-to-image generation. Maximum 8 images. Must be jpeg, png, gif, or webp.
output_format Default: webp
Format of the output images.
output_quality Type: integerDefault: 80Range: 0 - 100
Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs
safety_tolerance Type: integerDefault: 2Range: 1 - 5
Safety tolerance, 1 is most strict and 5 is most permissive
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Running prediction...
Using 1 MP resolution: 1024x1024
Using seed: 14155
Generating image...
Generated image in 4.9sec
Downloaded image in 0.68sec
Version Details
Version ID
285631b5656a1839331cd9af0d82da820e2075db12046d1d061c681b2f206bc6
Version Created
November 26, 2025
Run on Replicate →