PopNowDocs API
Contenuto principale

Riferimento API di MiniMax Speech 2.8 HD

Voce ad alta fedeltà, oltre 400 voci con controllo delle emozioni

Con una sola chiave API di PopNow chiami MiniMax Speech 2.8 HD dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanto costa ogni richiesta in USD e una richiesta da incollare nel terminale così com’è.

Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.

In sintesi

Sviluppato da
MiniMax
Risultato
Audio
Da
$0.12 USD ogni 1.000 caratteri
Tempo tipico
circa 7 s

I prezzi sono indicati in USD e gli importi vengono addebitati sul tuo saldo PopNow. Alla ricezione viene riservato il massimo importo; al termine viene addebitato il consumo effettivo e il resto viene sbloccato. Le attività fallite non vengono addebitate. Per un preventivo esatto prima di eseguire, usa POST /api/v1/jobs/quote.

Sintesi vocale

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

Prezzo

OpzioneUSD
Predefinito$0.12 ogni 1.000 caratteri

Parametri

CampoTipoPredefinitoValori ammessiA cosa serve
textObbligatoriostring—fino a 5000 caratteriThe words to be spoken, exactly as written. Sound tags such as (sighs) or (laughs) are performed. Billed per 1,000 characters.
voice_idFacoltativostringCalm_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.
emotionFacoltativostringneutralneutral, happy, sad, angry, fearful, disgusted, surprisedEmotion of the reading.
speedFacoltativonumber1da 0.5 a 2Speaking rate; 1 is the voice's normal pace.
pitchFacoltativointeger0da -12 a 12Pitch shift in semitones; 0 keeps the voice's own pitch.
volumeFacoltativonumber1da 0.1 a 10Loudness multiplier; 1 is the normal level.
languageFacoltativostringautoauto, 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_formatFacoltativostringmp3mp3, wav, flac, pcmFile format of the result; pcm is headerless 16-bit little-endian samples.
sample_rateFacoltativointeger—8000, 16000, 22050, 24000, 32000, 44100Sample rate in Hz. The model uses 32000 when omitted.
bitrateFacoltativointeger—32000, 64000, 128000, 256000MP3 bitrate in bits per second; ignored for other formats. The model uses 128000 when omitted.
audio_channelsFacoltativostring—mono, stereoMono or stereo output. Mono when omitted.
english_normalizationFacoltativobooleanfalse—Read numbers, dates and abbreviations in English text the way a person would say them.
pronunciation_dictFacoltativoarray<object>—fino a 100 elementiCustom pronunciations: each alias in the text is read as its pronunciation.

Richiesta di esempio

Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in 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-hd/text-to-speech",
  "input": {
    "text": "Hi there! This voice was created with the PopNow API in just a few seconds."
  }
}'

La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.

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"

Passi successivi

In questa pagina