SandBase is live — $1 in free credits on signupStart free ›

Alibaba modelsimage generation api

alibaba/qwen-image/layered

Qwen Image Layered by Alibaba - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.

Input
A caption for the input image.

PNG, JPEG, WebP, or GIF · 20 MiB maximum

The URL of the input image.
The format of the generated image. Allowed values: png.
110
The number of layers to generate. Range: 1 to 10.
The same seed and the same prompt given to the same version of the model will output the same image every time.
Idle

Example output — click Run to generate your own

API README

Qwen Image Layered

Qwen Image Layered is the Qwen Image route for layer-aware image work. It uses Qwen’s combined visual-semantic and appearance modeling to interpret subjects, relationships, typography, spatial structure, and surface detail as a connected composition, giving this exact route a clearer production purpose than a generic image request.

Use Qwen Image Layered when the project specifically requires separable visual components and compositing flexibility. State the creative goal, then define composition, viewpoint, wording, materials, lighting, and finish; for edits, explicitly separate the intended transformation from identity, layout, or regions that must remain stable.

Highlights

  • Qwen Image Layer-aware image understanding. Separates foreground, background, subjects, text, and graphic elements conceptually.
  • Qwen Image Editable visual decomposition. Creates or organizes imagery into components suitable for downstream compositing.
  • Qwen Image Occlusion-aware separation. Preserves which elements sit in front of or behind one another.
  • Qwen Image Design-ready layer generation. Supports posters and visual layouts that benefit from independently editable parts.

Pricing

ConfigurationBilling unitPrice
Base generationPer request$0.05

When to Use

✅ Good fit❌ Consider alternatives
The project needs this exact named workflowThe intended task belongs to another media route
All required reference or control media is availableNecessary assets or rights are unavailable
The brief can state transformation and preservation goalsOutput must be deterministic at pixel or frame level
Supported duration, resolution, and format fit deliveryFinal placement requires unsupported specifications
An asynchronous generated result fits productionA live frame-synchronous response is mandatory

Prompt Guide

Identify the primary subject and every source or condition, state the intended transformation or action, then describe composition, camera or viewpoint, lighting, materials, pacing, atmosphere, and exact preservation requirements. Refer to multiple inputs in their schema order.

{
  "prompt": "A precisely directed composition with explicit subject, transformation, camera or viewpoint, lighting, material, and preservation requirements",
  "image": "https://example.com/reference.png",
  "seed": 1,
  "num_layers": 4,
  "output_format": "png"
}

Technical Specs

SpecValue
Model IDalibaba/qwen-image/layered
Input fieldsseed (integer)<br>image (string)<br>prompt (string)<br>num_layers (integer)<br>output_format (string; png)
Required inputprompt, image
Output fieldsurl, content_type
ExecutionAsynchronous job

Related Models

  • alibaba/qwen-image
  • alibaba/qwen-image/edit
  • alibaba/qwen-image/max

Related Models

alibaba/qwen-image/layered/loraQwen Image Layered Lora is Alibaba's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.alibaba/qwen-image/2512Qwen Image 2512 is Alibaba's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.alibaba/qwen-image/2512/loraQwen Image 2512 Lora by Alibaba - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.alibaba/qwen-image/editQwen Image Edit is Alibaba's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.alibaba/qwen-imageQwen Image by Alibaba - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.alibaba/qwen-image/maxQwen Image Max by Alibaba - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.alibaba/qwen-image/max/editQwen Image Max Edit is Alibaba's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.alibaba/qwen-image-2/pro/text-to-imageQwen Image 2 Pro by Alibaba - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.