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
- Identifiants de modèle
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
| Option | Crédits (pour 1 000 caractères) | Dollars US |
|---|---|---|
Par défaut | 10.8 | $0.108 |
Paramètres
| Champ | Type | Valeur par défaut | Valeurs admises | Rôle |
|---|---|---|---|---|
textObligatoire | string | — | jusqu’à 5 000 caractères | The words to be spoken, exactly as written. Sound tags such as (sighs) or (laughs) are performed. Billed per 1,000 characters. |
voice_idFacultatif | string | Calm_Woman | Wise_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. |
emotionFacultatif | string | neutral | neutral, happy, sad, angry, fearful, disgusted, surprised | Emotion of the reading. |
speedFacultatif | number | 1 | de 0.5 à 2 | Speaking rate; 1 is the voice's normal pace. |
pitchFacultatif | integer | 0 | de -12 à 12 | Pitch shift in semitones; 0 keeps the voice's own pitch. |
volumeFacultatif | number | 1 | de 0.1 à 10 | Loudness multiplier; 1 is the normal level. |
languageFacultatif | string | auto | auto, 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_formatFacultatif | string | mp3 | mp3, wav, flac, pcm | File format of the result; pcm is headerless 16-bit little-endian samples. |
sample_rateFacultatif | integer | — | 8000, 16000, 22050, 24000, 32000, 44100 | Sample rate in Hz. The model uses 32000 when omitted. |
bitrateFacultatif | integer | — | 32000, 64000, 128000, 256000 | MP3 bitrate in bits per second; ignored for other formats. The model uses 128000 when omitted. |
audio_channelsFacultatif | string | — | mono, stereo | Mono or stereo output. Mono when omitted. |
english_normalizationFacultatif | boolean | false | — | Read numbers, dates and abbreviations in English text the way a person would say them. |
pronunciation_dictFacultatif | array<object> | — | jusqu’à 100 éléments | Custom 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.
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.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
