跳至內容

Sonilo V1.1 Video to Sound Effects

整合

模型 id sonilo/v1.1/video-to-sound-effects
# 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/sonilo/v1.1/video-to-sound-effects?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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.09 90 API 點數 · ≈ ₽9.67 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Sonilo · 音訊

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

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

建立請求

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

可選的音效指引,會套用於所有場景並取代自動影片字幕。描述所需音訊,或留空以使用自動字幕。

•必填 video_url
拖放檔案,或

透過檔案上傳或公開 URL 提供的影片,用於生成音效;影片長度會決定生成音訊的長度。

進階 audio_format · keep_speech_vocal · segments
audio_format 預設 aac

獨立音訊格式,可選擇 wav、mp3、aac 或 flac,預設使用 aac。此選擇不會變更影片的音訊編碼,影片一律使用 AAC。

可選的手動場景分割,以時間範圍及個別音效描述指定;空值則改用自動場景偵測。

POST /run/sonilo/v1.1/video-to-sound-effects?wait=20 報價 → $0.09
# 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/sonilo/v1.1/video-to-sound-effects?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 金鑰

關於 Sonilo V1.1 Video to Sound Effects

根據 `video_url` 影片中的事件加入同步音效。可選的 `prompt` 可引導音效,`segments` 可為不同時間範圍指定個別描述。`audio_format` 可為 wav、mp3、aac 或 flac。啟用 `keep_speech_vocal` 後,原始語音會被隔離並保留在混音中。

參數

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

名稱類型 預設值允許值 說明
video_url必填 video
類型url · video
透過檔案上傳或公開 URL 提供的影片,用於生成音效;影片長度會決定生成音訊的長度。
prompt選填
類型string | null
可選的音效指引,會套用於所有場景並取代自動影片字幕。描述所需音訊,或留空以使用自動字幕。
segments選填
類型object[]
可選的手動場景分割,以時間範圍及個別音效描述指定;空值則改用自動場景偵測。
segments[].start選填
類型number
預設值0
≥ 0
第一個區段的起始位置必須為 0。所有起始時間皆以相對於影片開頭的秒數計算。
segments[].end選填
類型number
預設值0
≥ 0
區段結束位置,以秒計算;最後一個區段受影片長度限制。對於所有較早的區段,此位置必須與下一個區段的起始位置相同,以避免間隙或重疊。
segments[].prompt選填
類型string
預設值
區段音效或擬音的描述。
audio_format選填
類型enum
預設值aac
wavmp3aacflac
獨立音訊格式,可選擇 wav、mp3、aac 或 flac,預設使用 aac。此選擇不會變更影片的音訊編碼,影片一律使用 AAC。
keep_speech_vocal選填
類型boolean
預設值false
同時影響音訊與影片輸出的語音/人聲保留開關;預設停用時,結果只包含生成的音效。啟用後會使用音樂源分離來隔離原始人聲、捨棄原始音樂與環境音,並將生成的音效與未變更的人聲錄音混合,使其音量與人聲相符。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sonilo/v1.1/video-to-sound-effects",
  "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": 90,
    "usd": "0.09",
    "charged": 90,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    },
    "audios": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
        "content_type": "audio/mpeg",
        "file_name": "0-output.mp3",
        "file_size": 1843200
      }
    ],
    "segments": [
      {
        "index": 1,
        "start": 1.0,
        "end": 1.0,
        "meta": {
          "tags": [],
          "skipped": false,
          "skip_reason": "string"
        }
      }
    ]
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "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 是模型自己的結果物件。
輸出欄位
audio
object {url, content_type, file_name, file_size}以所選音訊格式編碼的生成聲音。
audios
array of object {url, content_type, file_name, file_size}生成音效的完整集合,每個 sample 各包含一個音效。
segments
array of object {index, start, end, meta}用於生成音訊的區段,依其在來源影片中的順序列出。

更多模型:影片轉音訊

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/sonilo/v1.1/video-to-sound-effects.md. 所有模型與指南: https://doitong.com/developers/llms.txt