PromptFlow AI
API docs

minimax-nhan-ban-giong-noi

MiniMax · Voice Cloning — Convert text into expressive AI voiceovers with studio-quality natural pauses using MiniMax · Voice Cloning — accepts audio sample/sample voice files.

SV21 (sv21) · healthyid: minimax-nhan-ban-giong-noitype: giong-noi-aioutput: audio0.2921 credits
Available packages & servers (SV) for model minimax-nhan-ban-giong-noiGET /api/v1/models/minimax-nhan-ban-giong-noi/servers

Detailed API pricing by parameter configuration

Actual unit price (credits) deducted from your wallet when calling POST /v1/generations (or check it in advance with POST /v1/generations/estimate).

0.2921 credits
1 video:0.2921 credits / video

Input — request parameters

POST/v1/generations

Send JSON in the standard structure "model": "minimax-nhan-ban-giong-noi", "server": "sv21" and the parameters below at the same level. Parameters not listed in the table are rejected (400).

ParameterTypeSupported valuesDescription
modelrequiredstringminimax-nhan-ban-giong-noiThe package ID itself or the canonical model line ID (combined with the server selection parameter below).
serverstringsv21autoPins the server (SV) that runs the order (the alias server_id is also accepted), or auto to pick the best-priced healthy server automatically. Check live servers via GET /v1/models/minimax-nhan-ban-giong-noi/servers.
promptstring

Up to 4,000 characters

Text to read aloud
p_input_audio_urlrequiredstring (URL audio)
Voice sample — 10 seconds – 5 minutes, single speaker, low background noise. Up to 80MB
p_voice_namerequiredstring

Up to 2,000 characters

Voice name — Name displayed under "Your Voices" in the MiniMax voice selector
p_language_tagrequiredenum
AfrikaansArabicBulgarianCantoneseCatalanChinese (Mandarin)CroatianCzechDanishDutchEnglishFilipinoFinnishFrenchGermanGreekHebrewHindiHungarianIndonesianItalianJapaneseKoreanMalayNorwegianNynorskPersianPolishPortugueseRomanianRussianSlovakSlovenianSpanishSwedishTamilThaiTurkishUkrainianVietnamese

Default: Vietnamese

Sample language — Set “Sample language” for the generation request.
p_genderrequiredenum
MaleFemale

Default: Male

Gender — Set “Gender” for the generation request.
p_need_noise_reductionboolean

true, false

Default: true

Filter background noise — Set “Filter background noise” for the generation request.
p_preview_textstring

Up to 2,000 characters

Sample text — Up to 200 characters. Leave blank to read a default greeting
p_voice_consentboolean

true, false

Default: false

This is my voice, or the voice owner has authorized me to clone it — Set “This is my voice, or the voice owner has authorized me to clone it” for the generation request.
  • File parameters (string URL) accept a public http(s) link — the server downloads it — or a URL returned by the file upload API POST /account/ai/uploads.
  • Optional parameters left blank use their default values. You can also send an Idempotency-Key header to retry safely without being charged twice.

Sample request (cURL)

curl -X POST https://promptflow.web.id/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-nhan-ban-giong-noi",
  "server": "sv21",
  "prompt": "An astronaut cat",
  "p_input_audio_url": "https://example.com/audio.mp3",
  "p_voice_name": "...",
  "p_language_tag": "Vietnamese",
  "p_gender": "Male",
  "p_need_noise_reduction": true,
  "p_voice_consent": false
}'

Complete integration code sample (Upload file → Create job → Poll result)

Python 3

import os, time, requests

BASE = "https://promptflow.web.id/api"
API_KEY = os.environ["API_KEY"]
HEADERS = {"X-API-Key": API_KEY}

with open("./input.mp3", "rb") as f:
    up_res = requests.post(f"{BASE}/account/ai/uploads", headers=HEADERS, files={"file": f}, timeout=120)
up = up_res.json()
if not up_res.ok:
    raise RuntimeError(up.get("message") or up_res.text)

payload = {
    "model": "minimax-nhan-ban-giong-noi",
    "server": "sv21",
    "prompt": "An astronaut cat",
    "p_voice_name": "...",
    "p_language_tag": "Vietnamese",
    "p_gender": "Male",
    "p_need_noise_reduction": True,
    "p_voice_consent": False
}
payload["p_input_audio_url"] = up["url"]

