Skip to main content
Qwen Image
Generate images with Qwen Image using 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

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 editing