Edit image
Images
Qwen Image Edits
Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an input.messages wrapper.
POST
Edit image
This page uses the same
images/edits operation as Edit image, with the playground above pre-filled for the generic OpenAI-style edit schema (image, mask, prompt, etc.). The notes below describe the Qwen-specific request shape for wanx-v1 style models.
Qwen image editing models accept an alternate JSON request shape that wraps your editing instructions and source image references inside
input.messages, rather than uploading image/mask files via multipart form data. Provide model and input together in the playground’s request body to use this shape.Qwen-specific request fields
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model identifier, such as wanx-v1. |
input | object | Yes | Input wrapper object sent in the request body, used instead of multipart image/mask fields. |
input.messages | array | Yes | Messages array nested under input. |
input.messages[].role | string | Yes | Message role, e.g. user. |
input.messages[].content | string | Yes | Editing instructions and any referenced source image(s). |
Example: editing an image
Response fields
The response follows the standard image edit shape:Creation timestamp.
Generated image entries.
Example response
200
Authorizations
Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.

