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

# Qwen Image 3.0

> [Core Function] Qwen Image 3.0 is Alibaba's standard text-to-image model balancing quality and speed. [Strengths] It supports free-form output size (width*height), optional negative prompts, intelligent prompt rewrite (direct/agent modes), batch generation of 1-6 images, and long structured prompts. [Best For] General creative stills, posters with readable text, product shots, and multi-variant exploration (n up to 6) when Pro-tier photorealism is not required. [Limitations] Do NOT use this if the user needs image editing with reference images (use Qwen Image 3.0 Edit). Keep total pixels within 512*512 to 2048*2048. Very long prompts combined with a long negative_prompt may exceed the model input capacity (about 4.5k tokens total). [Routing] Prefer Qwen Image 3.0 Pro for higher photorealism; use this for balanced quality/speed. If the user provides reference image(s) to edit, route to Qwen Image 3.0 Edit instead.



## OpenAPI

````yaml /media-model-api/alibaba/alibaba-t2i.json post /alibaba/qwen-image-3.0
openapi: 3.1.0
info:
  description: The text-to-image models API from Alibaba.
  version: 1.0.0
  contact:
    name: Modellix Support
    email: support@modellix.ai
  title: Alibaba Text-to-Image Models API
servers:
  - url: https://api.modellix.ai/api/v1
    description: The text-to-image models API from Alibaba.
security:
  - bearerAuth: []
paths:
  /alibaba/qwen-image-3.0:
    post:
      tags:
        - Qwen Image
      summary: Qwen Image 3.0
      description: >-
        [Core Function] Qwen Image 3.0 is Alibaba's standard text-to-image model
        balancing quality and speed. [Strengths] It supports free-form output
        size (width*height), optional negative prompts, intelligent prompt
        rewrite (direct/agent modes), batch generation of 1-6 images, and long
        structured prompts. [Best For] General creative stills, posters with
        readable text, product shots, and multi-variant exploration (n up to 6)
        when Pro-tier photorealism is not required. [Limitations] Do NOT use
        this if the user needs image editing with reference images (use Qwen
        Image 3.0 Edit). Keep total pixels within 512*512 to 2048*2048. Very
        long prompts combined with a long negative_prompt may exceed the model
        input capacity (about 4.5k tokens total). [Routing] Prefer Qwen Image
        3.0 Pro for higher photorealism; use this for balanced quality/speed. If
        the user provides reference image(s) to edit, route to Qwen Image 3.0
        Edit instead.
      operationId: qwenImage30Async
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QwenImage30ProRequest'
            examples:
              basic:
                summary: Basic image generation
                value:
                  prompt: A cinematic still of an astronaut exploring an alien planet
              with_extend_mode:
                summary: Custom size with agent prompt rewrite
                value:
                  prompt: A movie poster with the title STELLAR ODYSSEY
                  negative_prompt: blurry text, misspelling
                  size: 1024*1536
                  'n': 2
                  prompt_extend: true
                  prompt_extend_mode: agent
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncTaskResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    QwenImage30ProRequest:
      type: object
      required:
        - prompt
      properties:
        prompt:
          type: string
          description: Image description text, supports Chinese and English
          minLength: 1
          maxLength: 4500
          example: A serene Japanese garden with cherry blossoms
        negative_prompt:
          type: string
          description: Negative prompt describing unwanted content
          maxLength: 500
          example: blurry, low quality
        size:
          type: string
          description: >-
            Output image resolution as width*height (e.g. 1024*1024). Optional;
            when omitted the model auto-selects. Total pixels should stay within
            512*512 to 2048*2048.
          pattern: ^\d+\*\d+$
          example: 1024*1024
        'n':
          type: integer
          description: Number of images to generate (1-6)
          default: 1
          minimum: 1
          maximum: 6
          example: 1
        seed:
          type: integer
          description: Random seed for reproducible results
          minimum: 0
          maximum: 2147483647
          example: 42
        prompt_extend:
          type: boolean
          description: >-
            Whether to enable intelligent prompt rewriting. Default true
            (recommended). When enabled, the model rewrites the positive prompt
            using the mode specified by prompt_extend_mode; most effective for
            short or simple prompts.
          default: true
          example: true
        prompt_extend_mode:
          type: string
          description: >-
            Prompt rewrite mode when prompt_extend is true. Default direct.
            direct: Direct Prompt Enhancement (DPE), suitable for most scenarios
            (T2I and I2I). agent: Agent Prompt Enhancement (APE), finer rewrite;
            text-to-image (T2I) only.
          enum:
            - direct
            - agent
          default: direct
          example: direct
    AsyncTaskResponse:
      type: object
      required:
        - code
        - message
        - data
      properties:
        code:
          type: integer
          description: Response code, 0 indicates success
          example: 0
        message:
          type: string
          description: Response message
          example: success
        data:
          type: object
          required:
            - status
            - task_id
            - model_id
          properties:
            status:
              type: string
              enum:
                - pending
                - processing
              description: Task status
              example: pending
            task_id:
              type: string
              description: Unique task identifier
              example: task-abc123
            model_id:
              type: string
              description: Model ID
              example: model-123
            get_result:
              type: object
              description: API information to query the task result
              properties:
                method:
                  type: string
                  description: HTTP method
                  example: GET
                url:
                  type: string
                  description: Full URL to query the task result
                  example: https://api.modellix.ai/api/v1/tasks/task-abc123
          description: Detailed data about the submitted asynchronous task.
    ErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          description: Error code (equals HTTP status code)
          example: 400
        message:
          type: string
          description: 'Error message in format ''Category: detail'''
          example: 'Invalid parameters: parameter ''prompt'' is required'
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 400
            message: 'Invalid parameters: parameter ''prompt'' is required'
    Unauthorized:
      description: Unauthorized - Invalid or missing API Key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 401
            message: 'Authentication failed: invalid API key'
    TooManyRequests:
      description: Too many requests - Rate limit exceeded
      headers:
        X-RateLimit-Limit:
          description: Maximum requests per minute
          schema:
            type: integer
            example: 100
        X-RateLimit-Remaining:
          description: Remaining quota in current window
          schema:
            type: integer
            example: 0
        X-RateLimit-Reset:
          description: Rate limit window reset time (Unix timestamp)
          schema:
            type: integer
            example: 1704067260
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 429
            message: >-
              Rate limit exceeded: 100 requests per minute, retry after 60
              seconds
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 500
            message: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API Key authentication. Format: `Bearer YOUR_API_KEY`.'

````