Rivya AI 文件
模型 API 接入文件

ElevenLabs Dialogue V3 API 接入文件

透過 Rivya Public API v1 呼叫 ElevenLabs Dialogue V3,包含模型 ID elevenlabs-dialogue-v3、輸入類型、參數、Files API 規則、點數和回應範例。

API 可呼叫文字輸入可用音訊
API 模型 ID

elevenlabs-dialogue-v3

輸入類型

text

Files API

最小請求不需要

基礎點數

14

能力類型

音訊

計費方式

METERED

Prompt 上限

5000 字元

請求欄位

模型 ID 放在頂層欄位。模型專屬控制項放入 params。

Key類型必填預設值說明
modelstringelevenlabs-dialogue-v3使用 elevenlabs-dialogue-v3 作為 API 模型 ID。
promptstring-這個模型最多 5000 個字元。
paramsobject-模型專屬參數物件。可用 keys 請見下方參數表。
client_request_idstring-可選的用戶端請求 ID,方便你在自己的系統中追蹤請求。
params.dialoguearray-對話行陣列,每一項包含 voice 和 text。伺服器會用這個陣列建立任務 prompt。

模型參數

Key類型必填預設值範圍選項說明
default_voiceselectAdam-Adam, Alice, Bill, Brian, Callum, Charlie, Chris, Daniel, Eric, George, Harry, Jessica, Laura, Liam, Lily, Matilda, River, Roger, Sarah, Will預設語音
stabilityselect0.5-0, 0.5, 1穩定性
language_codetext---語言代碼

最小請求

{
  "model": "elevenlabs-dialogue-v3",
  "prompt": "A polished audio concept for a short product story",
  "params": {
    "default_voice": "Adam",
    "stability": "0.5",
    "dialogue": [
      {
        "voice": "Adam",
        "text": "Welcome to the product walkthrough."
      },
      {
        "voice": "Alice",
        "text": "Here is the short version for developers."
      }
    ]
  }
}

建立回應

建立 endpoint 會回傳公開 task id。繼續輪詢狀態 endpoint,直到任務成功或失敗。

{
  "id": "task_elevenlabs_dialogue_v3_example",
  "status": "queued",
  "model": "elevenlabs-dialogue-v3",
  "reserved_credits": 14,
  "final_credits": 0,
  "created_at": "2026-05-11T00:00:00.000Z",
  "updated_at": "2026-05-11T00:00:00.000Z",
  "result": null,
  "error": null
}

常見錯誤

validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found

建立 endpoint 會回傳公開 task id。繼續輪詢狀態 endpoint,直到任務成功或失敗。