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

> 提交 Wan2.7 T2V 任务。请保存返回的任务 ID，并通过 Wan 任务查询接口轮询结果。



## OpenAPI

````yaml zh/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: 通过 AnyFast 异步视频 API，根据文字生成带同步音频的视频。
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/video/generations:
    post:
      summary: 创建 Wan2.7 文生视频任务
      description: 提交 Wan2.7 T2V 任务。请保存返回的任务 ID，并通过 Wan 任务查询接口轮询结果。
      operationId: createWan27T2vZh
      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: 中文或英文视频描述。
                    negative_prompt:
                      type: string
                      maxLength: 500
                      description: 不希望出现在视频中的内容。
                    audio_url:
                      type: string
                      format: uri
                      description: 公开 WAV 或 MP3 URL；时长 2-30 秒，最大 15 MB。
                parameters:
                  $ref: '#/components/schemas/GenerationParameters'
              example:
                model: wan2.7-t2v
                input:
                  prompt: 一艘纸船驶过霓虹灯映照的雨夜城市，电影感跟拍镜头。
                parameters:
                  resolution: 720P
                  ratio: '16:9'
                  duration: 5
                  prompt_extend: true
                  watermark: false
                  seed: 42
      responses:
        '200':
          description: 任务创建成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskCreated'
        '400':
          description: 请求参数无效
        '401':
          description: 未授权
        '429':
          description: 请求频率超限
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: 是否改写并扩展提示词。开启 NSFW 功能时，令牌需选择 Special-Ns 资源分组，并将本参数设置为 false。
        watermark:
          type: boolean
          default: false
          description: 是否添加“AI 生成”水印。
        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

````