{ "model_id": "minimax/speech-02-turbo", "name": "MiniMax Speech 02 Turbo", "description": "MiniMax Speech 02 Turbo is a fast, lower-cost multilingual text-to-speech model with emotion control and support for cloned and designed voices.", "task": "Text-to-Speech", "tags": [ "TTS", "Speech Synthesis", "Voice Cloning", "Multilingual", "Fast" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per character": 0.00006 }, "examples": [ { "name": "Simple Speech", "description": "Generate speech with default settings", "input": { "format": "mp3", "pitch": 0, "speed": 1, "text": "Hello! Welcome to Cloudflare AI Gateway. Let me show you what we can do.", "voice_id": "English_expressive_narrator", "volume": 1 }, "output": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-02-turbo/simple-speech.mp3" }, "raw_response": { "state": "Completed", "result": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-02-turbo/simple-speech.mp3" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-02-turbo',\n {\n format: 'mp3',\n pitch: 0,\n speed: 1,\n text: 'Hello! Welcome to Cloudflare AI Gateway. Let me show you what we can do.',\n voice_id: 'English_expressive_narrator',\n volume: 1,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"minimax/speech-02-turbo\",\n \"input\": {\n \"format\": \"mp3\",\n \"pitch\": 0,\n \"speed\": 1,\n \"text\": \"Hello! Welcome to Cloudflare AI Gateway. Let me show you what we can do.\",\n \"voice_id\": \"English_expressive_narrator\",\n \"volume\": 1\n }\n}'" } ] }, { "name": "Fast Narration", "description": "Speed up narration for quick playback", "input": { "format": "mp3", "pitch": 0, "speed": 1.5, "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", "volume": 1 }, "output": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-02-turbo/fast-narration.mp3" }, "raw_response": { "state": "Completed", "result": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-02-turbo/fast-narration.mp3" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-02-turbo',\n {\n format: 'mp3',\n pitch: 0,\n speed: 1.5,\n 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.',\n voice_id: 'English_expressive_narrator',\n volume: 1,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"minimax/speech-02-turbo\",\n \"input\": {\n \"format\": \"mp3\",\n \"pitch\": 0,\n \"speed\": 1.5,\n \"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.\",\n \"voice_id\": \"English_expressive_narrator\",\n \"volume\": 1\n }\n}'" } ] }, { "name": "Calm Tone", "description": "Calm and steady speech for meditation or relaxation", "input": { "emotion": "calm", "format": "mp3", "pitch": 0, "speed": 0.8, "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", "volume": 1 }, "output": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-02-turbo/calm-tone.mp3" }, "raw_response": { "state": "Completed", "result": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-02-turbo/calm-tone.mp3" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-02-turbo',\n {\n emotion: 'calm',\n format: 'mp3',\n pitch: 0,\n speed: 0.8,\n text: 'Take a deep breath in. Hold it for a moment. Now slowly exhale. Let your shoulders relax and release any tension.',\n voice_id: 'English_expressive_narrator',\n volume: 1,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"minimax/speech-02-turbo\",\n \"input\": {\n \"emotion\": \"calm\",\n \"format\": \"mp3\",\n \"pitch\": 0,\n \"speed\": 0.8,\n \"text\": \"Take a deep breath in. Hold it for a moment. Now slowly exhale. Let your shoulders relax and release any tension.\",\n \"voice_id\": \"English_expressive_narrator\",\n \"volume\": 1\n }\n}'" } ] }, { "name": "Adjusted Pitch", "description": "Lower the pitch for a deeper voice", "input": { "format": "mp3", "pitch": -6, "speed": 1, "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", "volume": 1 }, "output": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-02-turbo/adjusted-pitch.mp3" }, "raw_response": { "state": "Completed", "result": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-02-turbo/adjusted-pitch.mp3" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-02-turbo',\n {\n format: 'mp3',\n pitch: -6,\n speed: 1,\n text: 'Good evening. Tonight we explore the mysteries of the deep ocean and the creatures that live in total darkness.',\n voice_id: 'English_expressive_narrator',\n volume: 1,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"minimax/speech-02-turbo\",\n \"input\": {\n \"format\": \"mp3\",\n \"pitch\": -6,\n \"speed\": 1,\n \"text\": \"Good evening. Tonight we explore the mysteries of the deep ocean and the creatures that live in total darkness.\",\n \"voice_id\": \"English_expressive_narrator\",\n \"volume\": 1\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": false, "zdr_comment": null, "external_info": "https://platform.minimax.io/docs/api-reference/speech-t2a-http", "terms": "https://www.minimaxi.com/terms", "cover_image_url": null, "metadata": { "Emotion Control": "Yes", "Voice Cloning": "Yes" }, "request_formats": null, "provider_id": "minimax", "providers": null, "provider_details": [ { "id": "minimax", "pricing": { "input_characters": 0.00006 } } ], "model_providers": [ { "provider": "minimax", "pricing": { "input_characters": 0.00006 }, "rates": [ { "key": null, "label": null, "description": null, "rates": [ { "key": "input_characters", "label": "Per character", "unit": null, "value": 0.00006 } ] } ] } ], "banner": null, "pinned": false, "created_at": "2026-11-16 14:02:53", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "text": { "type": "string", "maxLength": 10000, "description": "The text to convert to speech. Maximum 10,000 characters." }, "voice_id": { "default": "English_expressive_narrator", "description": "The voice ID to use for synthesis", "type": "string" }, "speed": { "default": 1, "description": "Speech speed (0.5 to 2)", "type": "number", "minimum": 0.5, "maximum": 2 }, "volume": { "default": 1, "description": "Speech volume (0 to 10)", "type": "number", "minimum": 0, "maximum": 10 }, "pitch": { "default": 0, "description": "Pitch adjustment (-12 to 12)", "type": "integer", "minimum": -12, "maximum": 12 }, "emotion": { "description": "Emotion control for synthesized speech", "type": "string", "enum": [ "happy", "sad", "angry", "fearful", "disgusted", "surprised", "calm" ] }, "format": { "default": "mp3", "description": "Output audio format", "type": "string", "enum": [ "mp3", "flac", "wav" ] }, "sample_rate": { "description": "Audio sample rate", "anyOf": [ { "type": "number", "const": 8000 }, { "type": "number", "const": 16000 }, { "type": "number", "const": 22050 }, { "type": "number", "const": 24000 }, { "type": "number", "const": 32000 }, { "type": "number", "const": 44100 } ] } }, "required": [ "text", "voice_id", "speed", "volume", "pitch", "format" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "audio": { "type": "string", "description": "URL to the generated audio file" } }, "required": [ "audio" ], "additionalProperties": false } } }