Qwen Image 2

alibaba/qwen-image-2

Alibaba Qwen Image 2 text-to-image model with high-quality generation and configurable output format.

Base price
$0.04USD / run
Execution
async
Model type
image
Input fields
4
Production route

Try the model

Playground

Open playground
Input
The prompt to generate an image from.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, 9:21.
Random seed for reproducible results.
The format of the generated image. Allowed values: jpeg, png.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Model card

Specifications

Pricing

Base price
$0.04 / run

Context & modalities

Input
Schema-defined
Output
image

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
Alibaba
Model ID
alibaba/qwen-image-2
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

Human preference

Arena

Elo ratings from blind side-by-side votes, compared with other image and video models.

Rankings sourced from Artificial Analysis Arena

Leaderboard
Text to Image
Rank
#53 of 106
Elo
990 ±16
Gap to #1
−232

Text-to-image arena: people pick the better of two images generated from the same prompt, without seeing the model names.

  1. #48P-Image-Ideogram (High)Pruna AI995±14
  2. #49FLUX.2 [dev] TurboFalOn SandBase994±11
  3. #50Cosmos3-Super-Text2Image (agentic)NVIDIA993±10
  4. #51Luma UNI 1Luma Labs992±12
  5. #52P-Image-Ideogram (Very High)Pruna AI992±15
  6. #53Qwen Image 2.0 (2026-03-03)AlibabaThis model990±16
  7. #54HunyuanImage 3.0 (Tencent Cloud)Tencent989±16
  8. #55FLUX.2 [dev] FlashFalOn SandBase988±12
  9. #56HunyuanImage 3.0 InstructTencent987±12
  10. #57Wan 2.7AlibabaOn SandBase986±12

API README

Qwen Image 2

Qwen Image 2 text-to-image, with strong Chinese and English text rendering for posters and graphics. Qwen Image 3 is the newer model.

Fields

FieldTypeDefaultNotes
promptstring, required—Up to 10,000 characters.
aspect_ratio21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 9:2116:9Output shape.
seedintegerrandomFix it to compare prompt changes.
output_formatjpeg / pngpngOutput file format.

Billing

$0.035 per image, Alibaba's list price.

RequestPrice
One image$0.035

Failed runs are not charged.

Prompting

  • Quote any text that must appear in the image.

Limits

  • One image per request.

Also on SandBase

Related: alibaba/qwen-image-3/text-to-image (newer).

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
alibaba/qwen-image-2
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "alibaba/qwen-image-2",
  "aspect_ratio": "16:9",
  "output_format": "png"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
Qwen Image 2This model
Alibaba
Image$0.04 / runMar 3, 2026
AlibabaImage$0.04 / runJul 21, 2026
AlibabaImage$0.04 / runJul 21, 2026
AlibabaImage$0.07 / runApr 1, 2026
AlibabaImage$0.03 / runApr 1, 2026
AlibabaImage$0.03 / runApr 1, 2026

Questions

FAQ

How do I call Alibaba Qwen Image 2 through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/qwen-image-2" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Alibaba Qwen Image 2 and the other models in the catalog; you do not need to sign up with Alibaba separately.