Qwen Image 2.1 Pro
Qwen Image 2.1 Pro for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.
Explore Qwen Image 2.1 Pro for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses through the unified API. Supported interfaces and current availability are shown below.
- OpenAI-style Image Generation
- Image editing
- OpenAI-style Chat Completions
- Anthropic-style Messages
- OpenAI-style Responses
Model details
- Context window
- 5K tokens
- Max output
- 4K tokens
- Input
- Text, images
- Output
- Text, images
- Capabilities
- Vision
- Interfaces
- OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses
Pricing
What each generation costs. The Cloakray price is what you are charged — no gateway fee is added on top of it.
| Metric | Price |
|---|---|
| / image · Default | $0.04 |
Why teams pick it
- Qwen Image 2.1 Pro for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.
Call Qwen Image 2.1 Pro
Qwen Image 2.1 Pro answers on any of the APIs below — pick the one your code already speaks and just swap in your Cloakray key.
/v1/images/generationsOpenAI-style Image Generation · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/images/generations \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-2.1-pro",
"prompt": "A quartz crystal on a workbench"
}'/v1/images/editsImage editing · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/images/edits \ -H "Authorization: Bearer ckr_..." \ -F 'model=qwen-image-2.1-pro' \ -F 'prompt=Make the background blue' \ -F 'image=@input.png'
/v1/chat/completionsOpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/chat/completions \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-2.1-pro",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/messagesAnthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.cloakray.com/v1/messages \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-2.1-pro",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/responses \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-2.1-pro",
"input": "Hello"
}'Conversation compaction is also available at POST /v1/responses/compact.
More from Alibaba
Qwen3.8 MaxAlibaba's flagship MoE, built for coding and long-horizon agents.$2 / 1M input tokens · $6 / 1M output tokens · See all rates on the model pageQwen-Audio-3.0-TTS FlashQwen-Audio-3.0-TTS Flash for Speech generation.$15 / 1M charactersQwen-Audio-3.0-TTS PlusQwen-Audio-3.0-TTS Plus for Speech generation.$20 / 1M characters