> ## Documentation Index
> Fetch the complete documentation index at: https://evolink.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Minimax H3 Image-to-Video

> - Provide at least one of `image_start` or `image_end`; first-frame-only, last-frame-only, and first-and-last-frame modes are supported
- Output duration: `5`–`15` seconds; currently only `2k` is supported
- The input image determines the output ratio; `aspect_ratio` is treated as `adaptive`
- Asynchronous processing; use the returned task ID to [query status](/en/api-manual/task-management/get-task-detail)
- Generated video URLs are valid for 24 hours; save them promptly



## OpenAPI

````yaml en/api-manual/video-series/minimax/minimax-h3-image-to-video.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Minimax H3 Image-to-Video API
  description: >-
    Minimax H3 image-to-video API supporting first-frame, last-frame, and
    first-and-last-frame generation
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Video Generation
    description: AI video generation endpoints
paths:
  /v1/videos/generations:
    post:
      tags:
        - Video Generation
      summary: Minimax H3 Image-to-Video
      description: >-
        - Provide at least one of `image_start` or `image_end`;
        first-frame-only, last-frame-only, and first-and-last-frame modes are
        supported

        - Output duration: `5`–`15` seconds; currently only `2k` is supported

        - The input image determines the output ratio; `aspect_ratio` is treated
        as `adaptive`

        - Asynchronous processing; use the returned task ID to [query
        status](/en/api-manual/task-management/get-task-detail)

        - Generated video URLs are valid for 24 hours; save them promptly
      operationId: createMinimaxH3ImageToVideo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
            examples:
              first_frame:
                summary: First-frame image-to-video
                value:
                  model: minimax-h3-image-to-video
                  prompt: >-
                    Pull focus from the ramen bowl in the foreground to the
                    people in the background. More steam rises naturally from
                    the bowl as the camera gently pushes forward; preserve the
                    characters and restaurant setting.
                  image_start: >-
                    https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png
                  duration: 5
                  quality: 2k
              last_frame:
                summary: Last-frame image-to-video
                value:
                  model: minimax-h3-image-to-video
                  prompt: >-
                    Begin with a wide restaurant view and slowly push in as the
                    characters converse naturally. The ramen steam becomes
                    clearer, ending precisely on the composition and poses of
                    the supplied last frame.
                  image_end: >-
                    https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png
                  duration: 5
                  quality: 2k
              first_last_frame:
                summary: First-and-last-frame image-to-video
                value:
                  model: minimax-h3-image-to-video
                  prompt: >-
                    Slowly pull back from an extreme close-up of the character's
                    eye to reveal the complete restaurant. Keep the motion
                    continuous and transition precisely into the final-frame
                    composition.
                  image_start: >-
                    https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png
                  image_end: >-
                    https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1920&q=85
                  duration: 8
                  quality: 2k
      responses:
        '200':
          description: Video generation task created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_request
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: Unauthenticated, token invalid or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: Insufficient quota, top-up required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: insufficient_quota
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: model_access_denied
                  message: >-
                    Token does not have access to model:
                    minimax-h3-image-to-video
                  type: invalid_request_error
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limit_exceeded
                  message: Too many requests, please try again later
                  type: rate_limit_error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Internal server error
                  type: api_error
