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

> Submit a HappyHorse 1.1 first-frame image-to-video task. The output approximately preserves the input image aspect ratio.



## OpenAPI

````yaml api-reference/model-api/alibaba/openapi/happyhorse-1.1-i2v/openapi.yaml POST /v1/video/generations
openapi: 3.1.0
info:
  title: HappyHorse 1.1 I2V
  description: >-
    Generate a video with synchronized audio from one first-frame image 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 an image-to-video task
      description: >-
        Submit a HappyHorse 1.1 first-frame image-to-video task. The output
        approximately preserves the input image aspect ratio.
      operationId: createHappyhorse11I2v
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              properties:
                model:
                  type: string
                  enum:
                    - happyhorse-1.1-i2v
                  example: happyhorse-1.1-i2v
                input:
                  type: object
                  required:
                    - media
                  properties:
                    prompt:
                      type: string
                      description: >-
                        Motion and camera description. Maximum 5,000 non-Chinese
                        characters or 2,500 Chinese characters.
                      example: >-
                        The cat runs across the grass as the camera follows
                        smoothly.
                    media:
                      type: array
                      minItems: 1
                      maxItems: 1
                      description: >-
                        Exactly one first-frame image. Supports a public URL or
                        Base64 data URL.
                      items:
                        type: object
                        required:
                          - type
                          - url
                        properties:
                          type:
                            type: string
                            enum:
                              - first_frame
                          url:
                            type: string
                            description: >-
                              JPEG, JPG, PNG, or WEBP; up to 20 MB; both
                              dimensions at least 300 px; aspect ratio from
                              1:2.5 to 2.5:1.
                parameters:
                  type: object
                  properties:
                    resolution:
                      type: string
                      enum:
                        - 720P
                        - 1080P
                      default: 1080P
                    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-i2v
                input:
                  prompt: >-
                    The cat runs across the grass as the camera follows
                    smoothly.
                  media:
                    - type: first_frame
                      url: https://example.com/cat.png
                parameters:
                  resolution: 720P
                  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-i2v
        status:
          type: string
          example: queued
        progress:
          type: integer
          example: 0
        created_at:
          type: integer
          example: 1784520000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````