## Basic model info

Model name: black-forest-labs/flux-3-image
Model description: FLUX 3 is Black Forest Labs' text-to-image and image-editing model. Generate images from a prompt, or edit with up to 10 reference images.


## Model inputs

- prompt (required): Text description of the image to generate, or of the edit to apply to the reference images. (string)
- images (optional): Up to 10 reference images the prompt edits or draws from. When present, the request runs as an edit and the first image drives 'auto' aspect ratio. Each image must be at least 256x256 px and at most 16 MP. Must be jpeg, png, gif, or webp. (array)
- aspect_ratio (optional): Aspect ratio of the generated image. 'auto' picks the ratio from the prompt and the first reference image. (string)
- resolution (optional): Resolution of the output image. Input images are resized to the closest bin, up to 2k. (string)
- grounding (optional): Let the model research the prompt with web search and image search before generating. (boolean)
- safety_tolerance (optional): Moderation tolerance for inputs and outputs. 0 is the strictest, 4 is the most permissive. (integer)
- output_format (optional): Format of the output images. (string)
- output_quality (optional): Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs (integer)


## Model output schema

{
  "type": "string",
  "title": "Output",
  "format": "uri"
}

If the input or output schema includes a format of URI, it is referring to a file.


## Example inputs and outputs

Use these example outputs to better understand the types of inputs the model accepts, and the types of outputs the model returns:

### Example (https://replicate.com/p/xksk0xqy8nrmr0d0z29aqr5p7c)

#### Input

```json
{
  "images": [],
  "prompt": "Extreme macro wildlife photograph of an unidentified marine creature, filling the frame with its pale ivory, finely textured skin and vivid red-orange mantle. One enormous golden-amber eye dominates the composition, featuring a razor-thin horizontal black pupil, intricate radial striations, glossy reflections, and visible moisture along the cornea. Capture at an intimate eye-level angle with a true macro lens, extremely shallow depth of field, tack-sharp focus on the eye and surrounding skin, and a gradual falloff into soft blur across the creature\u2019s body. Use diffused natural underwater light with subtle specular highlights, rich micro-contrast, realistic organic texture, and deep cinematic shadows. High-end analog wildlife photography aesthetic, shot on 120 medium-format film, fine but visible film grain, gentle halation around highlights, natural color rendition, soft tonal rolloff, restrained saturation, detailed shadow retention, slight lens character, and museum-quality darkroom print finish. No text, no illustration, no CGI, no artificial sharpening.",
  "grounding": true,
  "resolution": "1k",
  "aspect_ratio": "4:3",
  "output_format": "webp",
  "output_quality": 80,
  "safety_tolerance": 2
}
```

#### Output

```json
"https://replicate.delivery/xezq/hgvfreHpsfSFfS9ExWE4feaMKjPRZ5WR6wlsi3f3Tb0LHdipLA/tmpu7xuzcqy.webp"
```


## Model readme

> # FLUX 3 Image
> 
> FLUX 3 is Black Forest Labs' image model. You give it a prompt and it generates an image. Give it one or more reference images and it edits them instead.
> 
> ## What it does
> 
> - **Text to image.** Describe what you want and get an image back.
> - **Image editing.** Pass up to 10 reference images and the prompt describes the edit or composition to apply. When you supply reference images, the first one sets the aspect ratio if you leave `aspect_ratio` on `auto`.
> 
> ## Inputs
> 
> - `prompt` — what to generate, or the edit to make.
> - `images` — up to 10 reference images (jpeg, png, gif, or webp). Supplying any image switches the model into edit mode.
> - `aspect_ratio` — `auto` (default) picks a ratio from the prompt and the first reference image, or choose a fixed ratio from `21:9` down to `9:21`.
> - `resolution` — output size: `768sq`, `1k` (default), `1.5k`, `2k`, or `4k`.
> - `grounding` — when on (default), the model researches the prompt with web and image search before generating. Turn it off for faster, self-contained generation.
> - `safety_tolerance` — moderation strictness from 0 (strictest) to 4 (most permissive).
> - `output_format` / `output_quality` — `webp`, `jpg`, or `png`, and the quality for lossy formats.
> 
> ## Reference images
> 
> Reference images must be at least 256x256 px and at most 16 MP. Use them to keep a subject, product, or style consistent while the model builds a new scene around it.
> 
> ## Prompting tips
> 
> - Be specific about style, lighting, and composition — FLUX 3 holds a look well when you name it.
> - For edits, describe the change clearly ("replace the background with a snowy mountain") rather than re-describing the whole scene.
> - Leave `aspect_ratio` on `auto` when editing so the output matches your first reference image.

