Model API'si
Eleven v4 Turbo Dialogue
Model kimliği
eleven-v4-turbo-dialogueÇalıştır
Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "eleven-v4-turbo-dialogue",
"input": {
"prompt": "A red ceramic cup on a wooden table, soft morning light"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "eleven-v4-turbo-dialogue", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"Girdi
| Alan | Tür | Açıklama |
|---|---|---|
promptzorunlu | string | Required. A JSON list of turns, each with a voice and the text it speaks: [{"voice": "sarah", "text": "[excited] Did you hear the news?"}, {"voice": "george", "text": "No, what happened?"}]. Voices: adam, alice, bella, bill, brian, callum, charlie, chris, daniel, eric, george, harry, jessica, laura, liam, lily, matilda, river, roger, sarah, will. Up to 2,000 characters of spoken text and 10 different voices. Audio tags such as [whispering], [laughing] or [excited] set the delivery. Priced per character of this field. |
outputFormat | string (enum) | Required. |
languageCode | string (enum) | Optional. Auto lets the model detect the language from the text. Choosing one makes it speak and read numbers and dates in that language. |
timestamps | string (enum) | Optional. When true, a JSON file is returned along with the audio, with the start and end time of every word, which voice speaks it, and the name of each voice. |
applyTextNormalization | string (enum) | Optional. Spells out numbers, dates and abbreviations before speaking them, e.g. "3/4" becomes "three quarters". Auto lets the model decide. |
stability | number | Optional. Controls how consistent the delivery is. Lower values are more expressive, higher values keep a steadier delivery. |
similarityBoost | number | Optional. How closely the output follows the reference voice. Higher values match it more closely but can sound less natural. |
seed | number | Optional. The same seed with the same settings gives a near identical result. Leave empty for a random result. |
Çıktı
Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.
"outputs": [
{ "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]Fiyatlandırma
- 1.000 karakter$0,07/ istek
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?