Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniMax (Hailuo) API examples (useapi.net)

Runnable Node.js examples for the MiniMax API by useapi.net — drive your own MiniMax / Hailuo account over a simple REST API. Generate Hailuo 01 / 02 / 2.3 video (plus Veo 3.1 and Sora 2 via MiniMax), Speech 2.8 narration with 600+ voices and voice cloning, and a deep image roster — Midjourney V7 / NiJi 7, Nano Banana 2 / Pro, GPT Image 1.5 / 2.0, Seedream 4.5 / 5.0, image-01 — all from one account with multi-account load balancing and no per-call metering.

Each example reads a list of prompts from a JSON file, submits them through the useapi.net MiniMax API, polls each task until it is final, and downloads every result — so you can queue a batch and come back to the winners.

Example What it does Tutorial
video/ Batch-generate Hailuo 01 / 02 / 2.3 video (plus Veo 3.1, Sora 2 and Seedance 2.0 via MiniMax) from text and/or image prompts, load-balanced across every connected account How to Generate AI Video with the MiniMax (Hailuo) API
speech/ Batch-generate Speech 2.8 narration — pick from 600+ voices or your own clones, steer emotion and pacing with inline markup, and download every MP3 How to Generate Text-to-Speech Audio with the MiniMax (Hailuo) API

Quick start

You need Node.js v21 or newer (no dependencies to install), a useapi.net API token, and a connected MiniMax account (one $15/month subscription covers every useapi.net API):

git clone https://github.com/useapi/minimax-api.git
cd minimax-api/video
node ./videos.mjs <API_TOKEN>

API_TOKEN is your useapi.net token. The video script discovers your connected MiniMax accounts and load-balances the batch automatically — no per-account email argument is needed. Edit videos.json to queue your own prompts. Every supported parameter is documented on the POST /videos/create endpoint page.

For speech instead of video:

cd minimax-api/speech
node ./speech.mjs <API_TOKEN> --voices british   # find a voice_id
node ./speech.mjs <API_TOKEN>                    # generate lines.json

Tutorials

Music has its own endpoints too — POST /music/create — but is not scripted in this repo yet. For a batch music example see mureka-api.

About useapi.net

useapi.net is an experimental REST API for AI services. The MiniMax API drives your own MiniMax / Hailuo account, so you spend your plan's credits at consumer rates instead of metered developer-API pricing. See the model matrix and pricing on the API overview.

Visit our Discord Server or Telegram Channel for any support questions and concerns.

We regularly post guides and tutorials on the YouTube Channel.

About

Runnable examples for the MiniMax (Hailuo) API by useapi.net — one account, REST access to Hailuo 01 / 02 / 2.3 video, Speech 2.8 text-to-speech and voice cloning, plus the frontier models MiniMax hosts: Midjourney V7, Veo 3.1, Sora 2, Nano Banana, GPT Image and Seedream. Multi-account load-balanced, no per-call metering.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages