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

> 在提示词中使用 `[Image 1]`、`[Image 2]` 等标识，按 `input.media` 数组顺序引用参考图。



## OpenAPI

````yaml zh/api-reference/model-api/alibaba/openapi/happyhorse-1.1-r2v/openapi.yaml POST /v1/video/generations
openapi: 3.1.0
info:
  title: HappyHorse 1.1 R2V
  description: 通过 AnyFast 异步视频接口，根据 1 至 9 张参考图生成主体一致且带同步音频的视频。
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/video/generations:
    post:
      summary: 创建参考生视频任务
      description: 在提示词中使用 `[Image 1]`、`[Image 2]` 等标识，按 `input.media` 数组顺序引用参考图。
      operationId: createHappyhorse11R2vZh
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              properties:
                model:
                  type: string
                  enum:
                    - happyhorse-1.1-r2v
                  example: happyhorse-1.1-r2v
                input:
                  type: object
                  required:
                    - prompt
                    - media
                  properties:
                    prompt:
                      type: string
                      description: 视频描述，可使用 `[Image N]` 引用参考图。最多 5000 个非中文字符或 2500 个中文字符。
                    media:
                      type: array
                      minItems: 1
                      maxItems: 9
                      description: 参考图片顺序必须与提示词中的 `[Image N]` 编号一致。
                      items:
                        type: object
                        required:
                          - type
                          - url
                        properties:
                          type:
                            type: string
                            enum:
                              - reference_image
                          url:
                            type: string
                            description: >-
                              JPEG、JPG、PNG 或 WEBP 的公网 URL/Base64 数据；不超过 20
                              MB；短边不低于 400 像素。
                parameters:
                  type: object
                  properties:
                    resolution:
                      type: string
                      enum:
                        - 720P
                        - 1080P
                      default: 1080P
                    ratio:
                      type: string
                      enum:
                        - '16:9'
                        - '9:16'
                        - '3:4'
                        - '4:3'
                        - '4:5'
                        - '5:4'
                        - '1:1'
                        - '9:21'
                        - '21:9'
                      default: '16:9'
                    duration:
                      type: integer
                      minimum: 3
                      maximum: 15
                      default: 5
                    watermark:
                      type: boolean
                      default: true
                    seed:
                      type: integer
                      minimum: 0
                      maximum: 2147483647
              example:
                model: happyhorse-1.1-r2v
                input:
                  prompt: '[Image 1]中的女性展开[Image 2]中的折扇。'
                  media:
                    - type: reference_image
                      url: https://example.com/person.jpg
                    - type: reference_image
                      url: https://example.com/fan.jpg
                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-r2v
        status:
          type: string
          example: queued
        progress:
          type: integer
          example: 0
        created_at:
          type: integer
          example: 1784520000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````