Riferimento API di ElevenLabs v4
Voce ElevenLabs v4 con 21 voci e oltre 90 lingue, fino a 10.000 caratteri
Con una sola chiave API di PopNow chiami ElevenLabs v4 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
- ElevenLabs
- Risultato
- Audio
- Da
- $0.096 USD ogni 1.000 caratteri
- Tempo tipico
- circa 7 s
- ID del modello
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
elevenlabs/v4/text-to-speech
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.096 ogni 1.000 caratteri |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
textObbligatorio | string | — | fino a 10.000 caratteri | The words to speak. Audio tags such as [whispers] or [sighs] are performed, not read. Billed per 1,000 characters. Up to 10,000 characters; about 3,000 or fewer keeps a long read from being cut off. |
voice_idFacoltativo | string | Roger | Adam, Alice, Bella, Bill, Brian, Callum, Charlie, Chris, Daniel, Eric, George, Harry, Jessica, Laura, … (+7) | Preset voice. |
languageFacoltativo | string | auto | auto, af, am, ar, hy, as, ast, az, be, bn, bs, bg, my, yue, … (+78) | Language to enforce, as an ISO code, or auto to detect it from the text. |
stabilityFacoltativo | number | 0.5 | da 0 a 1 | How steady the delivery is, 0 to 1. Lower is more expressive and more variable. |
similarity_boostFacoltativo | number | 0.75 | da 0 a 1 | How closely the speech follows the selected voice, 0 to 1. |
output_formatFacoltativo | string | mp3_44100_128 | mp3_44100_128, mp3_44100_64, mp3_22050_32, opus_48000_128, pcm_24000, pcm_16000, wav_44100, ulaw_8000, alaw_8000 | Audio container, sample rate and bitrate. pcm is raw audio without a file header. |
text_normalization_modeFacoltativo | string | auto | auto, on, off | Whether numbers, dates and abbreviations are spelled out before reading. |
clone_strengthFacoltativo | number | — | da 0 a 1 | Strength of a professional voice clone, 0 to 1. Has no effect on preset voices. |
seedFacoltativo | integer | — | da 0 a 4294967295 | Random seed for controlled comparisons. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in 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": "elevenlabs/v4/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.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
