Skip to main content

Bailian Qwen-Image series

Use Qwen-Image-Edit (Tongyi Qwen Bailian) to generate or edit images from reference images (such as depth maps or edge maps) plus prompts.

Model preview

Qwen models

Basics

  • Endpoint: POST /v1/images/edits
  • Auth: Bearer Token (Authorization: Bearer sk-xxxxxx)
  • Content-Type: application/json

Request headers

Content-Type string (required) Must be application/json. Authorization string (required) Bearer API key auth. Example: Bearer sk-xxxx.

Request body

Qwen format.

Response

Status: 200 OK

Request example


Developer tips

  1. Reference-image mode: Unlike OpenAI alpha-mask editing, Qwen edit is often used for structural control (e.g. depth maps/line art), then generation follows your prompt.
  2. Multimodal input: content must include both an image object and a text object so the model has both visual and textual guidance.