Skip to main content
Qwen Image Editing
Edit images using Qwen Image models with the native synchronous Alibaba request structure. POST https://api.mixroute.ai/v1/images/generations
input and parameters are native Qwen fields. Put the prompt in input.messages[].content[].text, not in an additional top-level prompt. This page documents synchronous requests, not the separate asynchronous image-synthesis API.

Models

Request Parameters

Size Rules

Requested dimensions may be aligned to nearby multiples of 16. Input formats: JPG/JPEG/PNG/BMP/TIFF/WebP/GIF, at most 10 MB per image; only the first GIF frame is processed. Dimensions of 384-3072 px per edge are recommended, not a hard minimum/maximum. Native OSS references must be accessible to the upstream account.

Examples

Use your MixRoute key in the MIXROUTE_API_KEY environment variable. Requests use Authorization: Bearer .... Replace source-image placeholders with accessible images or local files before editing.

Python

Response

Read image URLs from output.choices[].message.content[].image. Outputs are PNG; hosted links expire after 24 hours. request_id is for troubleshooting, not a video-task polling ID. This is not the OpenAI data[].b64_json response structure. Qwen image generation