tts-1 API
OpenAI / OpenAI TTS
透過 RunAPI 使用 OpenAI TTS 系列的 tts-1。按次收費,無需訂閱,失敗的生成不扣費。
可正常運作
·
audio_music
·
可商用
curl -X POST https://runapi.ai/api/v1/openai_tts/text_to_speech \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tts-1",
"text": "將呢段產品 onboarding 文稿轉成清晰自然嘅語音,用喺 app 內導覽。"
}'
import { OpenaiTtsClient } from "@runapi.ai/openai-tts";
const client = new OpenaiTtsClient();
const result = await client.textToSpeech.run({
model: "tts-1",
text: "將呢段產品 onboarding 文稿轉成清晰自然嘅語音,用喺 app 內導覽。",
});
require "runapi/openai_tts"
client = RunApi::OpenaiTts::Client.new
result = client.text_to_speech.run(
model: "tts-1",
text: "將呢段產品 onboarding 文稿轉成清晰自然嘅語音,用喺 app 內導覽。"
)
npx skills add runapi-ai/openai-tts -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
tts-1 針對 OpenAI TTS 系列中品質與成本的最佳平衡點。
- 按次收費,美元計價
- 生成失敗不收費
- 如模型支援,提供串流輸出
- Model skill setup
PRICING
收費
失敗的生成不會收費
Text to speech
$0.04
/ 1K UTF-8 bytes
規格說明
技術詳情
| 模型 ID | tts-1 |
| 供應商 | OpenAI |
| 模式 | audio_music |
| 任務類型 | synchronous |
| 計費單位 | 1K UTF-8 bytes |
| API endpoint | /api/v1/openai_tts/text_to_speech |
| 商業授權 | 是 — 已透過 API 包含 |
| 目錄狀態 | 可正常運作 |
SKILLS
快速開始 — tts-1
結構一致 · variant 已固定於 model 中
# Install the model skill for app development workflows
npx skills add runapi-ai/openai-tts -g
Or use this setup request in your coding tool:
Install the OpenAI TTS skill for this app: 1. Add runapi-ai/openai-tts 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.
運作方式
四步使用 tts-1
01
安裝
為此模型系列安裝 model skill。
02
設定
將 model 欄位設為本頁顯示的完整 model ID。
03
呼叫
連同 prompt、inputs 及 callback 設定,送出一個 typed request。
04
接收
從 RunAPI 讀取 task response、webhook callback 或 cached output URL。
DIFFERENCES
tts-1 有咩不同
VS TTS-1-HD
Low-latency speech synthesis for interactive applications
Higher-quality speech synthesis for polished narration
使用場景
最適合
Podcast 及影片配樂
生成同集數氛圍匹配的免版稅背景音樂,無需付授權費。
遊戲音效
為程序生成關卡製作可自適應的環境音景同音效。
廣告旁白及音效
無需錄音室,都可以為客戶廣告生成自訂旁白同音效。
FAQ
關於 tts-1 的常見問題
模型 ID 會否在不同版本之間保持穩定?
RunAPI 會保持 model ID 穩定,並處理相容的版本更新,而不需要改動你的 request 格式。
這個 variant 的 rate limit 係多少?
每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。
之後可以切換 variant 嗎?
可以——variant 只係一個旗標。只要更改 model 參數就可以切換。
支援 streaming 嗎?
在可用 streaming 的情況下,RunAPI 會端到端串流。
我應該在邊度回報品質問題?
可以在公開 GitHub repo 開 issue,或者電郵支援團隊。
OpenAI TTS 的其他 variant
其他模型的替代方案
立即開始