跳至內容

ElevenLabs Dubbing

整合

模型 id elevenlabs/dubbing
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/elevenlabs/dubbing?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target_lang": "es"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

像範例一樣的檔案: $0.60 600 API 點數 · ≈ ₽64.55 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
ElevenLabs 唇形同步與虛擬角色 唇形同步 #dubbing#audio-to-audio

將音訊或影片檔案配音為目標語言,並可選擇來源語言與說話者數量

ElevenLabs · 影片

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

video_url
拖放檔案,或

配音影片 URL;兩者皆提供時優先使用此 URL,而非 `audio_url`。請求必須包含 `video_url`、`audio_url` 或兩者。

•必填

配音目的語言,以 ISO 639-1 代碼指定。

進階 audio · source_lang · num_speakers · highest_resolution
audio_url
拖放檔案,或

用於配音的音訊檔案 URL。至少提供 `audio_url` 和 `video_url` 其中之一。

識別來源語言的代碼;省略時會自動偵測。

留空可讓模型偵測音訊包含的說話者數量,或明確提供說話者數量。

POST /run/elevenlabs/dubbing?wait=20 報價 → $0.60
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/elevenlabs/dubbing?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target_lang": "es"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 ElevenLabs Dubbing

將語音內容翻譯成其他語言。必須提供 `target_lang`,並提供 `audio_url` 或 `video_url` 其中一項;若兩者皆提供,會使用影片。省略 `source_lang` 時會自動偵測,`num_speakers`(1 到 50)可手動設定。回傳配音音訊;若提供影片,也會回傳配音影片。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
audio_url選填 audio
類型url · audio
用於配音的音訊檔案 URL。至少提供 `audio_url` 和 `video_url` 其中之一。
video_url選填 video
類型url · video
配音影片 URL;兩者皆提供時優先使用此 URL,而非 `audio_url`。請求必須包含 `video_url`、`audio_url` 或兩者。
target_lang必填
類型string
配音目的語言,以 ISO 639-1 代碼指定。
source_lang選填
類型string | null
識別來源語言的代碼;省略時會自動偵測。
num_speakers選填
類型integer | null
1 – 50
留空可讓模型偵測音訊包含的說話者數量,或明確提供說話者數量。
highest_resolution選填
類型boolean
預設值true
控制配音是否使用可用的最高解析度。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "elevenlabs/dubbing",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 600,
    "usd": "0.60",
    "charged": 600,
    "refunded": 0
  },
  "input": {
    "target_lang": "es"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "target_lang": "es"
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
video
object {url, content_type, file_name, file_size} | null請求包含 `video_url` 時,此欄位包含配音後的影片檔案。
audio
object {url, content_type, file_name, file_size} | null包含配音內容的音訊檔案。
target_lang
string配音內容使用的目的語言。

更多模型:唇形同步與虛擬角色

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/elevenlabs/dubbing.md. 所有模型與指南: https://doitong.com/developers/llms.txt