> ## 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 Text-to-Video

> - Generate video from a non-empty text prompt
- Output duration: `5`–`15` seconds; currently only `2k` is supported
- Image, video, and audio inputs are not supported
- 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-text-to-video.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Minimax H3 Text-to-Video API
  description: Minimax H3 text-to-video API for generating 2K video from a text prompt
  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 Text-to-Video
      description: >-
        - Generate video from a non-empty text prompt

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

        - Image, video, and audio inputs are not supported

        - 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: createMinimaxH3TextToVideo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
            examples:
              basic:
                summary: Basic text-to-video
                value:
                  model: minimax-h3-text-to-video
                  prompt: >-
                    Epic space-opera theatrical teaser: a female captain stands
                    alone before a massive observation window as the last fleet
                    gathers outside. The fleet jumps away in a blinding flash
                    and the bridge shakes; when the light fades, she is left
                    alone in silent deep space. Cinematic lighting, slow
                    dolly-in, grand yet restrained mood.
                  duration: 5
                  quality: 2k
                  aspect_ratio: '16:9'
      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-text-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-text-to-video
          default: minimax-h3-text-to-video
          example: minimax-h3-text-to-video
        prompt:
          type: string
          minLength: 1
          description: >-
            Describe the video you want to generate.


            **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:**

            - This is a text-to-video model and accepts text input only

            - `image_start`, `image_end`, `image_urls`, `video_urls`, and
            `audio_urls` are not supported

            - Supplying any of these media fields returns a parameter error
          example: >-
            Epic space-opera theatrical teaser: a female captain stands alone
            before a massive observation window as the last fleet gathers
            outside. The fleet jumps away in a blinding flash and the bridge
            shakes; when the light fades, she is left alone in silent deep
            space. Cinematic lighting, slow dolly-in, grand yet restrained mood.
        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
        aspect_ratio:
          type: string
          description: |-
            Output video aspect ratio. Defaults to `adaptive`.

            **Available values:**
            - `adaptive`: the model selects a suitable ratio from the prompt
            - `21:9`: ultrawide
            - `16:9`: landscape
            - `4:3`: standard landscape
            - `1:1`: square
            - `3:4`: standard portrait
            - `9:16`: portrait
          enum:
            - adaptive
            - '21:9'
            - '16:9'
            - '4:3'
            - '1:1'
            - '3:4'
            - '9:16'
          default: adaptive
          example: adaptive
        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-text-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

        ```

````