Skip to content
中文

Qwen Image 3.0 API documentation

Integrate Qwen Image 3.0 with your VezAPI key. The operations below share the same authentication and account balance.

Base URL: https://api.vezapi.com
Send Authorization: Bearer YOUR_VEZAPI_KEY. Use a unique Idempotency-Key for each submission; reuse it only when checking the same request.

Qwen3 Pro Image to Image

POST/api/v1/jobs/createTask

Model IDs: qwen3/pro-image-to-image

ParameterTypeDescription & constraints
model
required
string

The model name used for generation. This field is required. This endpoint must use the `qwen3/pro-image-to-image` model.

Values: "qwen3/pro-image-to-image"

Default: "qwen3/pro-image-to-image"

callBackUrl
optional
string

Callback URL for task completion notifications. Optional parameter. If provided, the system will send a POST request to this URL when the task completes, whether it succeeds or fails. If omitted, no callback notification will be sent.

input
required
object

Input parameters for the image-to-image generation task.

input.image_urls
required
array

Input image URL array. Upload images and provide their URLs rather than the file content. Supports up to 3 images. Supported file types: `image/jpeg`, `image/png`, `image/webp`, `image/bmp`, and `image/gif`,`image/tiff`. Maximum file size: 10 MB per image.

minItems: 1

maxItems: 3

input.prompt
required
string

The positive prompt that describes the image content, style, and composition you want to generate or edit. Both Chinese and English are supported.

minLength: 1

maxLength: 5000

input.resolution
optional
string

The output image resolution.

Values: "1K", "2K"

Default: "1K"

input.image_size
optional
string

The output image size.

Values: "1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"

Default: "16:9"

input.output_format
optional
string

Output format: png or jpeg. Set this field explicitly.

Values: "png", "jpeg"

input.prompt_extend
optional
boolean

Whether to enable intelligent prompt rewriting. Default: true (recommended). When enabled, the model optimizes the positive prompt, which significantly improves results for simple descriptions.

Default: true

input.negative_prompt
optional
string

The negative prompt that describes content you do not want to appear in the image.

minLength: 0

maxLength: 5000

input.seed
optional
integer

Random seed, 0–2147483647. If omitted, a random seed is used.

minimum: 0

maximum: 2147483647

input.nsfw_checker
optional
boolean

Whether to enable content filtering. Optional. Defaults to false. When set to false, content filtering is disabled and all results are returned directly by the model. Note: Content filtering cannot guarantee that all inappropriate content will be detected. If the filtering results do not meet your requirements, you must implement additional content moderation measures.

Default: false

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "qwen3/pro-image-to-image",
  "input": {
    "image_urls": [
      "https://example.com/input.png"
    ],
    "prompt": "Turn the input image into a cinematic watercolor illustration.",
    "resolution": "1K"
  }
}'
Responses and errors

HTTP 200

Request successful

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
string

The task ID can be used with the "Get Task Details" endpoint to query the task status.

Qwen3 Pro Text to Image

POST/api/v1/jobs/createTask

Model IDs: qwen3/pro-text-to-image

ParameterTypeDescription & constraints
model
required
string

The model name used for generation. This field is required. This endpoint must use the `qwen3/pro-text-to-image` model.

Values: "qwen3/pro-text-to-image"

Default: "qwen3/pro-text-to-image"

callBackUrl
optional
string

Callback URL for task completion notifications. Optional parameter. If provided, the system will send a POST request to this URL when the task completes, whether it succeeds or fails. If omitted, no callback notification will be sent.

input
required
object

Input parameters for the text-to-image generation task.

input.prompt
required
string

The positive prompt that describes the image content, style, and composition you want to generate or edit. Both Chinese and English are supported.

minLength: 1

maxLength: 5000

input.resolution
optional
string

The output image resolution.

Values: "1K", "2K"

input.image_size
optional
string

The output image size.

Values: "1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"

Default: "16:9"

input.output_format
optional
string

Output format: png or jpeg. Set this field explicitly.

Values: "png", "jpeg"

input.prompt_extend
optional
boolean

Whether to enable intelligent prompt rewriting. Default: true (recommended). When enabled, the model optimizes the positive prompt, which significantly improves results for simple descriptions.

Default: true

input.negative_prompt
optional
string

The negative prompt that describes content you do not want to appear in the image.

minLength: 0

maxLength: 5000

input.seed
optional
integer

Random seed, 0–2147483647. If omitted, a random seed is used.

minimum: 0

maximum: 2147483647

input.nsfw_checker
optional
boolean

Whether to enable content filtering. Optional. Defaults to false. When set to false, content filtering is disabled and all results are returned directly by the model. Note: Content filtering cannot guarantee that all inappropriate content will be detected. If the filtering results do not meet your requirements, you must implement additional content moderation measures.

Default: false

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "qwen3/pro-text-to-image",
  "input": {
    "prompt": "A futuristic city at sunset, cinematic lighting, ultra detailed.",
    "resolution": "1K"
  }
}'
Responses and errors

HTTP 200

Request successful

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
string

The task ID can be used with the "Get Task Details" endpoint to query the task status.

Qwen3 Image to Image

POST/api/v1/jobs/createTask

Model IDs: qwen3/image-to-image

ParameterTypeDescription & constraints
model
required
string

The model name used for generation. This field is required. This endpoint must use the `qwen3/image-to-image` model.

