跳至內容

Stable Audio 3 Medium Base Audio to Audio

整合

模型 id stable-audio-3/medium/base/audio-to-audio
# 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/stable-audio-3/medium/base/audio-to-audio?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# 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.053 53 API 點數 · ≈ ₽5.69 在此頁面執行

取得 API 金鑰
Stability AI 音訊 1–380 秒 #music#style-transfer#remix

Stable Audio 3 Medium 基礎檢查點的音訊轉音訊混音:使用提示詞重新塑造來源片段,最多 380 秒

Stability AI · 音訊

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

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

建立請求

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

•必填

描述要套用至來源音訊之轉換的文字指令。

•必填 audio_url
拖放檔案,或

用於轉換的輸入音訊。

預設 30

音訊長度,以秒計算;medium 模型的上限為 380 秒(約 6 分 20 秒)。

進階 negative_prompt · output_format · bitrate · num_inference_steps · guidance_scale · init_noise_level · seed · enable_prompt_expansion · enable_safety_checker
預設

指定輸出中不需要的特徵。

output_format 預設 mp3

結果音訊使用的容器格式。

預設 192k

輸出音訊位元率;使用 wav 或 flac 時會忽略,因為這些格式為無損格式。對於 mp3、aac 或 opus 等壓縮格式,請以 '192k' 或 '320k' 形式提供值。

預設 50

選擇要執行的取樣步數;使用基礎(非蒸餾)checkpoint 時,約 50 步可取得良好品質。

預設 7

無分類器引導強度;基礎 checkpoint 初始建議約為 7.0。提高此值會使生成結果更貼近提示詞。

預設 0.9

來源音訊噪音等級:0.1 保留與輸入內容的高度相似性,0.5 為中等程度,而 1.0 會將來源完全替換為噪音,以進行純生成。

用於產生可重現結果的隨機生成器種子;省略時會選擇隨機種子。

POST /run/stable-audio-3/medium/base/audio-to-audio?wait=20 報價 → $0.053
# 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/stable-audio-3/medium/base/audio-to-audio?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

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

關於 Stable Audio 3 Medium Base Audio to Audio

透過 `audio_url` 接受來源片段及文字 `prompt`,並產生轉換後的版本。`init_noise_level`(0 到 1)設定結果遵循輸入的程度,`duration` 接受 1 到 380 秒。這是非蒸餾檢查點,因此預設使用 50 個取樣步驟和引導比例 7。輸出格式可為 mp3、wav、flac、ogg、opus、m4a 或 aac。

參數

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

名稱類型 預設值允許值 說明
negative_prompt選填
類型string
預設值
指定輸出中不需要的特徵。
duration選填
類型number
預設值30
1 – 380
音訊長度,以秒計算;medium 模型的上限為 380 秒(約 6 分 20 秒)。
num_inference_steps選填
類型integer
預設值50
1 – 100
選擇要執行的取樣步數;使用基礎(非蒸餾)checkpoint 時,約 50 步可取得良好品質。
guidance_scale選填
類型number
預設值7
0 – 25
無分類器引導強度;基礎 checkpoint 初始建議約為 7.0。提高此值會使生成結果更貼近提示詞。
seed選填
類型integer | null
用於產生可重現結果的隨機生成器種子;省略時會選擇隨機種子。
enable_prompt_expansion選填
類型boolean
預設值false
啟用後使用 LLM 擴充提示詞,增加細節並提升結果品質。
enable_safety_checker選填
類型boolean
預設值true
NSFW 內容的安全檢查。
output_format選填
類型enum
預設值mp3
mp3wavflacoggopusm4aaac
結果音訊使用的容器格式。
bitrate選填
類型string
預設值192k
輸出音訊位元率;使用 wav 或 flac 時會忽略,因為這些格式為無損格式。對於 mp3、aac 或 opus 等壓縮格式,請以 '192k' 或 '320k' 形式提供值。
prompt必填
類型string
描述要套用至來源音訊之轉換的文字指令。
audio_url必填 audio
類型url · audio
用於轉換的輸入音訊。
init_noise_level選填
類型number
預設值0.9
0 – 1
來源音訊噪音等級:0.1 保留與輸入內容的高度相似性,0.5 為中等程度,而 1.0 會將來源完全替換為噪音,以進行純生成。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "stable-audio-3/medium/base/audio-to-audio",
  "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": 53,
    "usd": "0.053",
    "charged": 53,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  },
  "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
    },
    "seed": 42,
    "prompt": "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}生成產生的音訊片段。
seed
integer控制生成隨機性的種子。
prompt
string用於生成輸出的提示詞。

更多模型:音訊

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