Create image
Images
Qwen Image Generations
OpenAI-compatible image generation. Also accepts Qwen-compatible payloads (wanx-v1 style models) using an input.messages wrapper instead of prompt.
POST
Create image
This page uses the same
images/generations operation as Create image, with the playground above pre-filled for the generic OpenAI-style image schema (prompt, model, size, etc.). The notes below describe the Qwen-specific request shape for wanx-v1 style models.
Qwen image models accept an alternate request shape that wraps your prompt inside
input.messages rather than a top-level prompt field. 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, used instead of a top-level prompt. |
input.messages | array | Yes | Messages array nested under input. |
input.messages[].role | string | Yes | Message role, e.g. user. |
input.messages[].content | string | Yes | Prompt text describing the desired image. |
Example: generating an image
Response fields
The response follows the standard image generation shape:Creation timestamp.
Generated image entries.
Example response
200
Authorizations
Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.
Body
application/json
- OpenAI format
- Qwen format
Image prompt.
Model such as dall-e-2 or dall-e-3.
Number of images to generate.
Available options:
standard, hd Available options:
url, b64_json Output size.
Available options:
vivid, natural End-user identifier.

