{ "model_id": "minimax/speech-2.6-hd", "name": "MiniMax Speech 2.6 HD", "description": "MiniMax Speech 2.6 HD is a studio-quality multilingual text-to-speech model with emotion control (including fluent and whisper styles) and support for cloned and designed voices.", "task": "Text-to-Speech", "tags": [ "TTS", "Speech Synthesis", "Voice Cloning", "Multilingual", "High Quality" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per character": 0.0001 }, "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-2.6-hd/simple-speech.mp3" }, "raw_response": { "state": "Completed", "result": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-2.6-hd/simple-speech.mp3" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-2.6-hd',\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-2.6-hd\",\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": "Custom Voice", "description": "Use a specific voice and adjust speed", "input": { "format": "mp3", "pitch": 0, "speed": 0.9, "text": "The weather today is sunny with a high of 72 degrees. Perfect for a walk in the park.", "voice_id": "English_expressive_narrator", "volume": 1 }, "output": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-2.6-hd/custom-voice.mp3" }, "raw_response": { "state": "Completed", "result": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-2.6-hd/custom-voice.mp3" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-2.6-hd',\n {\n format: 'mp3',\n pitch: 0,\n speed: 0.9,\n text: 'The weather today is sunny with a high of 72 degrees. Perfect for a walk in the park.',\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-2.6-hd\",\n \"input\": {\n \"format\": \"mp3\",\n \"pitch\": 0,\n \"speed\": 0.9,\n \"text\": \"The weather today is sunny with a high of 72 degrees. Perfect for a walk in the park.\",\n \"voice_id\": \"English_expressive_narrator\",\n \"volume\": 1\n }\n}'" } ] }, { "name": "With Emotion", "description": "Apply emotional tone to speech", "input": { "emotion": "happy", "format": "mp3", "pitch": 0, "speed": 1, "text": "Congratulations! You've just won the grand prize! This is absolutely incredible news!", "voice_id": "English_expressive_narrator", "volume": 1 }, "output": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-2.6-hd/with-emotion.mp3" }, "raw_response": { "state": "Completed", "result": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-2.6-hd/with-emotion.mp3" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-2.6-hd',\n {\n emotion: 'happy',\n format: 'mp3',\n pitch: 0,\n speed: 1,\n text: \"Congratulations! You've just won the grand prize! This is absolutely incredible news!\",\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-2.6-hd\",\n \"input\": {\n \"emotion\": \"happy\",\n \"format\": \"mp3\",\n \"pitch\": 0,\n \"speed\": 1,\n \"text\": \"Congratulations! You'\\''ve just won the grand prize! This is absolutely incredible news!\",\n \"voice_id\": \"English_expressive_narrator\",\n \"volume\": 1\n }\n}'" } ] }, { "name": "High Sample Rate", "description": "Studio quality at 44.1kHz sample rate", "input": { "format": "mp3", "pitch": 0, "sample_rate": 44100, "speed": 1, "text": "This recording is generated at studio quality sample rate for the highest possible audio fidelity.", "voice_id": "English_expressive_narrator", "volume": 1 }, "output": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-2.6-hd/high-sample-rate.mp3" }, "raw_response": { "state": "Completed", "result": { "audio": "https://examples.aig.cloudflare.com/minimax/speech-2.6-hd/high-sample-rate.mp3" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-2.6-hd',\n {\n format: 'mp3',\n pitch: 0,\n sample_rate: 44100,\n speed: 1,\n text: 'This recording is generated at studio quality sample rate for the highest possible audio fidelity.',\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-2.6-hd\",\n \"input\": {\n \"format\": \"mp3\",\n \"pitch\": 0,\n \"sample_rate\": 44100,\n \"speed\": 1,\n \"text\": \"This recording is generated at studio quality sample rate for the highest possible audio fidelity.\",\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.0001 } } ], "model_providers": [ { "provider": "minimax", "pricing": { "input_characters": 0.0001 }, "rates": [ { "key": null, "label": null, "description": null, "rates": [ { "key": "input_characters", "label": "Per character", "unit": null, "value": 0.0001 } ] } ] } ], "banner": null, "pinned": false, "created_at": "2026-11-16 14:03:11", "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", "fluent", "whisper" ] }, "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 } } }