> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ninjachat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen Image Edit Max

> Qwen's highest-quality image editor; a reference image is required.

&#x20; ![](https://cdn.photogenius.ai/new-ai-images/site/v1/landing/marks/marks/44c15113/qwen.svg)**Qwen**`qwen-image-edit-max`Generation price**\$0.075 per image**

Image editing
Image reference

## Pricing

| Unit | Price |
| :- | :- |
| Per image | \$0.075 |

[Live pricing](https://www.ninjachat.ai/api/v1/models/qwen-image-edit-max).

## Use this model

[Set up your SDK client](https://docs.ninjachat.ai/sdks.md#create-a-client), then run:

This is an editing model: pass the source image as a public HTTPS URL in `image`.

```typescript TypeScript SDK theme={null}
const image = await client.images.generate({
  model: "qwen-image-edit-max",
  prompt: "Replace the background with a clean studio backdrop",
  image: "https://your-cdn.example/source.png",
});

console.log(image.data[0].url);
```

```python Python SDK theme={null}
image = client.images.generate(
    model="qwen-image-edit-max",
    prompt="Replace the background with a clean studio backdrop",
    image="https://your-cdn.example/source.png",
)

print(image["data"][0]["url"])
```

```bash cURL theme={null}
curl https://www.ninjachat.ai/api/v1/images/generations \
  -H "Authorization: Bearer $NINJACHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen-image-edit-max","prompt":"Replace the background with a clean studio backdrop","image":"https://your-cdn.example/source.png"}'
```

## Supported parameters

`prompt``model``n``size``aspect_ratio``image``width``height`

> [accordion] Check current availability and limits
>
> ```typescript TypeScript SDK theme={null}
> const model = await client.models.retrieve("qwen-image-edit-max");
>
> if (!model.servable) throw new Error("qwen-image-edit-max is temporarily unavailable");
>
> console.log({
>   capabilities: model.capabilities,
>   supportedParameters: model.supportedParameters,
>   pricing: model.pricing,
>   providers: model.providers,
> });
> ```

**Guides:** [Image generation](https://docs.ninjachat.ai/image-generation.md) · [Pricing](https://docs.ninjachat.ai/pricing.md) · [All models](https://docs.ninjachat.ai/models-overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.