Text to Image
qwen-image-3.0
Image generation and editing with standard instruction following and text rendering.
Commercial useAsync API
API reference
Submit this model to the capability endpoint, then poll the returned job until it is terminal. Only the parameters below are accepted.
Required headers
Authorization: Bearer $ARTANY_API_KEY Content-Type: application/json Idempotency-Key: unique-request-id
Use a new 8–128 character Idempotency-Key for each logical generation. Retrying the same request with the same key will not double-charge.
Request body
{
"model": "qwen-image-3.0",
"prompt": "A cafe poster with the title Autumn Limited, warm tones, refined layout",
"resolution": "1K",
"size": "16:9",
"n": 1,
"prompt_extend": false
}Parameters
| Field | Type | Required | Description | Default | Constraints |
|---|---|---|---|---|---|
| model | string | Yes | Stable Artany public model ID. | qwen-image-3.0 | This exact public model ID. |
| n | integer | No | Model-specific image generation option. See its allowed values and constraints in this row. | 1 | Range: 1–6 |
| size | string | No | Requested output image aspect ratio or canvas size. Available values are model-specific. | "1:1" | Allowed: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3 |
| prompt | string | Yes | Natural-language instruction describing the desired image or video. Include subject, setting, composition, motion, lighting, and style as needed. | — | Length: 1–18000 |
| image_urls | array (string items) | No | Public image URLs or supported image data used as source or reference images. | — | Items: 1–3 |
| resolution | string | No | Requested output quality tier. Available values are model-specific and can affect price. | "1K" | Allowed: 1K, 2K, 1k, 2k |
| prompt_extend | boolean | No | Whether to let the model expand the prompt before generation. | false | — |
| negative_prompt | string | No | Elements, styles, or visual characteristics to avoid in the generated result. | — | Length: 0–18000 |
| prompt_extend_mode | string | No | Model-specific image generation option. See its allowed values and constraints in this row. | — | Allowed: direct, agent |
Accepted response
The submit endpoint returns HTTP 202 with a normalized job. Poll GET /v1/jobs/{jobId} until the status is terminal.
{
"id": "job_…",
"object": "generation.job",
"model": "qwen-image-3.0",
"status": "queued",
"progress": 0,
"output": null,
"error": null,
"billing": {
"estimated_credits": "…",
"frozen_credits": "…",
"charged_credits": "0",
"state": "frozen",
"price_version": "…"
},
"created_at": "2026-07-21T00:00:00.000Z",
"completed_at": null
}Lifecycle and failures
- queued / running — wait and poll again.
- succeeded — read output URLs from
output; the actual charge is settled. - failed / canceled — inspect
error; frozen Credits are released. - For a schema error, the API returns an error object and identifies the invalid field in
paramwhen applicable.
Input
Runs are billed to your Credits at the listed price — same engine as the public API.
Output
Run the model to see results here
Integrate in minutes
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-3.0","prompt":"A cafe poster with the title Autumn Limited, warm tones, refined layout","resolution":"1K","size":"16:9","n":1,"prompt_extend":false}'
# poll until terminal
curl "https://api.artany.ai/v1/jobs/{job_id}" \
-H "Authorization: Bearer $ARTANY_API_KEY"