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

# wan2.7-t2v

> Submit a Wan2.7 T2V task. Save the returned task ID and poll the Wan task query endpoint.



## OpenAPI

````yaml api-reference/model-api/alibaba/openapi/wan2.7-t2v/openapi.yaml POST /v1/video/generations
openapi: 3.1.0
info:
  title: Wan2.7 T2V
  description: >-
    Generate a video with synchronized audio from text through the AnyFast
    asynchronous video API.
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/video/generations:
    post:
      summary: Create a Wan2.7 text-to-video task
      description: >-
        Submit a Wan2.7 T2V task. Save the returned task ID and poll the Wan
        task query endpoint.
      operationId: createWan27T2v
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              properties:
                model:
                  type: string
                  enum:
                    - wan2.7-t2v
                input:
                  type: object
                  required:
                    - prompt
                  properties:
                    prompt:
                      type: string
                      maxLength: 5000
                      description: Video description in Chinese or English.
                    negative_prompt:
                      type: string
                      maxLength: 500
                      description: Content to exclude from the video.
                    audio_url:
                      type: string
                      format: uri
                      description: >-
                        Public WAV or MP3 URL. The audio must be 2-30 seconds
                        and no larger than 15 MB.
                parameters:
                  $ref: '#/components/schemas/GenerationParameters'
              example:
                model: wan2.7-t2v
                input:
                  prompt: >-
                    A paper boat sails through a neon-lit rainy city, cinematic
                    tracking shot.
                parameters:
                  resolution: 720P
                  ratio: '16:9'
                  duration: 5
                  prompt_extend: true
                  watermark: false
                  seed: 42
      responses:
        '200':
          description: Task created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskCreated'
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
        '429':
          description: Rate limit exceeded
components:
  schemas:
    GenerationParameters:
      type: object
      properties:
        resolution:
          type: string
          enum:
            - 720P
            - 1080P
          default: 1080P
        ratio:
          type: string
          enum:
            - '16:9'
            - '9:16'
            - '1:1'
            - '4:3'
            - '3:4'
          default: '16:9'
        duration:
          type: integer
          minimum: 2
          maximum: 15
          default: 5
        prompt_extend:
          type: boolean
          default: true
          description: >-
            Whether to rewrite and enrich the prompt. To enable NSFW generation,
            use a token from the Special-Ns resource group and set this
            parameter to false.
        watermark:
          type: boolean
          default: false
          description: Whether to add an AI Generated watermark.
        seed:
          type: integer
          minimum: 0
          maximum: 2147483647
    TaskCreated:
      type: object
      properties:
        id:
          type: string
          example: asyntask_example123
        task_id:
          type: string
          example: asyntask_example123
        object:
          type: string
          example: video
        model:
          type: string
          example: wan2.7-t2v
        status:
          type: string
          example: queued
        progress:
          type: integer
          example: 0
        created_at:
          type: integer
          example: 1784520000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````