Qwen-Image-2.1
Alibaba Qwen's unified image generation and editing model built on a 7B single-stream DiT generator and Qwen3-VL encoder, supporting native RGBA transparency, multi-reference editing, and complex bilingual text rendering.
What you can do
- Bilingual poster typography
- Multi-reference image editing
- Native RGBA asset generation
Input & output
- Input
- Chinese/English text prompt plus optional up to 10 reference images or edit masks
- Output
- Generated or edited RGB/RGBA images with accurate typography
Try a prompt like this
Create a transparent-background RGBA product poster featuring a matte-black wireless headphone floating beside crisp bilingual title text "静享纯粹 · Pure Sound".
Things to know
Released under the Qwen Research License (non-commercial research only; commercial use requires authorization). Full BF16 pipeline (7B DiT + Qwen3-VL-8B encoder) uses ~32GB VRAM, or fits 24GB GPUs via INT8/CPU offload.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/images/generations- Model repo ID
Qwen/Qwen-Image-2.1
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
result = client.images.generate(
model="Qwen/Qwen-Image-2.1",
prompt="Create a transparent-background RGBA product poster featuring a matte-black wireless headphone floating beside crisp bilingual title text \"静享纯粹 · Pure Sound\".",
size="1024x1024",
)
print(result.data[0].url)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide