Create / edit images
Generate or edit Qwen images through the OpenAI-compatible API.
/v1/images/generationsGenerate or edit images synchronously. When image is provided, edit the reference images using the prompt.
Authorization
bearerAuth Use a platform API key.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
Replace the editing example URL with the image URL generated in the previous step. For Base64, replace BASE64_BYTES with actual image data and retain the Data URL prefix matching its format.