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

# happyhorse-1.1-t2v

> 提交 HappyHorse 1.1 文生视频任务，并使用返回的任务 ID 查询结果。



## OpenAPI

````yaml zh/api-reference/model-api/alibaba/openapi/happyhorse-1.1-t2v/openapi.yaml POST /v1/video/generations
openapi: 3.1.0
info:
  title: HappyHorse 1.1 T2V
  description: 通过 AnyFast 异步视频接口，根据文本生成带同步音频的视频。
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/video/generations:
    post:
      summary: 创建文生视频任务
      description: 提交 HappyHorse 1.1 文生视频任务，并使用返回的任务 ID 查询结果。
      operationId: createHappyhorse11T2vZh
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              properties:
                model:
                  type: string
                  enum:
                    - happyhorse-1.1-t2v
                  example: happyhorse-1.1-t2v
                input:
                  type: object
                  required:
                    - prompt
                  properties:
                    prompt:
                      type: string
                      description: 视频描述。最多 5000 个非中文字符或 2500 个中文字符。
                      example: 夜晚，一座纸板搭建的微缩城市苏醒。
                parameters:
                  type: object
                  properties:
                    resolution:
                      type: string
                      enum:
                        - 720P
                        - 1080P
                      default: 1080P
                      description: 输出分辨率档位。
                    ratio:
                      type: string
                      enum:
                        - '16:9'
                        - '9:16'
                        - '1:1'
                        - '4:3'
                        - '3:4'
                        - '4:5'
                        - '5:4'
                        - '9:21'
                        - '21:9'
                      default: '16:9'
                      description: 输出视频宽高比。
                    duration:
                      type: integer
                      minimum: 3
                      maximum: 15
                      default: 5
                      description: 视频时长，单位为秒。
                    watermark:
                      type: boolean
                      default: true
                      description: 是否添加 HappyHorse 水印。
                    seed:
                      type: integer
                      minimum: 0
                      maximum: 2147483647
                      description: 随机种子。固定种子可提高可复现性，但不保证结果完全一致。
              example:
                model: happyhorse-1.1-t2v
                input:
                  prompt: 夜晚，一座纸板搭建的微缩城市苏醒。
                parameters:
                  resolution: 720P
                  ratio: '16:9'
                  duration: 5
                  watermark: false
      responses:
        '200':
          description: 任务创建成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskCreated'
        '400':
          description: 请求参数无效
        '401':
          description: 身份认证失败
        '429':
          description: 请求频率超限
components:
  schemas:
    TaskCreated:
      type: object
      properties:
        id:
          type: string
          example: asyntask_jwgfhsG0m2aDjLmiiELRf74eoWmss6ya
        task_id:
          type: string
          description: 用于查询任务状态的任务 ID。
          example: asyntask_jwgfhsG0m2aDjLmiiELRf74eoWmss6ya
        object:
          type: string
          example: video
        model:
          type: string
          example: happyhorse-1.1-t2v
        status:
          type: string
          example: queued
        progress:
          type: integer
          example: 0
        created_at:
          type: integer
          example: 1784520000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````