ElevenAPI

只需幾行程式碼,即可打造生產級語音 AI

只需幾行程式碼,即可打造生產級語音 AI

只需幾行程式碼,即可打造生產級語音 AI

獲取您的 ElevenLabs API 金鑰,查看透明的 API 定價,並在數分鐘內完成您的首次呼叫。在各大財富 500 強企業中,僅需一個金鑰即可支援語音合成、聲音、語音轉文字等功能。

每月 10,000 點免費額度

完整存取所有 API

SOC 2 Type 2 與 ISO 27001 認證

聲音聽起來自然且情感豐富,並有穩定可靠的 API 作為後盾。這讓我們能夠充滿信心、順利地開拓新的語言與市場。

聲音聽起來自然且情感豐富,並有穩定可靠的 API 作為後盾。這讓我們能夠充滿信心、順利地開拓新的語言與市場。

詹庫特·科斯圖爾

Codeway 資深工程師

from elevenlabs import ElevenLabs
client = ElevenLabs(api_key="sk_...")
audio = client.text_to_speech.convert(
    voice_id="U1me6X0sIhQz6nAjDuVU",
    model_id="eleven_flash_v2_5",
    text="Your platform just found its voice.",
)  # streamed audio, ~75 ms to first byte
$ curl -X POST https://api.elevenlabs.io/v1/text-to-speech/JBFqnCBsd6RMkjVDRZzb \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Your platform just found its voice.",
    "model_id": "eleven_flash_v2_5"
}' --output speech.mp3
$ elevenlabs text-to-speech convert \
  --model-id eleven_flash_v2_5 \
  --voice-id 3cjtcbSfNCiKYL34TDbF \
  --text "Your platform just found its voice." \
  --output speech.mp3
# npm i -g @elevenlabs/cli — one command from prompt to audio
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({ apiKey: process.env.ELEVENLABS_API_KEY! });
const audio = await client.textToSpeech.convert("6ce2j5ZU8hRGBD9VwEaX", {
  text: "Your platform just found its voice.",
  modelId: "eleven_flash_v2_5",
}); // fully typed, edge-ready
from elevenlabs import ElevenLabs
client = ElevenLabs(api_key="sk_...")
audio = client.text_to_speech.convert(
    voice_id="U1me6X0sIhQz6nAjDuVU",
    model_id="eleven_flash_v2_5",
    text="Your platform just found its voice.",
)  # streamed audio, ~75 ms to first byte
$ curl -X POST https://api.elevenlabs.io/v1/text-to-speech/JBFqnCBsd6RMkjVDRZzb \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Your platform just found its voice.",
    "model_id": "eleven_flash_v2_5"
}' --output speech.mp3
$ elevenlabs text-to-speech convert \
  --model-id eleven_flash_v2_5 \
  --voice-id 3cjtcbSfNCiKYL34TDbF \
  --text "Your platform just found its voice." \
  --output speech.mp3
# npm i -g @elevenlabs/cli — one command from prompt to audio
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({ apiKey: process.env.ELEVENLABS_API_KEY! });
const audio = await client.textToSpeech.convert("6ce2j5ZU8hRGBD9VwEaX", {
  text: "Your platform just found its voice.",
  modelId: "eleven_flash_v2_5",
}); // fully typed, edge-ready
from elevenlabs import ElevenLabs
client = ElevenLabs(api_key="sk_...")
audio = client.text_to_speech.convert(
    voice_id="U1me6X0sIhQz6nAjDuVU",
    model_id="eleven_flash_v2_5",
    text="Your platform just found its voice.",
)  # streamed audio, ~75 ms to first byte
$ curl -X POST https://api.elevenlabs.io/v1/text-to-speech/JBFqnCBsd6RMkjVDRZzb \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Your platform just found its voice.",
    "model_id": "eleven_flash_v2_5"
}' --output speech.mp3
$ elevenlabs text-to-speech convert \
  --model-id eleven_flash_v2_5 \
  --voice-id 3cjtcbSfNCiKYL34TDbF \
  --text "Your platform just found its voice." \
  --output speech.mp3
# npm i -g @elevenlabs/cli — one command from prompt to audio
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({ apiKey: process.env.ELEVENLABS_API_KEY! });
const audio = await client.textToSpeech.convert("6ce2j5ZU8hRGBD9VwEaX", {
  text: "Your platform just found its voice.",
  modelId: "eleven_flash_v2_5",
}); // fully typed, edge-ready

聲音聽起來自然且情感豐富,並有穩定可靠的 API 作為後盾。這讓我們能夠充滿信心、順利地開拓新的語言與市場。

詹庫特·科斯圖爾

Codeway 資深工程師

建立帳戶

免費註冊,無需信用卡

產生 API 金鑰

在開發人員主控台建立金鑰

撥打您的第一通電話

安裝 SDK 並進行您的第一次 TTS 呼叫

聆聽結果

使用 Flash 在約 75 毫秒內生成首個音訊

深受 750 萬以上用戶信賴

無需信用卡