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

⭐ Official ▶️ 2.0M runs 📅 Nov 2025 ⚙️ Cog 0.16.9 🔗 GitHub ⚖️ License
image-editing image-to-image text-to-image

About

Quality image generation and editing with support for reference images

Example Output

Prompt:

"Replace the color of the car to blue"

Output

Example output

Performance Metrics

5.20s Prediction Time
5.21s Total Time
All Input Parameters
{
  "prompt": "Replace the color of the car to blue",
  "go_fast": true,
  "aspect_ratio": "match_input_image",
  "input_images": [
    "https://replicate.delivery/pbxt/O7kbtH7wgLIItlCyeWjm0fgPpx7OpGsT9VbYyxBXnfieVxQe/woman-by-car.jpg"
  ],
  "output_format": "jpg",
  "output_quality": 80
}
Input Parameters
seed Type: integer
Random seed. Set for reproducible generation.
width Type: integerRange: 256 - 1440
Width of the generated image in text-to-image mode. 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 - 1440
Height of the generated image in text-to-image mode. 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 description of the image to generate.
go_fast Type: booleanDefault: true
Run faster predictions with additional optimizations.
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 4 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.
disable_safety_checker Type: booleanDefault: false
Disable safety checker for generated images.
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Using seed: 750087
Matched dimensions from image 0: 816x1224
/root/.pyenv/versions/3.12.11/lib/python3.12/site-packages/torch/utils/_contextlib.py:116: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmpxsyc7hqqwoman-by-car.jpg'>
return func(*args, **kwargs)
Version Details
Version ID
7bba46bdde863cfd7aaee87649a5aa49f39f368495dbea500998d1fcbb262050
Version Created
November 24, 2025
Run on Replicate →