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

# Wan 2.5 Text-to-Video

> Text-to-video generation with Alibaba Wan 2.5

<Tip>
  1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
  2. Regardless of whether `callback_url` is provided, you can retrieve the response result through the unified [Query Task Status](/api-manual/task-management/status) endpoint.
</Tip>

# Wan 2.5 Text-to-Video

`wan2.5-text-to-video` is the text-only branch of the Wan 2.5 video family and supports multiple size presets with 5s and 10s generation lengths.

## Available Model

* **wan2.5-text-to-video** - Generate a video clip from a text prompt

## Key Parameters

* **Aspect Ratio**: `832*480`, `480*832`, `1280*720`, `720*1280`, `1920*1080`, `1080*1920`
* **Duration**: `5` or `10` seconds
* **Optional Controls**: `audio` string, `negative_prompt`, `seed`

## Notes

* If `audio` is provided, it must be a string. Do not send a boolean value.


## OpenAPI

````yaml /api-manual/video-series/wan2.5-text-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Wan 2.5 Text-to-Video API
  description: Text-to-video generation with Alibaba Wan 2.5
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Wan 2.5
      summary: Submit Wan 2.5 Text-to-Video Task
      description: Generate videos from text prompts with Wan 2.5
      operationId: submitWan25TextToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              wan2.5-text-to-video:
                summary: Wan 2.5 Text-to-Video
                value:
                  model: wan2.5-text-to-video
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      A cinematic time-lapse of a bustling city street
                      transitioning from day to night.
                    aspect_ratio: 832*480
                    duration: 5
                    seed: 426
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          description: Wan 2.5 text-to-video model identifier
          enum:
            - wan2.5-text-to-video
        callback_url:
          type: string
          format: uri
          description: Webhook callback URL for result notifications
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
          description: Input parameters for generation
          properties:
            prompt:
              type: string
              description: Text prompt for video generation
              example: A cinematic video scene
            aspect_ratio:
              type: string
              description: Output size preset used by the upstream model
              enum:
                - 832*480
                - 480*832
                - 1280*720
                - 720*1280
                - 1920*1080
                - 1080*1920
              example: 832*480
            duration:
              type: integer
              description: Video duration in seconds
              enum:
                - 5
                - 10
              default: 5
              example: 5
            audio:
              type: string
              description: Optional audio setting string. Boolean values are not supported.
              example: background_music
            negative_prompt:
              type: string
              description: Optional negative prompt
              example: blurry, low quality
            seed:
              type: integer
              description: Optional random seed for reproducibility
              example: 426
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
          description: HTTP status code
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: task-unified-1757165031-uyujaw3d
              description: Unique task identifier for status tracking
            status:
              type: string
              enum:
                - not_started
              example: not_started
              description: Initial task status
            created_time:
              type: string
              format: date-time
              example: '2025-11-12T10:30:00'
              description: ISO 8601 timestamp when the task was created
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        All API endpoints require Bearer Token authentication


        Get your API Key:


        Visit the [API Key Management
        Page](https://vidgo.ai/apis/dashboard/api-key) to get your API Key


        Add it to the request header:


        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````