PopNowDocs API
Contenu principal

Référence API de MiniMax Speech 2.8 Turbo

Voix rapide, plus de 400 voix et contrôle des émotions

Une seule clé API PopNow suffit pour appeler MiniMax Speech 2.8 Turbo depuis votre code. Vous trouverez ici les identifiants de modèle à envoyer, chaque champ d’entrée accepté, le coût d’une requête en crédits et une requête à coller telle quelle dans un terminal.

Les descriptions des paramètres proviennent du schéma d’entrée du modèle et ne sont disponibles qu’en anglais.

En bref

Éditeur
MiniMax
Résultat
Audio
À partir de
10.8 crédits pour 1 000 caractères ($0.108)
Durée habituelle
environ 7 s

1 crédit = 0,01 $. À l’acceptation, une tâche réserve le montant maximal possible, puis facture la consommation réelle à la fin, arrondie au crédit supérieur ; le reste est libéré. Une tâche en échec n’est pas facturée. Pour connaître le montant exact avant de lancer, appelez POST /api/v1/jobs/quote.

Synthèse vocale

minimax/speech-2.8-turbo/text-to-speech

Prix

OptionCrédits (pour 1 000 caractères)Dollars US
Par défaut10.8$0.108

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
textObligatoirestring—jusqu’à 5 000 caractèresThe words to be spoken, exactly as written. Sound tags such as (sighs) or (laughs) are performed. Billed per 1,000 characters.
voice_idFacultatifstringCalm_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.
emotionFacultatifstringneutralneutral, happy, sad, angry, fearful, disgusted, surprisedEmotion of the reading.
speedFacultatifnumber1de 0.5 à 2Speaking rate; 1 is the voice's normal pace.
pitchFacultatifinteger0de -12 à 12Pitch shift in semitones; 0 keeps the voice's own pitch.
volumeFacultatifnumber1de 0.1 à 10Loudness multiplier; 1 is the normal level.
languageFacultatifstringautoauto, 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_formatFacultatifstringmp3mp3, wav, flac, pcmFile format of the result; pcm is headerless 16-bit little-endian samples.
sample_rateFacultatifinteger—8000, 16000, 22050, 24000, 32000, 44100Sample rate in Hz. The model uses 32000 when omitted.
bitrateFacultatifinteger—32000, 64000, 128000, 256000MP3 bitrate in bits per second; ignored for other formats. The model uses 128000 when omitted.
audio_channelsFacultatifstring—mono, stereoMono or stereo output. Mono when omitted.
english_normalizationFacultatifbooleanfalse—Read numbers, dates and abbreviations in English text the way a person would say them.
pronunciation_dictFacultatifarray<object>—jusqu’à 100 élémentsCustom pronunciations: each alias in the text is read as its pronunciation.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

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-turbo/text-to-speech",
  "input": {
    "text": "Hi there! This voice was created with the PopNow API in just a few seconds."
  }
}'

La réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

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"

Pour aller plus loin

Sur cette page