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
์ด๋ฏธ์ง๋น
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.| ํ๋ | ๊ฐ | ๊ธฐ๋ณธ๊ฐ | ์ค๋ช |
|---|---|---|---|
| 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. |
์ ๊ณต์ ๋ผ์ฐํ
X-0G-Provider-* ์์ฒญ ํค๋๋ฅผ ์ฌ์ฉํ์ฌ ์์ฒญ์ ์ฒ๋ฆฌํ ์ ๊ณต์๋ฅผ ์ ์ดํฉ๋๋ค.
X-0G-Provider-Address๋ ์ ๊ณต์๋ฅผ ๊ณ ์ ํ๊ณ , X-0G-Provider-Identity๋ ํด๋น ์ ๊ณต์์ ์
์คํธ๋ฆผ ์ค ์ด๋ ๊ฒ์ ํตํด ๋ผ์ฐํ
ํ ์ง ๊ณ ์ ํฉ๋๋ค. ๋ ๊ฐ ๋ชจ๋ GET /v1/providers์ address ๋ฐ provider_identity ํ๋์์ ๊ฐ์ ธ์ต๋๋ค. ์ด ๋์ ํจ๊ป ์ฌ์ฉํ๋ฉด ํน์ ์ ๊ณต์์ ํน์ ์
์คํธ๋ฆผ ํ๋๋ฅผ ์ง์ ํฉ๋๋ค. ๋ ๋ค ๋ณด๋ด์ง ์์ผ๋ฉด ๋ผ์ฐํฐ๋ ์ด์ ๊ณผ ๋๊ฐ์ด ๊ฐ๊ฒฉ๊ณผ ์ํ์ ๋ฐ๋ผ ์ ํํฉ๋๋ค.
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"
}'