600msも待てない音声エージェントのために

OpenAI: GPT-4o mini TTS

openai/gpt-4o-mini-tts
提供中 tts 1プロバイダー
互換性維持のためのみ提供しています。アップグレードをおすすめします。

Deprecated by OpenAI on 2026-10-01 with shutdown on 2027-01-06 (OpenAI recommends gpt-realtime-2.1-mini, a realtime speech-to-speech model this platform does not serve as TTS), and still served here for compatibility until shutdown.

Playground

OpenAI's newest, most reliable text-to-speech model; steerable via instructions (accent, emotion, intonation, speed, tone, whispering).

作成者OpenAI
言語1言語
ボイス読み込み中...
レスポンス形式MP3 · Opus · AAC · FLAC · WAV · PCM
ステータス提供中

プロバイダー

同じモデルを複数のプロバイダーがホストしている場合があります。バックエンドを固定したい場合は1つのプロバイダーを選び、そうでなければルーティングに選択を任せられます。

プロバイダーSlug100万トークンあたりレイテンシiTTSのレイテンシは音声の最初のバイトが届くまでの時間、STTのレイテンシは最初のトークンが届くまでの時間で計測しています。モード稼働率
OpenAI 6個のパラメーター
openai
$12
—
同期

対応言語

1言語
English en

ボイス

機能

Text to speech

Generates spoken audio from text input.

text_to_speech
Streaming

Supports streaming audio output.

streaming
Synchronous

Synthesizes speech from fully-submitted text in a single synchronous request.

synchronous
Steerable voice

Voice can be steered via natural-language instructions (accent, emotion, tone, speed).

steerable_voice

コード

クライアント
モード
言語

ElevenLabs SDKでのストリーミングTTS

ElevenLabs SDKをAllModels経由でルーティングし、音声レスポンスをストリーミングします。

import { ElevenLabsClient } from "elevenlabs";

const client = new ElevenLabsClient({
  apiKey: process.env.ALLMODELS_API_KEY,
  baseUrl: "https://api.allmodels.io/el"
});

const stream = await client.textToSpeech.stream("voice_id", {
  text: "I'm sorry, Dave. I'm afraid I can't do that.",
  modelId: "openai/gpt-4o-mini-tts",
  outputFormat: "mp3_44100_128"
}, {
  queryParams: {
    provider: {
      "only": [
        "openai"
      ]
    }
  }
});

const reader = stream.getReader();
for (;;) {
  const { done, value } = await reader.read();
  if (done) break;
  // Write value to your response, file, or audio playback pipeline.
}