qwen-image-2-1defaultQwen Image 2.1 API — how to connect and pay
Alibaba Qwen Image 2.1 — generation and editing in one model (docs.Pixel/market/qwen2-1/*). Up to 10 reference images, mask-based local editing, and native transparent (alpha) output.
Channel comparison
last 7 days
| Channel | Price |
|---|---|
Pixel qwen-image-2-1default | from $0.026667 per image |
Build the result you need
qwen-image-2-1What is Qwen Image 2.1
Alibaba Qwen Image 2.1 — generation and editing in one model (docs.Pixel/market/qwen2-1/*). Up to 10 reference images, mask-based local editing, and native transparent (alpha) output.
Contract at a glance
- Input
- text, image
- Output
- image
- Mode
- async (job + polling)
- Status polling
- every 3 s · up to 90 s
Strengths
- Pricing: per image
- Inputs: text, image
- 8 configurable options
- One API key for media generation
Where it is used
- Article and social media illustrations
- Product images
- Banners and covers
- Design prototypes
API contract
Generation runs asynchronously: create a job, then poll its status until completion.
- Create job
- POST /api/media/generate
- Check status
- GET /api/media/jobs/{jobId}
- Input
- text, image
- Output
- image
- Polling
- every 3 s · up to 90 s
- Authentication
- Authorization: Bearer sk-pv-…
Example request
Pass your key in the Bearer header. The API returns jobId for polling the status.
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"qwen-image-2-1","prompt":"a beautiful landscape","opts":{"mode":"text-to-image","aspect_ratio":"1:1","resolution":"1K","background":"opaque","output_format":"png","enhance_prompt":false}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "qwen-image-2-1",
"prompt": "a beautiful landscape",
"opts": {
"mode": "text-to-image",
"aspect_ratio": "1:1",
"resolution": "1K",
"background": "opaque",
"output_format": "png",
"enhance_prompt": false
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);API request parameters
Parameters for requests to Qwen Image 2.1 via the GetVibe API.
promptreq.image_urlaspect_ratioresolutionmodemask_urlbackgroundoutput_formatenhance_promptseedinput_urlsimage_file_idimage_base64input_file_idsinput_base64mask_file_idmask_base64| Parameter | Type | Values | Default | Price |
|---|---|---|---|---|
promptreq. | text | text description | required | — |
image_url | URL | Public image URL | — | — |
aspect_ratio | option selection | 1:1 (default) · 4:3 · 3:4 · 3:2 · 2:3 · 16:9 · 9:16 · Auto (from reference) | 1:1 | Included in the base price |
resolution | option selection | 1K (default) · 2K | 1K | 1K: $0.026667, 2K: $0.053333 |
mode | option selection | Generation (default) · Image-to-Image | Generation | Included in the base price |
mask_url | text / number | any value | — | Included in the base price |
background | option selection | Standard (default) · Transparent (alpha, PNG/WebP) | Standard | Included in the base price |
output_format | option selection | PNG (default) · WebP · JPEG (no transparency) | PNG | Included in the base price |
enhance_prompt | yes/no | Yes · No (default) | No | Included in the base price |
seed | text / number | any value | — | Included in the base price |
input_urls | Array<URLs>, 0–10 items | Public HTTP(S) URLs | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
input_file_ids | Array<strings> | List of values | — | Included in the base price |
input_base64 | Array<strings> | List of values | — | Included in the base price |
mask_file_id | text | Alternative to mask_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
mask_base64 | text | Alternative to mask_url: the file inline, as base64 or a data: URI | — | Included in the base price |
Request: POST https://getvibeapi.com/api/media/generate. Prices in USD.
Price of Qwen Image 2.1
The cost of Qwen Image 2.1: from $0.026667 per image. The price is calculated dynamically at the current exchange rate, and the final charge is shown in the API response (priceRub). Payment in USD, no subscriptions.
What a default request costs
With no parameters sent, the request uses these values: Resolution — 1K, Mode — Generation, Frame format — 1:1, Background — Standard. That request costs $0.026667.
Channels and prices for every parameter combination
For every channel, the price of every parameter combination. It is exactly the amount a successful generation is charged, and the same figure as in the machine-readable table linked below.
Pixelqwen-image-2-1from $0.026667exact prices
| Resolution | 1K | 2K |
|---|---|---|
| Pixel | $0.026667 | $0.053333 |
Every combination as JSON: /api/media/price-table?model=qwen-image-2-1
README
The machine-readable contract for Qwen Image 2.1 contains the request schema, operations, limits, polling and response examples.
# Qwen Image 2.1
Public model: qwen-image-2-1
Create job: POST /api/media/generate
Check status: GET /api/media/jobs/{jobId}
## Input parameters
- `prompt` (text): text description; default: required
- `image_url` (URL): Public image URL; default: —
- `aspect_ratio` (option selection): 1:1 (default) · 4:3 · 3:4 · 3:2 · 2:3 · 16:9 · 9:16 · Auto (from reference); default: 1:1
- `resolution` (option selection): 1K (default) · 2K; default: 1K
- `mode` (option selection): Generation (default) · Image-to-Image; default: Generation
- `mask_url` (text / number): any value; default: —
- `background` (option selection): Standard (default) · Transparent (alpha, PNG/WebP); default: Standard
- `output_format` (option selection): PNG (default) · WebP · JPEG (no transparency); default: PNG
- `enhance_prompt` (yes/no): Yes · No (default); default: No
- `seed` (text / number): any value; default: —
- `input_urls` (Array<URLs>, 0–10 items): Public HTTP(S) URLs; default: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); default: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; default: —
- `input_file_ids` (Array<strings>): List of values; default: —
- `input_base64` (Array<strings>): List of values; default: —
- `mask_file_id` (text): Alternative to mask_url: the id of your own file from POST /v1/files (file-pv-…); default: —
- `mask_base64` (text): Alternative to mask_url: the file inline, as base64 or a data: URI; default: —
## Public variants
- `qwen-image-2-1`: PixelFAQ about the Qwen Image 2.1 API
How much does Qwen Image 2.1 cost?
The price of Qwen Image 2.1: from $0.026667 per image. The price is calculated dynamically at the current exchange rate.
Is it compatible with the OpenAI SDK?
Yes, the API is fully OpenAI-compatible. Just change base_url to https://getvibeapi.com/v1 and set your key — the rest of the code stays the same.