Back to models
Qwen-Image-2512
Alibaba Qwen's December-updated 20B MMDiT text-to-image foundation model under Apache 2.0, delivering natural human realism, fine-grained material textures, and accurate bilingual text layout rendering.
What you can do
- Photorealistic portrait and editorial scenes
- Bilingual poster and signage generation
- Detailed nature and architectural concepts
Input & output
- Input
- Chinese or English descriptive text prompts including in-image typography instructions
- Output
- Photorealistic synthesized images with accurate bilingual text rendering
Try a prompt like this
Editorial portrait of an elderly clockmaker examining a brass escapement under a warm desk lamp, natural skin pores, wooden workshop sign reading "时光工坊 · SINCE 1984".
Things to know
Apache 2.0 licensed; full 20B BF16 inference requires ~42GB+ VRAM, though FP8/GGUF quantized workflows allow deployment on 24GB GPUs.
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-2512
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-2512",
prompt="Editorial portrait of an elderly clockmaker examining a brass escapement under a warm desk lamp, natural skin pores, wooden workshop sign reading \"时光工坊 · SINCE 1984\".",
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