ElevenAPI

只需一次请求,即可上线语音 AI

只需一次请求,即可上线语音 AI

只需一次请求,即可上线语音 AI

在一分钟内获取您的免费 API 密钥并进行生产环境的 TTS 调用。包含 1 万点额度,无需信用卡。

每月 10K 免费额度

完整访问所有 API

SOC 2 Type 2 和 ISO 27001 认证

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 作为后盾。让我们能够充满信心地开拓新的语言和市场。

声音听起来自然且情感丰富,并有稳定可靠的 API 作为后盾。让我们能够充满信心地开拓新的语言和市场。

声音听起来自然且情感丰富,并有稳定可靠的 API 作为后盾。让我们能够充满信心地开拓新的语言和市场。

詹库特·科斯图尔

Codeway 高级工程师

只需三步,即可开启首个音频

只需三步,即可开启首个音频

只需三步,即可开启首个音频

免费获得1万积分

免费注册,无需信用卡

获取您的 API 密钥

从您的仪表板生成密钥

粘贴代码段

一个请求,即刻上线