Qwen Image 2.0 Pro

qwen-image-2.0-pro

Use the Qwen Image 2.0 Pro API for image generation and editing. Use a text prompt to create a new image or provide a reference for an edit. Create illustrations, design concepts, and visual assets. Compare the available provider routes, request examples, and usage prices on OpenAny.

Published price
From $0.056 / image
Billing unit
/ image
Context / Max output
— / —
Listed routes
1
Base URL
https://api.openany.si/v1
POST
/v1/images
Authentication
Authorization: Bearer $OPENANY_API_KEY

Provider

Published price $0.056 / image

Request parameters

ParameterType / rangeDefault valueRequiredDescription
inputobject—YesInput data containing the messages array.
modelstring—Yesmodel
parametersobject—NoImage editing parameters.

Request example

curl 'https://api.openany.si/v1/images' \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "messages": [
      {
        "content": [
          {
            "image": "https://openany.si/brand/playground-default-image.png"
          },
          {
            "text": "Create a high-quality ecommerce poster for a white ceramic coffee cup, clean layout, realistic lighting, clear Chinese and English typography."
          }
        ],
        "role": "user"
      }
    ]
  },
  "model": "qwen-image-2.0-pro"
}'

Response example

Configured response example · not a live result

JSON
{
  "url": "https://openmodels.market/api/v1/public/files/download?key=key-market%2Fplaygrounds%2F2026%2F07%2F21%2Fd1a2a417-2269-40e9-ba48-32aed019b4c9.png"
}

Error handling

400Check the model ID and request fields.
429Retry with exponential backoff.
5xxRetry only temporary provider failures.

JSON Schema

{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "input",
    "model"
  ],
  "properties": {
    "input": {
      "type": "object",
      "required": [
        "messages"
      ],
      "properties": {
        "messages": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "role",
              "content"
            ],
            "properties": {
              "role": {
                "enum": [
                  "user"
                ],
                "type": "string",
                "description": "Message role. Must be user."
              },
              "content": {
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "required": [
                        "text"
                      ]
                    },
                    {
                      "required": [
                        "image"
                      ]
                    }
                  ],
                  "properties": {
                    "text": {
                      "type": "string",
                      "description": "Image editing instruction describing the target elements and visual features. Supports Chinese and English. qwen-image-2.0 series supports up to 1300 tokens; other models support up to 800 tokens. Only one text input is supported per request."
                    },
                    "image": {
                      "type": "string",
                      "description": "Input image as a public HTTP/HTTPS URL or Base64 string in data:{mime_type};base64,{data} format. Supported formats: JPG, JPEG, PNG, BMP, TIFF, WEBP, and GIF first frame only. Recommended width and height: 384 to 3072 pixels. Maximum file size: 10 MB."
                    }
                  }
                },
                "contains": {
                  "type": "object",
                  "required": [
                    "text"
                  ]
                },
                "maxItems": 4,
                "description": "Message content array. Must contain 1 to 3 image objects and exactly one text object. For multi-image input, images are referenced by position. The output aspect ratio is determined by the last image.",
                "maxContains": 1,
                "minContains": 1
              }
            }
          },
          "maxItems": 1,
          "minItems": 1,
          "description": "Single-turn input. Must contain exactly one message with role user."
        }
      },
      "description": "Input data containing the messages array."
    },
    "model": {
      "type": "string"
    },
    "parameters": {
      "type": "object",
      "properties": {
        "n": {
          "type": "integer",
          "default": 1,
          "maximum": 6,
          "minimum": 1,
          "description": "Number of images to generate. qwen-image-2.0, qwen-image-edit-max, and qwen-image-edit-plus series support 1 to 6. qwen-image-edit supports only 1."
        },
        "seed": {
          "type": "integer",
          "maximum": 2147483647,
          "minimum": 0,
          "description": "Random seed. Same seed produces more consistent but not identical results. If omitted, a random seed is used."
        },
        "size": {
          "type": "string",
          "description": "Output resolution in width*height format. qwen-image-2.0 series supports total pixels between 512*512 and 2048*2048. qwen-image-edit-max/plus require width and height each between 512 and 2048 and auto-adjust to the nearest multiple of 16. Recommended examples: 1024*1024, 768*1152, 1024*1536, 1152*768, 1536*1024, 720*1280, 1080*1920, 1280*720, 1920*1080. qwen-image-edit does not support this parameter."
        },
        "watermark": {
          "type": "boolean",
          "default": false,
          "description": "Whether to add a Qwen-Image watermark to the bottom-right corner of the image."
        },
        "prompt_extend": {
          "type": "boolean",
          "default": true,
          "description": "Whether to enable prompt rewriting. Improves results when prompts lack detail. Not supported by qwen-image-edit."
        },
        "negative_prompt": {
          "type": "string",
          "description": "Content that should not appear in the generated image. Supports Chinese and English. Maximum length: 500 characters; excess content is truncated automatically."
        }
      },
      "description": "Image editing parameters."
    }
  }
}

Model API questions

How do I call Qwen Image 2.0 Pro through OpenAny?

Use model ID qwen-image-2.0-pro with an OpenAny key and the operation published in this model's API tab. The model API base is https://api.openany.si/v1. Confirm the protocol and request schema; model availability does not imply every OpenAI API operation is supported.

How is Qwen Image 2.0 Pro billed?

Compare the published rate and billing unit of the selected provider route. Input, output and cache token rates may differ. Image, audio and video models can use other units. Recorded usage determines the charge under that route's billing contract.

Are Community and Verified routes the same as an official publisher API?

No. Inspect the provider name and supply classification for the specific route. A marketplace listing or a supply label is not a claim of publisher endorsement, identical service or measured uptime. Different route prices may reflect different supply and conditions.

Where do these prices come from, and when were they updated?

Rates come from the provider routes in OpenAny's public model catalog, not an independent quote from the model publisher. The catalog does not supply a price update timestamp. A page or catalog snapshot date is not a price revision date. Compare supply, billing units, tiers and conditions; a lower listed rate alone does not establish equivalent service or explain the price difference.

Use Qwen Image 2.0 Pro with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.