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

# Hailuo H3

> Hailuo H3 (MiniMax-H3) text-to-video and image-to-video. Output is always 2K.

Pass `image_url` for a first frame, optionally with `image_end_url` for a last frame. For reference-driven generation use the `hailuo_h3_refs` model instead — first/last frames and reference assets are mutually exclusive.

**Pricing:** billed per second — 2K is 7.15 tokens/s ($0.143/s). 768P (4.95 tokens/s) is coming soon.

Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use `custom_callback_url`) to get the generated video.



## OpenAPI

````yaml api-reference/video-generations/openapi-hailuo-h3.json POST /api/v1/videos/generations
openapi: 3.1.0
info:
  title: GoEnhance API - Hailuo 2.3
  description: Video generation with Hailuo 2.3.
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security: []
paths:
  /api/v1/videos/generations:
    post:
      tags:
        - VideoGenerations
      summary: Hailuo H3
      description: >-
        Hailuo H3 (MiniMax-H3) text-to-video and image-to-video. Output is
        always 2K.


        Pass `image_url` for a first frame, optionally with `image_end_url` for
        a last frame. For reference-driven generation use the `hailuo_h3_refs`
        model instead — first/last frames and reference assets are mutually
        exclusive.


        **Pricing:** billed per second — 2K is 7.15 tokens/s ($0.143/s). 768P
        (4.95 tokens/s) is coming soon.


        Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use
        `custom_callback_url`) to get the generated video.
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: '{{Authorization}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - hailuo_h3
                  description: Model name. Must be `hailuo_h3`.
                prompt:
                  type: string
                  maxLength: 7000
                  description: >-
                    Text prompt describing the video. Required. Max 7000
                    characters.
                image_url:
                  type: string
                  format: uri
                  description: >-
                    Optional first-frame image. JPG/PNG/WEBP/HEIC/HEIF, ≤30MB,
                    256–5760px, aspect ratio 0.4–2.5. When provided, runs
                    image-to-video and the output ratio follows the image.
                image_end_url:
                  type: string
                  format: uri
                  description: >-
                    Optional last-frame image. Must be used together with
                    image_url.
                resolution:
                  type: string
                  enum:
                    - 2K
                  default: 2K
                  description: >-
                    Output resolution. Only 2K is available today; 768P is
                    coming soon.
                duration:
                  type: integer
                  minimum: 4
                  maximum: 15
                  default: 5
                  description: Video duration in seconds. Any integer from 4 to 15.
                ratio:
                  type: string
                  enum:
                    - '21:9'
                    - '16:9'
                    - '4:3'
                    - '1:1'
                    - '3:4'
                    - '9:16'
                  default: '16:9'
                  description: >-
                    Aspect ratio. Text-to-video only; ignored when image_url is
                    provided (the ratio then follows the input image).
                custom_callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional. A publicly accessible HTTPS URL. When the task
                    status changes (processing / success / failed), GoEnhance
                    sends a POST request to this URL. The request body is
                    identical to the response of GET /api/v1/jobs/detail. If
                    your server does not respond with HTTP 200, the notification
                    is retried up to 3 times, with a 3-second timeout per
                    attempt.
                  example: https://your-server.com/goenhance/callback
              required:
                - model
                - prompt
            example:
              model: hailuo_h3
              prompt: A boy playing basketball by the sea
              duration: 5
              ratio: '16:9'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      img_uuid:
                        type: string
                    required:
                      - img_uuid
                required:
                  - code
                  - msg
                  - data
              examples:
                '1':
                  summary: Success
                  value:
                    code: 0
                    msg: Success
                    data:
                      img_uuid: c12b656c-747a-44fd-9c80-add79b0c52d5
                '2':
                  summary: Insufficient tokens
                  value:
                    code: 100
                    msg: tokens is not enough
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                required:
                  - code
                  - msg
          headers: {}
      deprecated: false
      security: []

````