components:
  schemas:
    VideoGenerationRequest:
      type: object
      required:
        - model
        - prompt
      properties:
        model:
          type: string
          description: Video generation model name
          enum:
            - minimax-h3-image-to-video
          default: minimax-h3-image-to-video
          example: minimax-h3-image-to-video
        prompt:
          type: string
          minLength: 1
          description: >-
            Describe how the input image should move, how the camera should
            change, and the desired video content.


            **Prompt requirements:**

            - Required and cannot be empty

            - Chinese and English are supported

            - We recommend no more than `500` Chinese characters or `1000`
            English words; the model may ignore some details in an overly long
            prompt


            **Input restrictions:**

            - Use `image_start` and/or `image_end` to provide keyframes

            - `image_urls`, `video_urls`, and `audio_urls` are not supported;
            supplying them returns a parameter error
          example: >-
            Pull focus from the ramen bowl in the foreground to the people in
            the background. More steam rises naturally from the bowl as the
            camera gently pushes forward; preserve the characters and restaurant
            setting.
        image_start:
          type: string
          format: uri
          description: >-
            HTTP(S) URL of the first-frame image.


            **Combination rules:**

            - Provide at least one of `image_start` and `image_end`

            - `image_start` only: first-frame image-to-video

            - Both fields: first-and-last-frame image-to-video

            - At most `1` first frame; this field accepts one URL


            **Image requirements:**

            - Formats: JPG, JPEG, PNG, WEBP, HEIC, HEIF

            - File size: no more than `30MB`

            - Width and height: each from `256` to `5760` px

            - Aspect ratio (width/height): `0.4`–`2.5`

            - The URL must use HTTP(S) and be directly accessible by the service

            - The complete JSON request body must not exceed `64MB`; Base64 and
            `mm_file://` inputs are not accepted
          example: >-
            https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png
        image_end:
          type: string
          format: uri
          description: >-
            HTTP(S) URL of the last-frame image.


            **Combination rules:**

            - Provide at least one of `image_end` and `image_start`

            - `image_end` only: the model generates natural motion that ends on
            this frame

            - Both fields: first-and-last-frame image-to-video

            - At most `1` last frame; this field accepts one URL


            **Image requirements:**

            - Formats: JPG, JPEG, PNG, WEBP, HEIC, HEIF

            - File size: no more than `30MB`

            - Width and height: each from `256` to `5760` px

            - Aspect ratio (width/height): `0.4`–`2.5`

            - The URL must use HTTP(S) and be directly accessible by the service

            - The complete JSON request body must not exceed `64MB`; Base64 and
            `mm_file://` inputs are not accepted
          example: >-
            https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1920&q=85
        duration:
          type: integer
          description: |-
            Output video duration in seconds. Defaults to `5` seconds.

            **Value restrictions:**
            - Only integers from `5` through `15`, inclusive, are supported
            - Decimals, numeric strings, `auto`, and `-1` are not supported
            - Output duration directly affects billing
          default: 5
          minimum: 5
          maximum: 15
          example: 5
        quality:
          type: string
          description: >-
            Output video resolution. Defaults to `2k`.


            **Available value:**

            - `2k`: the only resolution currently supported


            **Notes:**

            - `768p` is not yet available and returns a parameter error

            - Output bitrate, frame rate, video codec, and audio codec are
            selected by the platform and are not configurable
          enum:
            - 2k
          default: 2k
          example: 2k
        callback_url:
          type: string
          description: >-
            HTTPS callback URL for task completion


            **Callback timing:**

            - Triggered when the task is completed or failed

            - Sent after billing confirmation is complete


            **Security restrictions:**

            - Only HTTPS protocol is supported

            - Callbacks to private IP addresses are prohibited (127.0.0.1,
            10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)

            - URL length must not exceed `2048` characters


            **Callback mechanism:**

            - Timeout: `10` seconds

            - Up to `3` retries after failure (at `1`/`2`/`4` seconds after
            failure respectively)

            - Callback response body format is consistent with the task query
            endpoint response format

            - A 2xx status code is considered successful; other status codes
            trigger retries
          format: uri
          example: https://your-domain.com/webhooks/video-task-completed
          pattern: ^https://
      additionalProperties: false
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: Task creation timestamp
          example: 1761313744
        id:
          type: string
          description: Task ID
          example: task-unified-1774857405-abc123
        model:
          type: string
          description: Actual model name used
          example: minimax-h3-image-to-video
        object:
          type: string
          enum:
            - video.generation.task
          description: Specific type of the task
        progress:
          type: integer
          description: Task progress percentage (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: Task status
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        task_info:
          $ref: '#/components/schemas/VideoTaskInfo'
          description: Video task details
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - video
          description: Output type of the task
          example: video
        usage:
          $ref: '#/components/schemas/VideoUsage'
          description: Usage and billing information
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code identifier
            message:
              type: string
              description: Error description message
            type:
              type: string
              description: Error type
    VideoTaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: >-
            Whether the task can be canceled. Minimax H3 tasks cannot be
            canceled; always `false`.
          example: false
          enum:
            - false
          default: false
        estimated_time:
          type: integer
          description: Estimated completion time (seconds)
          minimum: 0
          example: 165
        video_duration:
          type: integer
          description: Video duration (seconds)
          example: 8
    VideoUsage:
      type: object
      description: Usage and billing information
      properties:
        billing_rule:
          type: string
          description: Billing rule
          enum:
            - per_call
            - per_token
            - per_second
          example: per_second
        credits_reserved:
          type: number
          description: Estimated credits consumed
          minimum: 0
          example: 50
        user_group:
          type: string
          description: User group category
          example: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        ##All endpoints require Bearer Token authentication##


        **Get API Key:**


        Visit the [API Key Management Page](https://evolink.ai/dashboard/keys)
        to obtain your API Key


        **Add to request header:**

        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````