von Alibaba
Alibaba Qwen Image 3.0 Pro text-to-image and image editing, billed per generated image at the price of its size tier — 1K (up to 2,250,000 pixels) or 2K (above) — plus a price per reference image. Up to 6 images per request (`n`, default 1). `size` is `<width>x<height>`, 262,144 to 4,194,304 pixels in total with an aspect ratio of at most 8:1 (e.g. 1328x1328 at 1K, 2048x2048 at 2K). Up to 3 reference images in `image` or `images` (a string or an array of HTTP or `data:image/...` URLs). Optional: `negative_prompt`, `seed`, `prompt_extend` (let the model rewrite the prompt), `watermark`. Images come back as URLs only (download them: they expire).
$0.048
pro Bild
curl "https://router-api.0g.ai/v1/images/generations" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "qwen-image-3.0-pro",
"prompt": "A futuristic city skyline at sunset",
"n": 1,
"response_format": "b64_json"
}'
# Response: {"data": [{"b64_json": "..."}], "x_0g_trace": {...}}
# Generation takes seconds to about a minute; the request stays open until the images are ready.| Feld | Werte | Standard | Beschreibung |
|---|---|---|---|
| seed | 0–2147483647 | — | Fixes the random seed; reuse it to make a result easier to reproduce. |
| prompt_extend | true · false | — | Let the model rewrite the prompt. |
| watermark | true · false | — | Adds an AI-generated mark. |
Anbieter-Routing
Steuern Sie, welcher Anbieter Ihre Anfrage bearbeitet, mit den X-0G-Provider-*-Anfrage-Headern.
X-0G-Provider-Address legt einen Anbieter fest; X-0G-Provider-Identity legt fest, welcher seiner vorgelagerten Dienste für das Routing verwendet wird – beide Werte stammen aus den Feldern address und provider_identity von GET /v1/providers. Zusammen adressieren sie einen bestimmten vorgelagerten Dienst eines Anbieters. Werden beide nicht gesendet, wählt der Router genau wie zuvor anhand von Preis und Zustand aus.
curl "https://router-api.0g.ai/v1/images/generations" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-H "X-0G-Provider-Address: <PROVIDER_ADDRESS>" \
-H "X-0G-Provider-Identity: <UPSTREAM>" \
-H "X-0G-Provider-Sort: latency" \
-H "X-0G-Provider-Allow-Fallbacks: true" \
-d '{
"model": "qwen-image-3.0-pro",
"prompt": "A futuristic city skyline at sunset"
}'