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

> Use `[Image 1]`, `[Image 2]`, and so on in the prompt to address images in `input.media` by array order.



## OpenAPI

````yaml 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: >-
    Generate a consistent video with synchronized audio from 1 to 9 reference
    images 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 reference-to-video task
      description: >-
        Use `[Image 1]`, `[Image 2]`, and so on in the prompt to address images
        in `input.media` by array order.
      operationId: createHappyhorse11R2v
      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: >-
                        Video description with optional `[Image N]` references.
                        Maximum 5,000 non-Chinese characters or 2,500 Chinese
                        characters.
                    media:
                      type: array
                      minItems: 1
                      maxItems: 9
                      description: >-
                        Reference images ordered to match `[Image N]` references
                        in the prompt.
                      items:
                        type: object
                        required:
                          - type
                          - url
                        properties:
                          type:
                            type: string
                            enum:
                              - reference_image
                          url:
                            type: string
                            description: >-
                              JPEG, JPG, PNG, or WEBP URL/Base64 data; up to 20
                              MB; shortest side at least 400 px.
                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: The woman in [Image 1] opens the folding fan from [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: 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:
    TaskCreated:
      type: object
      properties:
        id:
          type: string
          example: asyntask_jwgfhsG0m2aDjLmiiELRf74eoWmss6ya
        task_id:
          type: string
          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

````