We use cookies to enhance your experience, provide personalised content, and analyse our traffic; see our Cookie Policy.
openai/gpt-4o-mini-ttsGPT-4o mini TTS — a voice you can direct
Unlike TTS-1, this model takes instructions about how to speak — calmer, faster, more formal — alongside the text. 44 credits per 1,000 characters.
Plain-text instructions control tone and style
Including new voices: marin, cedar, verse
Explicit BCP-47 language for accurate pronunciation
OpenAI's newest TTS model
Welcome to Ali Sandwiches! Our sandwiches are made with fresh ingredients every day.
Special promotion! 30% off all our menus this week.
Yes. Top up your Tchavi account with Orange Money, MTN MoMo, M-Pesa or another mobile money operator. No bank card is needed. Credits land as soon as the payment is confirmed and are deducted as you use them.
Yes. Keep your current OpenAI SDK, just change the base URL to Tchavi's (shown in the API tab) and use your Tchavi key. The rest of your code stays the same.
import Tchavi from '@tchavi/sdk';
import fs from 'fs';
const client = new Tchavi({ apiKey: 'API_KEY' });
const response = await client.audio.speech.create({
"model": "gpt-4o-mini-tts",
"input": "Hello, world!",
"voice": "alloy",
"response_format": "mp3"
});
const buffer = Buffer.from(await response.arrayBuffer());
fs.writeFileSync('speech.mp3', buffer);
console.log('X-Credits-Used:', response.headers.get('x-credits-used'));Every parameter this model accepts on the API. Check the SDK for full typings.
modelRequiredTTS model (e.g. `gpt-4o-mini-tts`).
inputRequiredThe text to synthesize.
voiceRequiredVoice timbre: `alloy`, `ash`, `ballad`, `cedar`, `coral`, `echo`, `fable`, `marin`, `nova`, `onyx`, `sage`, or `shimmer`.
response_format"mp3"Audio container format.
speed1.0Playback speed multiplier.