Skip to content
中文
Qwen · Model API

Qwen Image Edit API Pricing

Qwen Image Edit API with VezAPI. Explore model capabilities, credit pricing, request parameters, and integration examples.

Image to Image

Qwen Image Edit API documentation

Integrate Qwen Image Edit 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.

Qwen - Image Edit

POST/api/v1/jobs/createTask

Model IDs: qwen/image-edit

ParameterTypeDescription & constraints
model
required
string

The model name to use for generation. Required field. - Must be `qwen/image-edit` for this endpoint

Values: "qwen/image-edit"

Default: "qwen/image-edit"

callBackUrl
optional
string

The URL to receive generation task completion updates. Optional but recommended for production use. - System will POST task status and results to this URL when generation completes - Callback includes generated content URLs and task information - Your callback endpoint should accept POST requests with JSON payload containing results - Alternatively, use the Get Task Details endpoint to poll task status - To ensure callback security, see [Webhook Verification Guide](/common-api/webhook-verification) for signature verification implementation

input
optional
object

Input parameters for the generation task

input.prompt
required
string

The prompt to generate the image with (Max length: 2000 characters)

maxLength: 2000

input.image_url
required
string

The URL of the image to edit. (File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB)

input.acceleration
optional
string

Acceleration level for image generation. Options: 'none', 'regular', 'high'. Higher acceleration increases speed. 'regular' balances speed and quality. Default value: "none"

Values: "none", "regular", "high"

Default: "none"

input.image_size
optional
string

The size of the generated image. Default value: landscape_4_3

Values: "square", "square_hd", "portrait_4_3", "portrait_16_9", "landscape_4_3", "landscape_16_9"

Default: "landscape_4_3"

input.num_inference_steps
optional
number

The number of inference steps to perform. Default value: 30 (Min: 2, Max: 49, Step: 1) (step: 1)

Default: 25

minimum: 2

maximum: 49

input.seed
optional
integer

The same seed and the same prompt given to the same version of the model will output the same image every time.

input.guidance_scale
optional
number

The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. Default value: 4 (Min: 0, Max: 20, Step: 0.1) (step: 0.1)

Default: 4

minimum: 0

maximum: 20

input.num_images
optional
string

num_images

Values: "1", "2", "3", "4"

input.enable_safety_checker
optional
boolean

If set to true, the safety checker will be enabled. Default value: true (Boolean value (true/false))

input.output_format
optional
string

The format of the generated image. Default value: "png"

Values: "jpeg", "png"

Default: "png"

input.negative_prompt
optional
string

The negative prompt for the generation Default value: " " (Max length: 500 characters)

maxLength: 500

input.nsfw_checker
optional
boolean

Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model.

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": "qwen/image-edit",
  "input": {
    "prompt": "Make the sky a warm sunset.",
    "image_url": "https://example.com/input.png"
  }
}'
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.

Open full documentation →

Qwen Image Edit API pricing

Rates below are reference estimates; final deductions equal actual discounted consumption, one for one. At the standard pack rate, 1,000 credits ≈ $10. Larger packs reduce the effective credit price.

SpecificationCreditsUnitUSD reference
Qwen image-edit, image-to-image5.0per megapixel$0.05