Qwen Image 2.1 API
Qwen Image 2.1 for text-to-image generation
About this model
Qwen Image 2.1 is an image model from Alibaba’s Qwen Image line, a generation between 2.0 and 3.0. Alibaba’s Model Studio documentation lists 2.1 Pro and Turbo variants of the generation.
It is an earlier option than Qwen Image 3.0 and 3.0 Pro; choose it if you want the behavior of that generation, and move to 3.0 for newer results.
In this catalog this entry is for generating images from a text prompt, without image editing.
Use cases
- Illustrations and concept art
- Graphics with text
- Quick visual drafts
Input and output
- Input
- Text prompt
- Output
- Images
Developer
Alibaba Cloud (Qwen)
Official site of Alibaba Cloud (Qwen)- Developer
- Qwen
- Type
- Picture
Qwen Image 2.1 request example
Use https://gatelum.com/v1 as the base URL and pass qwen/qwen-image-2.1 in the model field. You create the key in your account after signing up.
curl --silent --show-error --fail-with-body \
--header 'Authorization: Bearer glt_YOUR_KEY' \
'https://gatelum.com/v1/images/generations' \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "qwen/qwen-image-2.1",
"prompt": "A lighthouse on a rocky shore at sunset, watercolor",
"n": 1
}
JSON