r = requests.post(f"{BASE}/v1/generations", headers=HEADERS, json=payload, timeout=60)
gen = r.json()
if not r.ok:
    raise RuntimeError(gen.get("message") or r.text)

while gen.get("status") in ("queued", "processing"):
    time.sleep(5)
    gen = requests.get(f"{BASE}/v1/generations/{gen['id']}", headers=HEADERS, timeout=60).json()

if gen.get("status") != "succeeded":
    raise RuntimeError(gen.get("error") or gen.get("status"))
print("Result:", [f["url"] for f in gen["output"]["files"]])

Node.js (18+)

import fs from "node:fs";
import path from "node:path";

const BASE = "https://promptflow.web.id/api";
const API_KEY = process.env.API_KEY; // get it on the /api-keys page

// Step 1: Upload the local input file to the server (or use a public https link directly)
const form = new FormData();
form.append("file", new Blob([fs.readFileSync("./input.mp3")]), path.basename("./input.mp3"));
const upRes = await fetch(`${BASE}/account/ai/uploads`, {
  method: "POST",
  headers: { "X-API-Key": API_KEY },
  body: form,
});
const up = await upRes.json();
if (!upRes.ok) throw new Error(up.message || upRes.statusText);

// Step 2: Create the job with the URL of the file you just uploaded
const createRes = await fetch(`${BASE}/v1/generations`, {
  method: "POST",
  headers: { "X-API-Key": API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    ...{
  "model": "minimax-nhan-ban-giong-noi",
  "server": "sv21",
  "prompt": "An astronaut cat",
  "p_voice_name": "...",
  "p_language_tag": "Vietnamese",
  "p_gender": "Male",
  "p_need_noise_reduction": true,
  "p_voice_consent": false
},
    p_input_audio_url: up.url,
  }),
});
let gen = await createRes.json();
if (!createRes.ok) throw new Error(gen.message || createRes.statusText);

// Step 3: Wait for the result
while (["queued", "processing"].includes(gen.status)) {
  await new Promise((r) => setTimeout(r, 5000));
  gen = await fetch(`${BASE}/v1/generations/${gen.id}`, { headers: { "X-API-Key": API_KEY } }).then((r) => r.json());
}
if (gen.status !== "succeeded") throw new Error(gen.error ?? gen.status);
console.log("Result:", gen.output.files.map((f) => f.url));

Output — response

Jobs run asynchronously. POST /v1/generations immediately returns a generation object with status queued or processing; poll GET /v1/generations/{id} every 5–10 seconds until status is succeeded, failed or cancelled.

GET/v1/generations/{id}
{
  "id": "3f1c...-uuid",
  "object": "generation",
  "code": "T8KQ2M4X",
  "model": "minimax-nhan-ban-giong-noi",
  "canonical_model": "minimax-nhan-ban-giong-noi",
  "server_id": "sv21",
  "server_name": "SV21",
  "status": "succeeded",       // queued | processing | succeeded | failed | cancelled
  "progress": 100,
  "cost": 2400,                // amount charged
  "currency": "CREDITS",
  "refunded": false,
  "output": {
    "type": "audio",
    "files": [{ "url": "https://promptflow.web.id/uploads/ai/outputs/....mp3", "type": "audio", "name": "audio.mp3" }],
    "text": null
  },
  "error": null,
  "created_at": "2026-10-30T08:00:00.000Z",
  "completed_at": "2026-10-30T08:01:12.000Z"
}
FieldMeaning
model / server_idThe exact package ID and server (SV) that executed the task.
output.files[].urlResult file links — download them to your own system; files on our server may be cleaned up after some time.
output.textText content (only for models that return text).
costAmount in credits charged to your balance; refunded automatically on failure or cancellation (refunded = true).
errorError reason when status = failed.

Get a quote before running

POST/v1/generations/estimate

Same body as POST /v1/generations, without running or charging (your account's personal discount %, if any, is applied automatically).

# => {
#   "object": "estimate",
#   "model": "minimax-nhan-ban-giong-noi",
#   "canonical_model": "minimax-nhan-ban-giong-noi",
#   "server_id": "sv21",
#   "server_name": "SV21",
#   "cost": 2400,
#   "currency": "CREDITS"
# }
Get an API key
minimax-nhan-ban-giong-noi · API docs | PromptFlow AI