
qwen-image-edit
API Overview
Qwen-Image-Edit is an image editing model deployed by Alibaba Cloud
API Console
Log in to explore more features! Click to Log In
API Reference (1)
| API Description | API Endpoint | Request Method | Stability | Parameter Description |
|---|---|---|---|---|
Qwen-Image-Edit(Aliyun) | POST | Stable | View Details | |
Document Details Qwen-Image-Edit supports precise bilingual text editing (Chinese and English), color adjustment, detail enhancement, style transfer, object addition and removal, changing positions and actions, and other operations, enabling complex image and text editing. Price: 0.05 PTC/image Request Parameters Header ParametersAuthorizationstringOptional Example Value: Bearer {{YOUR_API_KEY}}Request Body application/jsonmodelstringRequired Model name. Example value: qwen-image-edit. inputobjectRequired Basic information input, such as prompts, etc. messagesarray[object]Required Model conversation list. Currently, only single-turn conversations are supported, which means passing a set of role and content parameters. Multi-turn conversations are not supported. rolestringOptional Role of the conversation. This parameter must be set to user. contentarray[object]Optional Content of the conversation, including images and prompts. imagestringOptional Input the image URL or Base64 encoded data. Image restrictions: Image formats: JPG, JPEG, PNG, BMP, TIFF, WEBP. Image resolution: The width and height of the image must be within the range [384, 3072] pixels. Image size: No more than 10MB. The URL must not contain Chinese characters. Instructions for inputting images: Use a publicly accessible URL Supports HTTP or HTTPS protocols. For local files, please refer to uploading files to obtain a temporary public URL. Example value: https://dashscope.oss-cn-beijing.aliyuncs.com/images/dog_and_girl.jpeg. Pass in the string after Base64 encoding the image Data format: data:{MIME_type};base64,{base64_data}. Example value: data:image/jpeg;base64,GDU7MtCZzEbTbmRZ…。 The encoded string in the example is incomplete and for demonstration purposes only. For more information, please refer to textstringOptional Positive prompt words, used to describe the desired elements and visual characteristics to be included in the generated image. Supports both Chinese and English, with a maximum length of 800 characters. Each Chinese character or letter counts as one character; any excess will be automatically truncated. Example value: An orange cat sitting, with a joyful expression, lively and cute, realistic and accurate. parametersobjectOptional Image processing parameters. negative_promptstringOptional Negative prompt words are used to describe content that you do not want to appear in the image, allowing you to restrict the output. Supports both Chinese and English, with a maximum length of 500 characters. Any excess will be automatically truncated. Example values: low resolution, error, worst quality, low quality, incomplete, extra fingers, poor proportions, etc. watermarkbooleanOptional | ||||
API Pricing
| Model | Description | 302.AI Price |
|---|
Qwen-Image-Edit(Aliyun) | wanx2.1-imageedit |
|