MiniMax Speech 2.8 Turbo
Text-to-Speech • MiniMax • ProxiedMiniMax Speech 2.8 Turbo turns text into natural, expressive speech with voice cloning, emotion control, and 40+ language support at faster speeds.
| Model Info | |
|---|---|
| Terms and License | link ↗ |
| More information | link ↗ |
| Pricing | View pricing in the Cloudflare dashboard ↗ |
Usage
const response = await env.AI.run( 'minimax/speech-2.8-turbo', { text: 'Hello! Welcome to Cloudflare AI Gateway. Let me show you what we can do.', voice_id: 'English_expressive_narrator', speed: 1, volume: 1, pitch: 0, format: 'mp3', }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-turbo/simple-speech.mp3" }, "gatewayMetadata": { "keySource": "Unified" }}Examples
Fast Narration — Speed up narration for quick playback
const response = await env.AI.run( 'minimax/speech-2.8-turbo', { text: 'This is a fast-paced summary of the key findings from the quarterly report. Revenue is up fifteen percent and user growth exceeded expectations.', voice_id: 'English_expressive_narrator', speed: 1.5, volume: 1, pitch: 0, format: 'mp3', }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-turbo/fast-narration.mp3" }, "gatewayMetadata": { "keySource": "Unified" }}Calm Tone — Calm and steady speech for meditation or relaxation
const response = await env.AI.run( 'minimax/speech-2.8-turbo', { text: 'Take a deep breath in. Hold it for a moment. Now slowly exhale. Let your shoulders relax and release any tension.', voice_id: 'English_expressive_narrator', speed: 0.8, volume: 1, pitch: 0, emotion: 'calm', format: 'mp3', }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-turbo/calm-tone.mp3" }, "gatewayMetadata": { "keySource": "Unified" }}Adjusted Pitch — Lower the pitch for a deeper voice
const response = await env.AI.run( 'minimax/speech-2.8-turbo', { text: 'Good evening. Tonight we explore the mysteries of the deep ocean and the creatures that live in total darkness.', voice_id: 'English_expressive_narrator', speed: 1, volume: 1, pitch: -6, format: 'mp3', }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-turbo/adjusted-pitch.mp3" }, "gatewayMetadata": { "keySource": "Unified" }}Parameters
stringrequiredmaxLength: 10000The text to convert to speech. Maximum 10,000 characters.stringrequireddefault: English_expressive_narratorThe voice ID to use for synthesisnumberrequireddefault: 1minimum: 0.5maximum: 2Speech speed (0.5 to 2)numberrequireddefault: 1minimum: 0maximum: 10Speech volume (0 to 10)integerrequireddefault: 0minimum: -12maximum: 12Pitch adjustment (-12 to 12)stringenum: happy, sad, angry, fearful, disgusted, surprised, calm, fluentEmotion control for synthesized speechstringrequireddefault: mp3enum: mp3, flac, wavOutput audio formatone ofstringURL to the generated audio file