SilkDock
APIImage Generation

Qwen Image 2.0

Configurable fields and supported values for qwen-image-2.0.

Model ID

qwen-image-2.0

Capabilities

CapabilitySupported value
Text-to-imageYes
Image-to-imageYes
Multi-image referenceYes
Aspect ratio (aspect_ratio)1:1, 4:3, 3:4, 16:9, 9:16
resolutionNot supported; do not send
qualitySelected automatically by the model; do not send
Reference fieldimage / image_urls

Supports a single reference with image or multiple references with image_urls.

Configurable fields

FieldRequiredNotes
modelYesMust be qwen-image-2.0.
promptYesText description or editing instruction.
aspect_ratioNoPreferred aspect-ratio field; select one supported value listed above.
sizeNoCompatibility alias for aspect_ratio. New integrations should use aspect_ratio.
nNoDefaults to 1; account/model limit comes from the model list API.
image / image_urlsNoUse image for one reference or image_urls for multiple references.
response_formatNourl (default) or b64_json.
output_formatNoOnly png is supported.
extra_body.prompt_extendNoBoolean prompt enhancement switch. Defaults to true.
wait_for_completionNoDefaults to false, which returns an asynchronous task ID. Set to true to wait in the create request.
polling_timeoutNoPolling timeout used only when wait_for_completion is true.

Qwen prompt enhancement uses extra_body.prompt_extend. Do not send think_level, thinking_level, or reasoning_effort.

Example

{
  "model": "qwen-image-2.0",
  "prompt": "Create a cinematic editorial image",
  "image_urls": [
    "https://example.com/subject.png",
    "https://example.com/style.png"
  ],
  "aspect_ratio": "16:9",
  "extra_body": {
    "prompt_extend": true
  }
}

Last updated on

On this page