Skip to content
AlibabaImageChatqwen-image-2.1-pro

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 Inferray price is what you are charged — no gateway fee is added on top of it.

Qwen Image 2.1 Pro pricing.
MetricPrice
/ 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 Inferray key.

/v1/images/generationsOpenAI-style Image Generation · openai SDK or plain HTTP
curl https://api.inferray.com/v1/images/generations \
  -H "Authorization: Bearer inferray_..." \
  -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.inferray.com/v1/images/edits \
  -H "Authorization: Bearer inferray_..." \
  -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.inferray.com/v1/chat/completions \
  -H "Authorization: Bearer inferray_..." \
  -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.inferray.com/v1/messages \
  -H "Authorization: Bearer inferray_..." \
  -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.inferray.com/v1/responses \
  -H "Authorization: Bearer inferray_..." \
  -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

Questions about this model

How much does the Qwen Image 2.1 Pro API cost?
Qwen Image 2.1 Pro is billed at Price not published per 1M image output tokens and Price not published per 1M input tokens on Inferray, the list price with no gateway fee on top.
Is there a free tier for Qwen Image 2.1 Pro?
No. You add credit and pay Qwen Image 2.1 Pro's list rate for each request — seats, projects, and API keys are free, and pay-as-you-go credit never expires.
Am I charged for failed requests?
No. A request that fails without returning a result is not billed. If a response fails part-way, the tokens already processed before the failure are charged.
Is Qwen Image 2.1 Pro included in Token Plans?
No. Qwen Image 2.1 Pro is pay-as-you-go only; Token Plans cover the other models in the catalog.
Is it the real Qwen Image 2.1 Pro?
Yes. A request for qwen-image-2.1-pro is answered by Qwen Image 2.1 Pro from Alibaba, billed at its published list price. Inferray never substitutes a different or smaller model.