black-forest-labs/flux-2-flex 🔢📝❓🖼️✓ → 🖼️
About
Max-quality image generation and editing with support for ten reference images
Example Output
Prompt:
"Fluffy cotton candy sculpted into voluminous 3D letters spelling "Flex" in swirls of bubblegum pink, baby blue, and soft lavender, held on a wooden stick in front of a vintage pastel cotton candy cart with hand-painted signage reading "Run FLUX.2 [flex] on Replicate!" on a sunny carnival boardwalk. Shot on Kodak Portra 160 with a Mamiya RZ67, bright midday summer sunlight, the spun sugar texture catching light with wispy translucent edges and denser pillowy centers, visible sticky strands, a vintage pastel Ferris wheel and striped circus tents in the soft-focus background, weathered wooden boardwalk planks beneath."
Output
Performance Metrics
22.59s
Prediction Time
22.60s
Total Time
All Input Parameters
{
"prompt": "Fluffy cotton candy sculpted into voluminous 3D letters spelling \"Flex\" in swirls of bubblegum pink, baby blue, and soft lavender, held on a wooden stick in front of a vintage pastel cotton candy cart with hand-painted signage reading \"Run FLUX.2 [flex] on Replicate!\" on a sunny carnival boardwalk. Shot on Kodak Portra 160 with a Mamiya RZ67, bright midday summer sunlight, the spun sugar texture catching light with wispy translucent edges and denser pillowy centers, visible sticky strands, a vintage pastel Ferris wheel and striped circus tents in the soft-focus background, weathered wooden boardwalk planks beneath.",
"resolution": "1 MP",
"aspect_ratio": "1:1",
"input_images": [],
"output_format": "webp",
"output_quality": 80,
"safety_tolerance": 2,
"prompt_upsampling": true
}
Input Parameters
- seed
- Random seed. Set for reproducible generation
- steps
- Number of inference steps
- width
- Width of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 16 (if it's not, it will be rounded to nearest multiple of 16).
- height
- Height of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 16 (if it's not, it will be rounded to nearest multiple of 16).
- prompt (required)
- Text prompt for image generation
- guidance
- Guidance scale for generation. Controls how closely the output follows the prompt
- resolution
- 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
- Aspect ratio for the generated image. Use 'match_input_image' to match the first input image's aspect ratio.
- input_images
- List of input images for image-to-image generation. Maximum 10 images. Must be jpeg, png, gif, or webp.
- output_format
- Format of the output images.
- output_quality
- 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
- Safety tolerance, 1 is most strict and 5 is most permissive
- prompt_upsampling
- Automatically modify the prompt for more creative generation
Output Schema
Output
Example Execution Logs
Running prediction...
Using 1 MP resolution: 1024x1024
Using seed: 46421
Generating image...
Current status: {'id': '323448ab-324e-445e-a5e6-de6baa4722c7', 'status': 'Pending', 'result': None, 'progress': None, 'details': None, 'preview': None}
Current status: {'id': '323448ab-324e-445e-a5e6-de6baa4722c7', 'status': 'Ready', 'result': {'start_time': 1764076429.8200393, 'prompt': 'Ultra-detailed analog film photograph, fluffy cotton candy sculpted into large, voluminous 3D letters spelling “Flex” in airy, rounded forms, mounted on a single light wooden stick held in the center foreground, the letters swirling with marbled bands of bubblegum pink, baby blue, and soft lavender, spun sugar texture catching bright midday summer sunlight with wispy translucent edges, denser pillowy cores, and visible sticky strands between curves. Behind it, a vintage pastel cotton candy cart slightly out of focus, painted in soft mint, blush pink, and cream, with a large hand-painted sign on the side reading “Run FLUX.2 [flex] on Replicate!” in playful retro lettering, smaller decorative text on the cart reading “cotton candy” and “sweet treats” in curved script. In the background, a pastel Ferris wheel with mint and pink gondolas and striped circus tents in pale red-and-white and blue-and-white, all in soft focus bokeh, set along a sunny carnival boardwalk. Weathered wooden boardwalk planks with visible grain and knots beneath, subtle shadows cast by the letters and cart. Shot on Kodak Portra 160 with a Mamiya RZ67, shallow depth of field, gentle film grain, warm, slightly golden color tones, high dynamic range with soft highlights on the sugar and rich pastel saturation.', 'seed': 46421, 'sample': 'https://bfldeliveryscus.blob.core.windows.net/results/2025/11/25/4609a416d80448d29729ff1e90bc7b74_sample.jpeg?se=2025-11-25T13%3A24%3A11Z&sp=r&sv=2024-11-04&sr=b&rsct=image/jpeg&sig=yrYJ41%2B2v4LlbGo6KPudl61hnduiFB8OY6BCrgNwkko%3D'}, 'progress': None, 'details': None, 'preview': None}
Generated image in 22.4sec
Downloaded image in 0.15sec
Version Details
- Version ID
51d0412f4874be5ad0fc559a9174a33b24927cb12729d4e3abf5a4f98ba1a4bc- Version Created
- March 16, 2026