s2-pro API
Fish Audio / Fish Audio
透過 RunAPI 使用 Fish Audio 系列的 s2-pro。按次收費,無需訂閱,失敗的生成不扣費。
可正常運作
·
audio_music
·
可商用
curl -X POST https://runapi.ai/api/v1/fish_audio/text_to_speech \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "s2-pro",
"text": "將呢段短篇紀錄片旁白轉成自然、富表現力而且節奏一致嘅語音。"
}'
import { FishAudioClient } from "@runapi.ai/fish-audio";
const client = new FishAudioClient();
const result = await client.textToSpeech.run({
model: "s2-pro",
text: "將呢段短篇紀錄片旁白轉成自然、富表現力而且節奏一致嘅語音。",
});
require "runapi/fish_audio"
client = RunApi::FishAudio::Client.new
result = client.text_to_speech.run(
model: "s2-pro",
text: "將呢段短篇紀錄片旁白轉成自然、富表現力而且節奏一致嘅語音。"
)
npx skills add runapi-ai/fish-audio -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
# Codex
codex plugin install runapi-mcp@agents
# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
切換 variant
OVERVIEW
s2-pro 針對 Fish Audio 系列中品質與成本的最佳平衡點。
- 按次收費,美元計價
- 生成失敗不收費
- 如模型支援,提供串流輸出
- Model skill setup
PRICING
收費
失敗的生成不會收費
Text to speech
$0.02
/ 1K UTF-8 bytes
規格說明
技術詳情
| 模型 ID | s2-pro |
| 供應商 | Fish Audio |
| 模式 | audio_music |
| 任務類型 | synchronous |
| 計費單位 | 1K UTF-8 bytes |
| API endpoint | /api/v1/fish_audio/text_to_speech |
| 商業授權 | 是 — 已透過 API 包含 |
| 目錄狀態 | 可正常運作 |
SKILLS
快速開始 — s2-pro
結構一致 · variant 已固定於 model 中
# Install the model skill for app development workflows
npx skills add runapi-ai/fish-audio -g
Or use this setup request in your coding tool:
Install the Fish Audio skill for this app: 1. Add runapi-ai/fish-audio with the skills installer. 2. Load SKILL.md in this workspace. 3. Use its docs, schemas, pricing notes, and setup steps when adding model features. 4. Confirm the install path when done.
運作方式
四步使用 s2-pro
01
安裝
為此模型系列安裝 model skill。
02
設定
將 model 欄位設為本頁顯示的完整 model ID。
03
呼叫
連同 prompt、inputs 及 callback 設定,送出一個 typed request。
04
接收
從 RunAPI 讀取 task response、webhook callback 或 cached output URL。
DIFFERENCES
s2-pro 有咩不同
VS S1
Natural, consistent speech for production voice workflows
Expressive multilingual speech for conversational and narrative audio
使用場景
最適合
Podcast 及影片配樂
生成同集數氛圍匹配的免版稅背景音樂,無需付授權費。
遊戲音效
為程序生成關卡製作可自適應的環境音景同音效。
廣告旁白及音效
無需錄音室,都可以為客戶廣告生成自訂旁白同音效。
FAQ
關於 s2-pro 的常見問題
模型 ID 會否在不同版本之間保持穩定?
RunAPI 會保持 model ID 穩定,並處理相容的版本更新,而不需要改動你的 request 格式。
這個 variant 的 rate limit 係多少?
每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。
之後可以切換 variant 嗎?
可以——variant 只係一個旗標。只要更改 model 參數就可以切換。
支援 streaming 嗎?
在可用 streaming 的情況下,RunAPI 會端到端串流。
我應該在邊度回報品質問題?
可以在公開 GitHub repo 開 issue,或者電郵支援團隊。
立即開始