Values: "qwen3/image-to-image"

Default: "qwen3/image-to-image"

callBackUrl
optional
string

Callback URL for task completion notifications. Optional parameter. If provided, the system will send a POST request to this URL when the task completes, whether it succeeds or fails. If omitted, no callback notification will be sent.

input
required
object

Input parameters for the image-to-image generation task.

input.image_urls
required
array

Input image URL array. Upload images and provide their URLs rather than the file content. Supports up to 3 images. Supported file types: `image/jpeg`, `image/png`, `image/webp`, `image/bmp`, and `image/gif`,`image/tiff`. Maximum file size: 10 MB per image.

minItems: 1

maxItems: 3

input.prompt
required
string

The positive prompt that describes the image content, style, and composition you want to generate or edit. Both Chinese and English are supported.

minLength: 1

maxLength: 5000

input.resolution
optional
string

The output image resolution.

Values: "1K", "2K"

Default: "1K"

input.image_size
optional
string

The output image size.

Values: "1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"

Default: "16:9"

input.output_format
optional
string

Output format: png or jpeg. Set this field explicitly.

Values: "png", "jpeg"

input.prompt_extend
optional
boolean

Whether to enable intelligent prompt rewriting. Default: true (recommended). When enabled, the model optimizes the positive prompt, which significantly improves results for simple descriptions.

Default: true

input.negative_prompt
optional
string

The negative prompt that describes content you do not want to appear in the image.

minLength: 0

maxLength: 5000

input.seed
optional
integer

Random seed, 0–2147483647. If omitted, a random seed is used.

minimum: 0

maximum: 2147483647

input.nsfw_checker
optional
boolean

Whether to enable content filtering. Optional. Defaults to false. When set to false, content filtering is disabled and all results are returned directly by the model. Note: Content filtering cannot guarantee that all inappropriate content will be detected. If the filtering results do not meet your requirements, you must implement additional content moderation measures.

Default: false

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "qwen3/image-to-image",
  "input": {
    "image_urls": [
      "https://example.com/input.png"
    ],
    "prompt": "Turn the input image into a cinematic watercolor illustration.",
    "resolution": "1K"
  }
}'
Responses and errors

HTTP 200

Request successful

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
string

The task ID can be used with the "Get Task Details" endpoint to query the task status.

Qwen3 Text to Image

POST/api/v1/jobs/createTask

Model IDs: qwen3/text-to-image

ParameterTypeDescription & constraints
model
required
string

The model name used for generation. This field is required. This endpoint must use the `qwen3/text-to-image` model.

Values: "qwen3/text-to-image"

Default: "qwen3/text-to-image"

callBackUrl
optional
string

Callback URL for task completion notifications. Optional parameter. If provided, the system will send a POST request to this URL when the task completes, whether it succeeds or fails. If omitted, no callback notification will be sent.

input
required
object

Input parameters for the text-to-image generation task.

input.prompt
required
string

The positive prompt that describes the image content, style, and composition you want to generate or edit. Both Chinese and English are supported.

minLength: 1

maxLength: 5000

input.resolution
optional
string

The output image resolution.

Values: "1K", "2K"

input.image_size
optional
string

The output image size.

Values: "1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"

Default: "16:9"

input.output_format
optional
string

Output format: png or jpeg. Set this field explicitly.

Values: "png", "jpeg"

input.prompt_extend
optional
boolean

Whether to enable intelligent prompt rewriting. Default: true (recommended). When enabled, the model optimizes the positive prompt, which significantly improves results for simple descriptions.

Default: true

input.negative_prompt
optional
string

The negative prompt that describes content you do not want to appear in the image.

minLength: 0

maxLength: 5000

input.seed
optional
integer

Random seed, 0–2147483647. If omitted, a random seed is used.

minimum: 0

maximum: 2147483647

input.nsfw_checker
optional
boolean

Whether to enable content filtering. Optional. Defaults to false. When set to false, content filtering is disabled and all results are returned directly by the model. Note: Content filtering cannot guarantee that all inappropriate content will be detected. If the filtering results do not meet your requirements, you must implement additional content moderation measures.

Default: false

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "qwen3/text-to-image",
  "input": {
    "prompt": "A futuristic city at sunset, cinematic lighting, ultra detailed.",
    "resolution": "1K"
  }
}'
Responses and errors

HTTP 200

Request successful

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
string

The task ID can be used with the "Get Task Details" endpoint to query the task status.

Task status and callbacks

For asynchronous tasks, keep the returned taskId. Query GET /api/v1/jobs/recordInfo?taskId=... or provide callBackUrl when creating the task. Only the account that created a task can access it or derive new resources from it.

A timeout can mean the submission was accepted. Inspect the existing request in your dashboard; do not create another task automatically. Callback delivery is retried and may arrive more than once. Deduplicate with X-VezAPI-Event-Id.

Files, logs and billing

Generated media normally follows a 14-day provider lifetime; uploaded files expire after 24 hours. Save the files you need before expiration. VezAPI streams registered files without keeping a permanent media library. Request logs are retained for two calendar months.

Credits are reserved before submission. Final deductions match actual discounted consumption one for one. Unknown usage pauses new paid requests. If available funds cannot cover final usage while protecting other reservations, settlement stays pending until funded; model usage cannot make the wallet negative. Time-based inputs require server-side metadata reads; a failed read prevents submission.