ElevenAPI

只需几行代码,即可构建生产级语音 AI

只需几行代码,即可构建生产级语音 AI

只需几行代码,即可构建生产级语音 AI

获取您的 ElevenLabs API 密钥,查看透明的 API 定价,并在几分钟内完成您的首次调用。在领先的财富 500 强企业中,用一个密钥即可为文本转语音、语音、语音转文本等功能提供强劲支持。

每月 10K 免费额度

完整访问所有 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万用户的信赖

无需信用卡