Skip to main content
POST
Qwen Image 3.0

Parameters and input modes

model and input are required; omitted optional fields use model defaults. See the Body section below for full field definitions.

Special modes

  • Exact pixels (size: "widthxheight"): Overrides aspect_ratio and resolution; both 1K and 2K use the same per-image rate.
  • Prompt rewriting (prompt_extend_mode): Requires prompt_extend: true. direct works for both generation and editing; agent is text-to-image only and is rejected when image_urls is non-empty.

Use cases

Submit an example to POST /api/v1/tasks/create_task with your own prompt and image URLs.
Track results via Query task or callback_url (Webhook security); see Create task for submission errors. Output URLs remain valid for 14 days; tasks unfinished after 24 hours fail at no charge.

Playground and pricing

Each task runs as one execution item for up to n (1–6) images and bills per delivered image. Each reference image adds 0.5 Credits ($0.0025) once per successful request—not multiplied by n. Partial success bills only delivered images plus the one-time reference fee; failed tasks cost 0. Check balances via Available Credits.

Try in Playground

Set parameters and generate an image.

View pricing

Compare output rates, bonus pricing, and reference fees.

Authorizations

Authorization
string
header
required

Sign in to APIstable, then create and copy a key from API Key management.

Send this HTTP header with every request:

Replace YOUR_API_KEY with the key you created.

Body

application/json
model
enum<string>
required

The APIstable model ID for this endpoint.

Available options:
qwen-image-3.0
Example:

"qwen-image-3.0"

input
object
required

Text-to-image or reference editing in a single execution item. Each delivered image costs 5 Credits at both 1K and 2K. Exact pixel sizes override resolution and aspect-ratio presets. Each reference image adds 0.5 Credits once per request when at least one output is delivered (not multiplied by n). Fully failed requests are not charged. Omitted dimensions default to 1K 1:1.

callback_url
string<uri>

Optional public HTTPS endpoint for signed completion callbacks; no redirects or private IPs.

Callbacks

POST
{$request.body#/callback_url}Webhook

Body

application/json

When the task succeeds or fails, APIstable sends a JSON POST to the callback_url supplied at creation. Verify the signature and return HTTP 2xx to acknowledge delivery.

Read data.status to determine the generation outcome. Partial success also reports succeeded. data.result.urls lists successful images, which are retained for 14 days. For a failed task, data.result is null and data.message contains the failure reason.

Use X-APIstable-Signature, X-APIstable-Timestamp, and X-APIstable-Event-Id to verify and deduplicate deliveries. See Webhook security.

Webhook payload example

code
integer
required
msg
string
required
Allowed value: "success"
data
object
required

Response

2XX

Webhook acknowledged.

Response

Accepted task. Use task_id to query the task, or receive the result at callback_url.

code
any
required
msg
any
required
data
object
required