{ "model_id": "openai/tts-1-hd", "provider_id": "openai", "name": "TTS-1 HD", "description": "OpenAI's high-definition text-to-speech model producing higher quality audio output.", "task": "Text-to-Speech", "tags": [ "TTS", "Speech Synthesis", "High Quality" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per character": 0.00003 }, "examples": [ { "name": "Simple Speech", "description": "Generate high-definition speech with default settings", "input": { "response_format": "mp3", "speed": 1, "text": "Hello! Welcome to Cloudflare AI Gateway. Let me show you what we can do.", "voice": "alloy" }, "output": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/openai__tts-1-hd/simple-speech.mp3" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/openai__tts-1-hd/simple-speech.mp3" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'openai/tts-1-hd',\n {\n response_format: 'mp3',\n speed: 1,\n text: 'Hello! Welcome to Cloudflare AI Gateway. Let me show you what we can do.',\n voice: 'alloy',\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\": \"openai/tts-1-hd\",\n \"input\": {\n \"response_format\": \"mp3\",\n \"speed\": 1,\n \"text\": \"Hello! Welcome to Cloudflare AI Gateway. Let me show you what we can do.\",\n \"voice\": \"alloy\"\n }\n}'" } ] }, { "name": "Storytelling", "description": "HD narration with the Fable voice", "input": { "response_format": "mp3", "speed": 0.9, "text": "Once upon a time, in a kingdom beyond the clouds, there lived a young inventor who dreamed of building machines that could think.", "voice": "fable" }, "output": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/openai__tts-1-hd/storytelling.mp3" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/openai__tts-1-hd/storytelling.mp3" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'openai/tts-1-hd',\n {\n response_format: 'mp3',\n speed: 0.9,\n text: 'Once upon a time, in a kingdom beyond the clouds, there lived a young inventor who dreamed of building machines that could think.',\n voice: 'fable',\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\": \"openai/tts-1-hd\",\n \"input\": {\n \"response_format\": \"mp3\",\n \"speed\": 0.9,\n \"text\": \"Once upon a time, in a kingdom beyond the clouds, there lived a young inventor who dreamed of building machines that could think.\",\n \"voice\": \"fable\"\n }\n}'" } ] }, { "name": "Podcast Style", "description": "Conversational podcast narration", "input": { "response_format": "mp3", "speed": 1, "text": "So here's the thing about large language models \u2014 they're not actually thinking. They're predicting the next token based on patterns in their training data. But the results can be surprisingly coherent.", "voice": "echo" }, "output": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/openai__tts-1-hd/podcast-style.mp3" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/openai__tts-1-hd/podcast-style.mp3" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'openai/tts-1-hd',\n {\n response_format: 'mp3',\n speed: 1,\n text: \"So here's the thing about large language models \u2014 they're not actually thinking. They're predicting the next token based on patterns in their training data. But the results can be surprisingly coherent.\",\n voice: 'echo',\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\": \"openai/tts-1-hd\",\n \"input\": {\n \"response_format\": \"mp3\",\n \"speed\": 1,\n \"text\": \"So here'\\''s the thing about large language models \u2014 they'\\''re not actually thinking. They'\\''re predicting the next token based on patterns in their training data. But the results can be surprisingly coherent.\",\n \"voice\": \"echo\"\n }\n}'" } ] }, { "name": "Shimmer Voice", "description": "Bright and expressive voice", "input": { "response_format": "mp3", "speed": 1, "text": "Breaking news: scientists have discovered a new species of deep-sea fish that produces its own light using bioluminescence.", "voice": "shimmer" }, "output": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/openai__tts-1-hd/shimmer-voice.mp3" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/openai__tts-1-hd/shimmer-voice.mp3" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'openai/tts-1-hd',\n {\n response_format: 'mp3',\n speed: 1,\n text: 'Breaking news: scientists have discovered a new species of deep-sea fish that produces its own light using bioluminescence.',\n voice: 'shimmer',\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\": \"openai/tts-1-hd\",\n \"input\": {\n \"response_format\": \"mp3\",\n \"speed\": 1,\n \"text\": \"Breaking news: scientists have discovered a new species of deep-sea fish that produces its own light using bioluminescence.\",\n \"voice\": \"shimmer\"\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": true, "zdr_comment": null, "external_info": "https://platform.openai.com/docs/guides/text-to-speech", "terms": "https://openai.com/policies/", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/openai/tts-1-hd.png", "metadata": { "Voices": "alloy, echo, fable, onyx, nova, shimmer" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "openai", "pricing": { "input_characters": 0.00003 } } ], "banner": null, "created_at": "2026-05-22 17:53:44", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "text": { "type": "string", "maxLength": 4096, "description": "The text to generate audio for. Maximum length is 4096 characters." }, "voice": { "default": "alloy", "description": "The voice to use when generating the audio. Defaults to alloy.", "type": "string", "enum": [ "alloy", "echo", "fable", "onyx", "nova", "shimmer" ] }, "response_format": { "default": "mp3", "description": "The output format for the audio. Supported formats are mp3, opus, wav, aac and flac.", "type": "string", "enum": [ "mp3", "opus", "wav", "aac", "flac" ] }, "speed": { "default": 1, "description": "The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default.", "type": "number", "minimum": 0.25, "maximum": 4 } }, "required": [ "text", "voice", "response_format", "speed" ], "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 } } }