PopNowDocs de la API
Contenido principal

Referencia de la API de MiniMax Speech 2.8 HD

Voz de alta fidelidad con más de 400 voces y control emocional

Con una sola clave de API de PopNow puedes llamar a MiniMax Speech 2.8 HD desde tu propio código. Aquí tienes los ID de modelo que debes enviar, cada campo de entrada que acepta, cuánto cuesta cada solicitud en USD y una petición que puedes pegar tal cual en la terminal.

Las descripciones de los parámetros vienen del esquema de entrada del modelo y solo están en inglés.

De un vistazo

Creado por
MiniMax
Resultado
Audio
Desde
$0.12 USD por cada 1.000 caracteres
Tiempo habitual
unos 7 s

Los precios se muestran en USD y se cobran de tu saldo de PopNow. Al aceptar la tarea se reserva el importe máximo; al terminar se cobra el uso real y se libera el resto. Las tareas fallidas no se cobran. Consulta POST /api/v1/jobs/quote para obtener un presupuesto exacto antes de ejecutar.

Texto a voz

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

Precio

OpciónUSD
Predeterminado$0.12 por cada 1.000 caracteres

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
textObligatoriostring—hasta 5000 caracteresThe words to be spoken, exactly as written. Sound tags such as (sighs) or (laughs) are performed. Billed per 1,000 characters.
voice_idOpcionalstringCalm_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.
emotionOpcionalstringneutralneutral, happy, sad, angry, fearful, disgusted, surprisedEmotion of the reading.
speedOpcionalnumber1de 0.5 a 2Speaking rate; 1 is the voice's normal pace.
pitchOpcionalinteger0de -12 a 12Pitch shift in semitones; 0 keeps the voice's own pitch.
volumeOpcionalnumber1de 0.1 a 10Loudness multiplier; 1 is the normal level.
languageOpcionalstringautoauto, 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_formatOpcionalstringmp3mp3, wav, flac, pcmFile format of the result; pcm is headerless 16-bit little-endian samples.
sample_rateOpcionalinteger—8000, 16000, 22050, 24000, 32000, 44100Sample rate in Hz. The model uses 32000 when omitted.
bitrateOpcionalinteger—32000, 64000, 128000, 256000MP3 bitrate in bits per second; ignored for other formats. The model uses 128000 when omitted.
audio_channelsOpcionalstring—mono, stereoMono or stereo output. Mono when omitted.
english_normalizationOpcionalbooleanfalse—Read numbers, dates and abbreviations in English text the way a person would say them.
pronunciation_dictOpcionalarray<object>—hasta 100 elementosCustom pronunciations: each alias in the text is read as its pronunciation.

Solicitud de ejemplo

Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en 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 respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.

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"

Siguientes pasos

En esta página