Text to Image
qwen-image-2.0-pro
Draft model pending operator verification
Quick start
Submit a request with this public model ID. The API immediately returns a normalized job; poll GET /v1/jobs/{jobId} while its status is queued or running.
curl -X POST "https://api.artany.ai/v1/images/generations" \
-H "Authorization: Bearer $ARTANY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: unique-request-id" \
-d '{"model":"qwen-image-2.0-pro","prompt":"A small blue paper kite","size":"1:1","resolution":"1K","count":1}'Request
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for an Artany API key. |
| Content-Type | Yes | Must be application/json. |
| Idempotency-Key | Recommended | 8–128 characters. Reusing it with an identical request prevents duplicate jobs and charges. |
Body
{
"model": "qwen-image-2.0-pro",
"prompt": "A small blue paper kite",
"size": "1:1",
"resolution": "1K",
"count": 1
}Request Parameters
Only fields in this model’s public request contract are shown. Defaults are applied before validation and quoting.
Note:Image-generation workflow with optional reference images and negative prompting.
Stable public model ID for this request.
Text description for image generation. Specify the subject, visual style, layout, and any text that must appear.
Length: 1–800
Output aspect ratio. Choose one of the supported ratios or use the default.
Allowed: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9
Output resolution tier. Higher tiers create larger output and affect the quote.
Allowed: 1K, 2K
Number of images to generate in this request.
Range: 1–6
Note:Send a JSON number rather than a quoted string.
Elements or visual traits to avoid in the generated image.
Length: 1–500
Optional reference images for reference-based generation or editing.
Note:Use publicly accessible URLs or complete Base64 Data URIs as accepted by this model.
Response and task status
A successful asynchronous submission returns HTTP 202 with a supplier-neutral job.
{
"id": "job_…",
"object": "generation.job",
"model": "qwen-image-2.0-pro",
"status": "queued",
"progress": 0,
"output": null,
"error": null,
"billing": {
"estimated_credits": "…",
"frozen_credits": "…",
"charged_credits": "0",
"state": "frozen",
"price_version": "2026-07-18.picverse-parity"
},
"created_at": "2026-07-21T00:00:00.000Z",
"completed_at": null
}- queued / running: continue polling.
- succeeded: retrieve media URLs from
output; billing has settled. - failed / canceled: inspect
error; frozen Credits are released.
Pricing
The price shown for a matching configuration is the fixed amount settled on successful completion. Price version: 2026-07-18.picverse-parity.
| count | Credits |
|---|---|
| 1 | 10 |
| 2 | 20 |
| 3 | 30 |
| 4 | 40 |
| 5 | 50 |
| 6 | 60 |