> ## Documentation Index
> Fetch the complete documentation index at: https://mulerouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen Image Max Generation

> Generate images from text prompts using the qwen-image-max model.

Qwen-Image-Max is a general-purpose image generation model that improves upon the Plus series by enhancing the realism and naturalness of images. It effectively reduces AI-generated artifacts and excels in rendering character textures, fine details, and text.

Key features:
- Supports multiple artistic styles
- Excels at complex text rendering
- Multi-line, paragraph-level text generation
- Fine-grained detail rendering

## Overview

Generate highly realistic and natural images from text descriptions using the qwen-image-max model. This advanced text-to-image model improves upon the Plus series with enhanced realism and reduced AI-generated artifacts.

## Key Features

* **Enhanced Realism**: Produces more natural-looking images with fewer AI artifacts
* **Character Excellence**: Superior rendering of human textures, skin tones, and facial details
* **Text Rendering**: Excels at generating clear, legible text in images
* **Multi-line Text**: Supports paragraph-level text generation within images
* **Fine Details**: Outstanding performance in rendering intricate details
* **Multiple Styles**: Supports various artistic and photographic styles
* **High Resolution**: Multiple aspect ratios from 1:1 to 16:9

## Pricing

**\$0.075 per image**

## Resolution Options

| Resolution              | Aspect Ratio | Best For                               |
| ----------------------- | ------------ | -------------------------------------- |
| **1664\*928** (default) | 16:9         | Landscape photos, banners, wide scenes |
| **1472\*1104**          | 4:3          | Standard photos, presentations         |
| **1328\*1328**          | 1:1          | Social media posts, profile images     |
| **1104\*1472**          | 3:4          | Portraits, vertical content            |
| **928\*1664**           | 9:16         | Mobile screens, stories                |

## Example Requests

### Basic Text-to-Image

```json theme={null}
{
  "prompt": "A professional portrait photograph of a woman in her 30s, natural lighting, soft smile, business attire"
}
```

### Complex Scene with Text

```json theme={null}
{
  "prompt": "A cozy coffee shop interior with a chalkboard menu on the wall displaying 'Daily Special: Cappuccino $4.50', warm ambient lighting, wooden furniture, customers in the background",
  "size": "1664*928",
  "prompt_extend": true
}
```

### Artistic Style Generation

```json theme={null}
{
  "prompt": "An oil painting of a sunset over mountains, impressionist style, vibrant colors, thick brush strokes",
  "negative_prompt": "low resolution, low quality, AI-like, overly smooth, waxy, no facial details",
  "size": "1472*1104"
}
```

## Parameters

### prompt (Required)

* **Type**: String
* **Max Length**: 800 characters
* **Languages**: Chinese and English supported

### negative\_prompt

* **Type**: String or null
* **Max Length**: 500 characters

### size

* **Type**: String (enum)
* **Default**: "1664\*928" (16:9)

### prompt\_extend

* **Type**: Boolean
* **Default**: true

### seed

* **Range**: 0 to 2,147,483,647


## OpenAPI

````yaml api-reference/endpoint/alibaba/qwen-image-max/qwen-image-max.yaml POST /vendors/alibaba/v1/qwen-image-max/generation
openapi: 3.1.0
info:
  title: Qwen-Image-Max API
  description: Qwen-Image-Max Text-to-Image Model API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.mulerouter.ai/
security:
  - bearerAuth: []
paths:
  /vendors/alibaba/v1/qwen-image-max/generation:
    post:
      summary: Create Generation Task
      description: >-
        Generate images from text prompts using the qwen-image-max model.


        Qwen-Image-Max is a general-purpose image generation model that improves
        upon the Plus series by enhancing the realism and naturalness of images.
        It effectively reduces AI-generated artifacts and excels in rendering
        character textures, fine details, and text.


        Key features:

        - Supports multiple artistic styles

        - Excels at complex text rendering

        - Multi-line, paragraph-level text generation

        - Fine-grained detail rendering
      operationId: qwen_image_max_generation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QwenImageMaxRequest'
        required: true
      responses:
        '202':
          description: Accepted - Task created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskCreatedResponse'
components:
  schemas:
    QwenImageMaxRequest:
      type: object
      additionalProperties: false
      properties:
        prompt:
          type: string
          description: >-
            Text description for the image (max 800 characters).

            Describes the desired content, style, and composition of the
            generated image.

            Supports both Chinese and English.
          maxLength: 800
        negative_prompt:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Negative prompt describing unwanted content (max 500 characters).

            Used to constrain the image generation.

            Example: low resolution, low quality, deformed limbs, deformed
            fingers, oversaturated, waxy, no facial details, overly smooth,
            AI-like, chaotic composition, blurry text, distorted text.
          maxLength: 500
        size:
          type: string
          description: |-
            Image resolution in format "width\*height".

            Default: 1664\*928

            Available resolutions and aspect ratios:
            - 1664\*928 (default): 16:9
            - 1472\*1104: 4:3
            - 1328\*1328: 1:1
            - 1104\*1472: 3:4
            - 928\*1664: 9:16
          default: 1664*928
          enum:
            - 1664*928
            - 1472*1104
            - 1328*1328
            - 1104*1472
            - 928*1664
        prompt_extend:
          type: boolean
          description: >-
            Enable intelligent prompt rewriting.

            When enabled, the model optimizes and refines the positive prompt.

            Keep enabled if your input prompt is simple or if you want the model
            to be more creative.

            Set to false if your prompt is already detailed and professional.
          default: true
        seed:
          type: integer
          description: >-
            Random seed for reproducibility [0, 2147483647].

            Using the same seed produces more consistent results.

            Note: Results are not guaranteed to be identical for every call even
            with the same seed.
          minimum: 0
          maximum: 2147483647
        safety_filter:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Enable content safety filter. Defaults to true. Set to false to
            disable content safety inspection.
          default: true
      required:
        - prompt
    TaskCreatedResponse:
      type: object
      additionalProperties: true
      properties:
        task_info:
          $ref: '#/components/schemas/TaskInfoCreated'
    TaskInfoCreated:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          description: UUID of the task
          format: uuid
        status:
          type: string
          description: Task status (pending when created)
          enum:
            - pending
        created_at:
          type: string
          description: Task creation timestamp (ISO 8601)
          format: date-time
        updated_at:
          type: string
          description: Task last update timestamp (ISO 8601)
          format: date-time
      required:
        - id
        - status
        - created_at
        - updated_at
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````