Model API'si

Eleven v4 Turbo Dialogue

Model kimliği

Her istekte bunu kullan
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

eleven-v4-turbo-dialogue girdi alanları
AlanTürAçıklama
promptzorunlustring
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.
outputFormatstring (enum)
Required.

Varsayılan: mp3_44100_128

Seçenekler: mp3_22050_32, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128

languageCodestring (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.

Varsayılan: auto

timestampsstring (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.

Varsayılan: false

Seçenekler: false, true

applyTextNormalizationstring (enum)
Optional. Spells out numbers, dates and abbreviations before speaking them, e.g. "3/4" becomes "three quarters". Auto lets the model decide.

Varsayılan: auto

Seçenekler: auto, on, off

stabilitynumber
Optional. Controls how consistent the delivery is. Lower values are more expressive, higher values keep a steadier delivery.

Varsayılan: 0.5

similarityBoostnumber
Optional. How closely the output follows the reference voice. Higher values match it more closely but can sound less natural.

Varsayılan: 0.75

seednumber
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.

İş yanıtından bir bölüm
"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?