## Basic model info

Model name: alibaba/qwen-image-3
Model description: Qwen-Image-3.0 generates and edits images with accurate text rendering, complex layouts, and photographic detail.


## Model inputs

- prompt (required): Text prompt for image generation or editing (string)
- image (optional): Optional reference image for image editing, style transfer, or image-to-image generation (string)
- match_input_image (optional): When true and an image is provided, use the input image's aspect ratio and resolution instead of the aspect_ratio parameter (boolean)
- aspect_ratio (optional): Aspect ratio of the generated image (string)
- enable_prompt_expansion (optional): Automatically expand and optimize the prompt for better results (boolean)
- negative_prompt (optional): Negative prompt to specify elements to avoid in the generated image (string)
- seed (optional): Random seed for reproducible generation. Range: 0-2147483647 (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/ft59zn500nrmr0d04khs2gcj9g)

#### Input

```json
{
  "prompt": "An unimaginable parallel universe",
  "aspect_ratio": "1:1",
  "negative_prompt": "",
  "match_input_image": false,
  "enable_prompt_expansion": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/Ul2UTm7Dou6zPthGnsBC26HnhGykYNwNzN6cDPT4f9gR7wiLA/tmp5zclq50o.png"
```


## Model readme

> # Qwen-Image-3.0
> 
> Qwen-Image-3.0 is Alibaba's image generation and editing model, with a focus on accurate text rendering and complex layouts.
> 
> ## What it's good at
> 
> - **Accurate text.** Renders small, legible text and handles native rendering across many languages and fonts.
> - **Complex layouts.** Generates posters, infographics, and multi-element compositions in a single pass.
> - **Photographic detail.** Produces sharp, detailed images.
> - **Image editing.** Pass a reference image to edit, restyle, or transform it.
> 
> ## Inputs
> 
> - `prompt` — what to generate or how to edit the image.
> - `image` — optional reference image for editing and image-to-image.
> - `aspect_ratio` — output aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2).
> - `match_input_image` — when editing, keep the input image's aspect ratio.
> - `negative_prompt` — elements to avoid.
> - `enable_prompt_expansion` — automatically expand and optimize your prompt.
> - `seed` — set for reproducible results.
> 
> ## Pricing
> 
> $0.03 per output image.

