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
Example: generating an image
Response fields
The response follows the standard image generation shape:integer
Creation timestamp.
array
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.

