> ## 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.

# Wan 2.5 T2I Preview

> [Core Function] Wan 2.5 T2I Preview is an older generation text-to-image model. [Strengths] Provided enhanced dynamic camera movements and rich lighting effects. Maintained for backward compatibility. [Best For] Existing legacy integrations and workflows that strictly depend on this specific model version's quirks. [Limitations] Do NOT use this for new creations. It is a legacy model maintained for backward compatibility. [Routing] Only use if explicitly requested; otherwise use Wan 2.7 T2I.



## OpenAPI

````yaml /media-model-api/alibaba/alibaba-t2i.json post /alibaba/wan2.5-t2i-preview
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/wan2.5-t2i-preview:
    post:
      tags:
        - Wan 2.5
      summary: Wan 2.5 T2I Preview
      description: >-
        [Core Function] Wan 2.5 T2I Preview is an older generation text-to-image
        model. [Strengths] Provided enhanced dynamic camera movements and rich
        lighting effects. Maintained for backward compatibility. [Best For]
        Existing legacy integrations and workflows that strictly depend on this
        specific model version's quirks. [Limitations] Do NOT use this for new
        creations. It is a legacy model maintained for backward compatibility.
        [Routing] Only use if explicitly requested; otherwise use Wan 2.7 T2I.
      operationId: wan25T2IPreviewAsync
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - prompt
              properties:
                prompt:
                  type: string
                  description: Image description text
                  minLength: 1
                  maxLength: 2000
                  example: A serene mountain landscape at sunset
                negative_prompt:
                  type: string
                  description: Negative prompt
                  maxLength: 500
                size:
                  type: string
                  description: >-
                    Image size (format: width*height). Total pixels [768×768,
                    1440×1440], aspect ratio [1:4, 4:1]
                  default: 1280*1280
                  example: 1280*1280
                'n':
                  type: integer
                  description: Number of images to generate
                  default: 4
                  minimum: 1
                  maximum: 4
                  example: 4
                seed:
                  type: integer
                  description: Random seed
                  minimum: 0
                  maximum: 2147483647
                prompt_extend:
                  type: boolean
                  description: Enable intelligent prompt rewriting
                  default: true
      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:
    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`.'

````