YepAPI
AI Models

MiniMax H3

MiniMax H3 API. MiniMax's newest video model: text-to-video and image-to-video at 2K, 5-15 seconds.

Pricing, live playground and model overview: MiniMax H3 API on YepAPI

POST/v1/media/queue
from $0.221/second

Overview

MiniMax H3 — MiniMax's newest video model, generating 2K clips of 5–15 seconds from text or an image. Async operation — submit a job, poll for completion.

PropertyValue
Model IDminimax/minimax-h3
Aliasminimax-h3
ProviderMiniMax
Inputstext-to-video, image-to-video
Resolutions2K
Aspect Ratiosauto, adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16
Duration5–15 seconds
Audio GenerationNot supported
BillingPer job — priced when queued, charged only on success
Pricingfrom $0.221/second

Usage

All media models use the async job queue. Submit a job, then poll for the result.

Step 1: Submit Job

Text-to-Video

options.params passes this model's own parameters (see Model parameters).

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'minimax/minimax-h3',
    prompt: 'A cinematic drone shot over a rugged coastline at golden hour',
    options: {
      aspectRatio: 'auto',
      resolution: '2K',
      duration: '5',
      params: {
        aigc_watermark: false,
      },
    },
  }),
});
const { data } = await res.json();
// data.jobId — use this to poll for results
curl -X POST https://api.yepapi.com/v1/media/queue \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "minimax/minimax-h3", "prompt": "A cinematic drone shot over a rugged coastline", "options": {"aspectRatio": "auto", "resolution": "2K", "duration": "5", "params": {"aigc_watermark": false}}}'

Image-to-Video

Pass a reference image via imageData. By default it is the first frame; set options.imageRole to last_frame to make it the final frame instead.

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'minimax/minimax-h3',
    prompt: 'Animate this scene — clouds drifting, light changing',
    options: {
      resolution: '2K',
      duration: '5',
      imageRole: 'first_frame',
    },
    imageData: {
      mimeType: 'image/jpeg',
      base64: '...', // Base64-encoded image
    },
  }),
});
curl -X POST https://api.yepapi.com/v1/media/queue \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "minimax/minimax-h3", "prompt": "Animate this scene — clouds drifting, light changing", "options": {"resolution": "2K", "duration": "5", "imageRole": "first_frame"}, "imageData": {"mimeType": "image/jpeg", "base64": "..."}}'

Step 2: Poll for Result

const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
  headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.video — { mimeType, base64 } when completed
curl https://api.yepapi.com/v1/media/status/JOB_ID \
  -H "x-api-key: YOUR_API_KEY"

Request Body

ParameterTypeRequiredDescriptionDefault
modelstringYesminimax/minimax-h3 or alias minimax-h3—
promptstringYesText description of the video to generate—
options.aspectRatiostringNoOne of: auto, adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16auto
options.resolutionstringNo2K2K
options.durationstring or numberNo5 to 15 (seconds)5
options.imageRolestringNoHow to use the input image: first_frame or last_framefirst_frame
options.paramsobjectNoModel-specific parameters under their own names: aigc_watermark. Unknown names return 400—
imageData.mimeTypestringNoMIME type of input image (image/png, image/jpeg, image/webp)—
imageData.base64stringNoBase64-encoded input image for image-to-video generation—

Options are validated when you submit: an unsupported duration, resolution or value returns 400 naming the allowed values.

Model parameters

Pass these inside options.params.

ParameterTypeAllowedDescriptionDefault
aigc_watermarkboolean—Add the maker's AI-generated-content watermarkfalse

Features

  • Text-to-video and image-to-video
  • 2K output, 5–15 seconds
  • Aspect ratios from 21:9 to 9:16, or auto / adaptive
  • First or last frame from imageData

Pricing

Tier≈ Cost/sec5-second video
2K$0.221$1.11

Prices shown are for a 5-second clip at the default settings; longer clips cost proportionally more. Each job is priced when it's queued — the exact quote for your duration, resolution and options — and charged only if it succeeds. Failed or moderated jobs are free.

Info

Video jobs can take several minutes to complete. When capacity is busy, jobs wait in the queue (status stays pending or processing) — no action needed. Results retained for 1 hour.

Under the Hood

Powered by MiniMax's MiniMax H3 via our AI provider.

On this page