Référence API de MiniMax Speech 2.8 Turbo
Synthèse vocale 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 USD 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
- $0.072 USD pour 1 000 caractères
- Durée habituelle
- environ 6 s
- Identifiants de modèle
Les prix sont affichés en USD et les frais sont déduits de votre solde PopNow. Le montant maximal est réservé à la réception de la tâche, puis la consommation réelle est facturée à la fin et le solde libéré. Les tâches en échec ne sont pas facturées. Obtenez un devis exact avant de lancer avec POST /api/v1/jobs/quote.
Synthèse vocale
minimax/speech-2.8-turbo/text-to-speech
Prix
| Option | USD |
|---|---|
Par défaut | $0.072 pour 1 000 caractères |
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"
