qwen-image-edit

This documentation is valid for the following list of our models:

  • alibaba/qwen-image-edit

Model Overview

The image editing variant of our 20B qwen-image model. It expands the model’s distinctive text rendering abilities to editing tasks, making accurate text modifications within images possible.

Setup your API Key

If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.

API Schema

post
Body
modelstring · enumRequiredPossible values:
promptstring · max: 800Required

The text prompt describing the content, style, or composition of the image to be generated.

imagestringRequired

The image to be edited. Enter the Base64 encoding of the picture or an accessible URL. Image URL: Make sure that the image URL is accessible. Base64-encoded content: The format must be in lowercase.

negative_promptstring · max: 500Optional

The description of elements to avoid in the generated image.

watermarkbooleanOptional

Add an invisible watermark to the generated images.

Default: false
Responses
200Success
application/json
post
/v1/images/generations
200Success

Quick Example

Let's generate an image using an input image and a prompt that defines how it should be edited.

Response

We obtained the following 1184x896 image by running this code example:

'Make the dinosaur sit on a lounge chair with its back to the camera, looking toward the water. The setting sun has almost disappeared below the horizon.'

Last updated

Was this helpful?