{ "model_id": "minimax/speech-2.8-hd", "provider_id": "minimax", "name": "MiniMax Speech 2.8 HD", "description": "MiniMax Speech 2.8 HD focuses on studio-grade audio generation with emotion control, multilingual support (40+ languages), and voice cloning.", "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://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/simple-speech.mp3" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/simple-speech.mp3" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-2.8-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.8-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://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/custom-voice.mp3" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/custom-voice.mp3" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-2.8-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.8-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://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/with-emotion.mp3" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/with-emotion.mp3" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-2.8-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.8-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://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/high-sample-rate.mp3" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/high-sample-rate.mp3" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/speech-2.8-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.8-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": true, "zdr_comment": null, "external_info": "https://www.minimaxi.com/", "terms": "https://www.minimaxi.com/terms", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/minimax/speech-2.8-hd.png", "metadata": { "Emotion Control": "Yes", "Languages": "40+", "Voice Cloning": "Yes" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "minimax", "pricing": { "input_characters": 0.0001 } } ], "banner": null, "created_at": "2026-05-22 17:53:20", "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" ] }, "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 } } }