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

# Create a MiniMax video task

> Create a MiniMax H3 or MiniMax H3 Max task through the normalized GENGEN API.



## OpenAPI

````yaml openapi/minimax-video.yaml POST /contents/generations/tasks
openapi: 3.1.0
info:
  title: MiniMax video API
  version: 1.0.0
  description: >-
    Provider-specific GENGEN reference for MiniMax H3 and MiniMax H3 Max video
    generation.
servers:
  - url: https://gengen.farm/api/gengen/v1
    description: Production
security:
  - bearerAuth: []
paths:
  /contents/generations/tasks:
    post:
      summary: Create a MiniMax video task
      description: >-
        Create MiniMax H3 or H3 Max video through the normalized asynchronous
        GENGEN task API.
      operationId: createMiniMaxVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMiniMaxTaskRequest'
            examples:
              h3Reference:
                summary: MiniMax H3 with reference media
                value:
                  model: minimax-h3
                  mode: reference_to_video
                  prompt: >-
                    Keep the character consistent during a cinematic tracking
                    shot.
                  assets:
                    referenceImages:
                      - https://example.com/character.jpg
                    referenceAudio:
                      - https://example.com/dialogue.mp3
                  controls:
                    resolution: 2k
                    duration: 8
                    aspectRatio: '16:9'
              h3MaxFirstLast:
                summary: MiniMax H3 Max first and last frame
                value:
                  model: minimax-h3-max
                  mode: image_to_video
                  prompt: Move naturally between the supplied frames.
                  assets:
                    firstFrameImage: https://example.com/first.jpg
                    lastFrameImage: https://example.com/last.jpg
                  controls:
                    resolution: 768p
                    duration: 5
                    aspectRatio: adaptive
      responses:
        '200':
          description: The MiniMax task was accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoTask'
              example:
                id: minimaxh3:task_123
                model: minimax-h3
                status: pending
                outputs:
                  videos: []
                  images: []
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        default:
          $ref: '#/components/responses/UnexpectedError'
components:
  schemas:
    CreateMiniMaxTaskRequest:
      type: object
      required:
        - model
        - prompt
      additionalProperties: false
      properties:
        model:
          type: string
          enum:
            - minimax-h3
            - minimax-h3-max
        mode:
          type: string
          enum:
            - text_to_video
            - image_to_video
            - reference_to_video
          description: reference_to_video is available only for minimax-h3.
        prompt:
          type: string
          minLength: 1
          maxLength: 7000
        assets:
          $ref: '#/components/schemas/MiniMaxAssets'
        controls:
          $ref: '#/components/schemas/MiniMaxControls'
        providerOptions:
          type: object
          additionalProperties: false
          properties:
            minimax:
              type: object
              description: >-
                Advanced MiniMax compatibility fields. Prefer normalized fields
                for new integrations.
    VideoTask:
      type: object
      required:
        - id
        - model
        - status
        - outputs
      properties:
        id:
          type: string
        model:
          type: string
        status:
          type: string
          enum:
            - pending
            - processing
            - succeeded
            - failed
            - cancelled
        outputs:
          type: object
          required:
            - videos
            - images
          properties:
            videos:
              type: array
              items:
                type: string
                format: uri
            images:
              type: array
              items:
                type: string
                format: uri
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        failureReason:
          type: string
    MiniMaxAssets:
      type: object
      additionalProperties: false
      properties:
        firstFrameImage:
          type: string
          description: HTTPS URL, data URL, or Base64 image for image-to-video.
        lastFrameImage:
          type: string
          description: Optional final frame for image-to-video.
        referenceImages:
          type: array
          maxItems: 9
          items:
            type: string
        referenceVideos:
          type: array
          maxItems: 3
          description: >-
            Public HTTPS MP4 or MOV URLs; 2-15 seconds each and 15 seconds
            total.
          items:
            type: string
            format: uri
        referenceAudio:
          type: array
          maxItems: 3
          description: WAV or MP3 references; 2-15 seconds each and 15 seconds total.
          items:
            type: string
    MiniMaxControls:
      type: object
      additionalProperties: false
      properties:
        duration:
          type: integer
          minimum: 4
          maximum: 15
          description: H3 accepts 4-15; H3 Max accepts 5-15.
        resolution:
          type: string
          enum:
            - 480p
            - 768p
            - 2k
          description: H3 accepts 768p or 2k; H3 Max accepts 480p or 768p.
        aspectRatio:
          type: string
          enum:
            - adaptive
            - '21:9'
            - '16:9'
            - '4:3'
            - '1:1'
            - '3:4'
            - '9:16'
          description: >-
            Text-to-video requires an explicit non-adaptive ratio;
            image-to-video uses adaptive.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            params:
              type: object
              additionalProperties: true
  responses:
    BadRequest:
      description: Invalid model, mode, media combination, or control.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid GENGEN API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PaymentRequired:
      description: Insufficient wallet balance.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Request rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnexpectedError:
      description: Upstream provider or internal error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: GENGEN API key

````