PopNowAPI-Doku
Hauptinhalt

MiniMax Speech 2.8 HD API-Referenz

Sprache in HiFi-Qualität, 400+ Stimmen mit Emotionssteuerung

Mit einem einzigen PopNow-API-Schlüssel rufst du MiniMax Speech 2.8 HD aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in Credits und eine Anfrage, die du direkt ins Terminal kopieren kannst.

Die Parameterbeschreibungen stammen aus dem Eingabeschema des Modells und sind nur auf Englisch verfügbar.

Auf einen Blick

Hersteller
MiniMax
Ergebnis
Audio
Ab
18 Credits pro 1.000 Zeichen ($0.18)
Typische Dauer
etwa 9 s

1 Credit = 0,01 $. Bei Annahme reserviert ein Task den höchstmöglichen Betrag und rechnet am Ende den tatsächlichen Verbrauch ab, auf ganze Credits aufgerundet; der Rest wird freigegeben. Fehlgeschlagene Tasks kosten nichts. Den genauen Betrag vorab liefert POST /api/v1/jobs/quote.

Text zu Sprache

minimax/speech-2.8-hd/text-to-speech

Preis

OptionCredits (pro 1.000 Zeichen)US-Dollar
Standard18$0.18

Parameter

FeldTypStandardwertErlaubtBedeutung
textPflichtstring—bis zu 5.000 ZeichenThe words to be spoken, exactly as written. Sound tags such as (sighs) or (laughs) are performed. Billed per 1,000 characters.
voice_idOptionalstringCalm_WomanWise_Woman, Friendly_Person, Inspirational_girl, Deep_Voice_Man, Calm_Woman, Casual_Guy, Lively_Girl, Patient_Man, Young_Knight, Determined_Man, Lovely_Girl, Decent_Boy, Imposing_Manner, Elegant_Man, … (+458)System voice. The label shows the voice name and, where known, the language it is built for.
emotionOptionalstringneutralneutral, happy, sad, angry, fearful, disgusted, surprisedEmotion of the reading.
speedOptionalnumber10.5 bis 2Speaking rate; 1 is the voice's normal pace.
pitchOptionalinteger0-12 bis 12Pitch shift in semitones; 0 keeps the voice's own pitch.
volumeOptionalnumber10.1 bis 10Loudness multiplier; 1 is the normal level.
languageOptionalstringautoauto, zh, yue, en, ar, ru, es, fr, pt, de, tr, nl, uk, vi, … (+27)Language hint that improves pronunciation; auto detects it from the text.
output_formatOptionalstringmp3mp3, wav, flac, pcmFile format of the result; pcm is headerless 16-bit little-endian samples.
sample_rateOptionalinteger—8000, 16000, 22050, 24000, 32000, 44100Sample rate in Hz. The model uses 32000 when omitted.
bitrateOptionalinteger—32000, 64000, 128000, 256000MP3 bitrate in bits per second; ignored for other formats. The model uses 128000 when omitted.
audio_channelsOptionalstring—mono, stereoMono or stereo output. Mono when omitted.
english_normalizationOptionalbooleanfalse—Read numbers, dates and abbreviations in English text the way a person would say them.
pronunciation_dictOptionalarray<object>—bis zu 100 EinträgeCustom pronunciations: each alias in the text is read as its pronunciation.

Beispielanfrage

Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.

POST /api/v1/jobs/createTask?wait=60
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "minimax/speech-2.8-hd/text-to-speech",
  "input": {
    "text": "Hi there! This voice was created with the PopNow API in just a few seconds."
  }
}'

Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Weiter geht’s

Auf dieser Seite