The text to be converted into speech. Must be less than 10,000 characters.
For texts over 3,000 characters, streaming output is recommended.
Paragraph breaks should be marked with newline characters.
Pause control: You can customize speech pauses by adding markers in the form <#x#>, where x is the pause duration in seconds. Valid range: [0.01, 99.99], up to two decimal places. Pause markers must be placed between speakable text segments and cannot be used consecutively.
Inline pronunciation: Wrap Mandarin Pinyin (with tone number 1–5) or IPA symbols or Cantonese Jyutping (with tone number 1–6) in half-width parentheses to override pronunciation of the target word or polyphonic character.
"The word live is pronounced (lɪv) as a verb and (laɪv) as an adjective."
"This is (he2)平, not (huo4)面."
"去街市買啲(sung3)。"
Interjection tags: Only supported when using speech-2.8-hd or speech-2.8-turbo models. Supported interjections: (laughs), (chuckle), (coughs), (clear-throat), (groans), (breath), (pant), (inhale), (exhale), (gasps), (sniffs), (sighs), (snorts), (burps), (lip-smacking), (humming), (hissing), (emm), (sneezes).
Controls whether recognition for specific minority languages and dialects is enhanced. Default is null. If the language type is unknown, set to "auto" and the model will automatically detect it.
Note: The speech-01 and speech-02 series models do not currently support Persian, Filipino, or Tamil.
Text normalization. basic uses fast, rule-based normalization. quality uses a hybrid LLM + rule-based approach to improve normalization quality, with additional latency. See Text Normalization.
Note:
quality currently takes effect only for non-streaming requests (stream=false) with speech-2.8-hd, speech-2.8-turbo, speech-2.6-hd, and speech-2.6-turbo. For streaming requests or other models, quality is processed as basic and no error is returned.
When this parameter is set, voice_setting.text_normalization is ignored. If it is omitted, the voice_setting.text_normalization setting applies (disabled by default).
Controls whether subtitles are enabled. Default is false. Available for models: speech-2.8-hd, speech-2.8-turbo, speech-2.6-hd, speech-2.6-turbo, speech-02-hd, speech-02-turbo, speech-01-hd, speech-01-turbo.
Subtitle granularity. Default is sentence. Options:
sentence: sentence-level timestamps
word: word-level timestamps
word_streaming: word-level timestamps optimized for streaming, only valid when stream=true
In streaming mode (stream=true), subtitles are delivered in data.subtitle along with the audio, and subtitle_file is not returned:
sentence / word: returned once per segment, on the last audio chunk of that segment. sentence does not include timestamped_words
word_streaming: returned on every audio chunk, carrying the cumulative subtitle of the current segment so far (timestamped_words and time_end keep growing). Replace the previous result of the same segment with the latest one; a change of text_begin means a new segment has started
In non-streaming mode, subtitles are returned as a file via subtitle_file.
Controls the output format. Options: [url, hex]. Default is hex. Only effective in non-streaming scenarios. In streaming, only hex is supported. Returned url is valid for 24 hours.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MiniMax API Docs","colors":{"primary":"#181E25","dark":"#181E25"},"logo":{"light":"https://mintcdn.com/minimax-cac98058/XYzsL2L2ynonu2Q_/logo/light.svg?fit=max\u0026auto=format\u0026n=XYzsL2L2ynonu2Q_\u0026q=85\u0026s=9c99bb2678d62388d8a4e7cce1750858","dark":"https://mintcdn.com/minimax-cac98058/XYzsL2L2ynonu2Q_/logo/dark.svg?fit=max\u0026auto=format\u0026n=XYzsL2L2ynonu2Q_\u0026q=85\u0026s=e62ef6e36d7512de91c8c48322614594","href":"https://minimax.io"},"favicon":"https://mintcdn.com/minimax-cac98058/3KE0RwwD41Lh3xt2/favicon.ico?fit=max\u0026auto=format\u0026n=3KE0RwwD41Lh3xt2\u0026q=85\u0026s=6a58247013972686c0a551c6c6b98d66","api":{"examples":{"prefill":true}},"appearance":{"default":"light","strict":true},"navbar":{"primary":{"type":"button","label":"Console","href":"https://platform.minimax.io/console/home"}},"footer":{"socials":{"discord":"https://www.minimax.io/discord","x":"https://x.com/MiniMax_AI","linkedin":"https://www.linkedin.com/company/minimax-ai","github":"https://github.com/MiniMax-AI"},"links":[{"header":"Research","items":[{"label":"MiniMax M3","href":"https://www.minimax.io/models/text/m3"},{"label":"MiniMax M2-her","href":"https://www.minimax.io/news/a-deep-dive-into-the-minimax-m2-her-2"},{"label":"MiniMax M2.1","href":"https://www.minimax.io/news/minimax-m21"},{"label":"MiniMax Speech 2.8","href":"https://www.minimax.io/news/minimax-speech-28"},{"label":"MiniMax H3","href":"https://www.minimax.io/blog/minimax-h3"},{"label":"MiniMax Music 3.0","href":"https://platform.minimax.io/docs/guides/music-generation"}]},{"header":"Product","items":[{"label":"MiniMax Code","href":"https://agent.minimax.io/download"},{"label":"MiniMax Design","href":"https://design.minimax.io/"},{"label":"Audio","href":"https://www.minimax.io/audio"},{"label":"Talkie","href":"https://www.talkie-ai.com/"}]},{"header":"API","items":[{"label":"Developer Docs","href":"https://platform.minimax.io/docs/guides/models-intro"},{"label":"M Plan","href":"https://platform.minimax.io/subscribe/token-plan"},{"label":"Pricing","href":"https://platform.minimax.io/docs/pricing/overview"},{"label":"Console Login","href":"https://platform.minimax.io/console/personal-info"},{"label":"Developer Program","href":"https://platform.minimax.io/activity/contact-us-en"}]},{"header":"Recommended","items":[{"label":"Model Introduction","href":"https://platform.minimax.io/docs/guides/models-intro"},{"label":"Text Generation","href":"https://platform.minimax.io/docs/guides/text-generation"},{"label":"M3 for AI Coding Tools","href":"https://platform.minimax.io/docs/token-plan/openclaw"},{"label":"Text to Speech","href":"https://platform.minimax.io/docs/guides/speech-t2a-websocket"},{"label":"Video Generation","href":"https://platform.minimax.io/docs/guides/video-generation"}]}]},"seo":{"metatags":{"og:image":"https://filecdn.minimax.chat/public/58eca777-e31f-448a-9823-e2220e49b426.png","title":"MiniMax API Docs","description":"Integrate Multi-modal AI into apps and products with ease and speed.","charset":"UTF-8","canonical":"https://platform.minimax.io/docs","viewport":"width=device-width, initial-scale=1.0"},"indexing":"all"},"fonts":{"family":"DM Sans"},"icons":{"library":"lucide"},"integrations":{"telemetry":{"enabled":true},"cookies":{"key":"minimax_docs_feedback_consent","value":"v1:granted"}},"banner":{"content":"🎉 The new-generation MiniMax M3.1 Flash is now available! ➔ [View docs](/docs/guides/text-generation).","dismissible":true},"contextual":{"options":["copy","view","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"minimax-cac98058","hasAudioNarration":false,"actualSubdomain":"minimax-cac98058","customDomains":["platform.minimax.io"],"gitSource":{"type":"github","owner":"minimax-ai-dev","repo":"docs","deployBranch":"main","contentDirectory":"packages/docs-en","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae445226f5ed2a94d3e7d38","collectionId":"20d7a771-1442-45cd-a7fd-98d63c9f0f97","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae445226f5ed2a94d3e7d38"},"feedback":{"issues":false,"thumbs":true,"edits":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae44781812f7e980ce49d88","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API","count":48},{"language":"default","tag":"Developer Guides","count":33},{"language":"default","tag":"Use Guides","count":23},{"language":"default","tag":"M Plan","count":18},{"language":"default","tag":"Speech","count":17},{"language":"default","tag":"Text","count":14},{"language":"default","tag":"Video","count":14},{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"Tools","count":9},{"language":"default","tag":"Video Generation","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableAskAiSearchBar":false},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"@keyframes restricted-doc-spin{to{transform:rotate(360deg)}}.audio-container{height:50px;margin:16px 0}.video-agent-templates{width:300px;height:180px;object-fit:cover}video{border-radius:12px}table{overflow-x:auto}td,th{vertical-align:middle!important}td .video-agent-templates{margin:0}#navbar .docs-platform-brand{display:inline-flex;align-items:center;flex-shrink:0}#navbar .docs-platform-name{margin-left:20px;padding-left:20px;border-left:1px solid #e5e7eb;color:#6b7280;font-size:14px;font-weight:400;line-height:20px;white-space:nowrap}.dark #navbar .docs-platform-name{border-color:#374151;color:#9ca3af}#navbar .docs-console-mobile>span,#topbar-cta-button>a>span{background-color:#242424;border-radius:8px}#navbar .docs-console-mobile:hover>span,#topbar-cta-button>a:hover>span{background-color:#3a3a3a}#navbar .docs-console-mobile{display:none}#navbar nav:has(#topbar-cta-button){margin-right:0}@media (max-width:1023px){#navbar .docs-platform-name{margin-left:12px;padding-left:12px;font-size:12px}#navbar .docs-console-mobile{position:relative;display:inline-flex;align-items:center;flex-shrink:0;padding:8px 10px;font-size:12px;font-weight:500;white-space:nowrap}}@media (max-width:480px){#navbar .docs-topbar-row{column-gap:4px}#navbar .docs-platform-brand .nav-logo{width:80px;height:auto}#navbar .docs-platform-name{max-width:60px;margin-left:8px;padding-left:8px;font-size:11px;line-height:14px;white-space:normal}#navbar .docs-console-mobile{padding:8px;font-size:11px}#navbar :has(>#search-bar-entry-mobile){gap:6px}#navbar #search-bar-entry-mobile{width:24px}}#content-container p{font-size:1rem;line-height:1.5rem}.eyebrow{text-transform:uppercase}.method-nav-pill>span,.navbar-link>a{font-weight:400}:has(>.method-pill){border:0}.nav-tabs-item{font-weight:400}.nav-tabs-item.text-gray-800{font-weight:500}:has(>.navbar-link)>.navbar-link:first-child>a{color:#181e25;font-weight:500}#navbar,#sidebar{letter-spacing:.02em}.callout{margin-top:2rem;margin-bottom:2rem}#content:has(>.model-retirement-notice:first-child){margin-top:1rem}.callout.model-retirement-notice{margin-top:0}.video-package-alert{display:flex;width:100%;box-sizing:border-box;gap:12px;align-items:flex-start;padding:16px 18px;margin:12px 0 24px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb}.video-package-alert__icon{display:grid;flex:0 0 auto;width:24px;height:24px;place-items:center;border-radius:6px;color:#d97706;background:#fef3c7}.video-package-alert__content{min-width:0}.video-package-alert__title{margin-bottom:4px;color:#b45309;font-size:14px;font-weight:600;line-height:20px}.video-package-alert__desc{color:#3f3f3f;font-size:14px;font-weight:400;line-height:20px}.video-package-alert__desc a,.video-package-alert__desc a:hover{color:#b45309!important;font-weight:600!important;text-decoration-line:underline!important;text-decoration-color:#b45309!important;text-decoration-thickness:2px;text-underline-offset:3px;border-bottom:0!important;box-shadow:none!important;transition:none}.video-package-alert__desc a:focus-visible{border-radius:3px;outline:2px solid #d97706;outline-offset:2px}.dark .video-package-alert{border-color:rgba(245,158,11,.45);background:rgba(120,53,15,.22)}.dark .video-package-alert__icon{color:#fbbf24;background:rgba(180,83,9,.32)}.dark .video-package-alert__title{color:#fcd34d}.dark .video-package-alert__desc{color:#e5e7eb}.dark .video-package-alert__desc a{color:#fbbf24!important;text-decoration-color:#fbbf24!important}@media (max-width:640px){.video-package-alert{gap:10px;padding:14px}}.card span{line-height:1.4rem;margin-top:8px!important}#banner a{border-bottom-color:#181e25;color:#fff}#footer a[href=\"mailto:api@minimax.io\"] svg{-webkit-mask-image:url(https://filecdn.minimax.chat/public/45f6ad6e-f42e-45ed-938e-7de67bfd367f.svg)!important;mask-image:url(https://filecdn.minimax.chat/public/45f6ad6e-f42e-45ed-938e-7de67bfd367f.svg)!important}#sidebar:has(a[href$=\"/pricing/overview\"]),#sidebar:has(a[href$=\"/pricing/overview/\"]){visibility:hidden}.pricing-sidebar-navigation{display:none}@media (min-width:1024px){#content:has([data-pricing-sidebar]){container-type:normal;contain:none;isolation:auto}.pricing-sidebar-navigation{--pricing-sidebar-top:calc(var(--mintlify-slot-header-height, calc(4rem + var(--topbar-tabs-height, 3rem))) + var(--banner-height, 0px));display:block;position:fixed;z-index:20;top:var(--pricing-sidebar-top);left:max(2rem,calc((100vw - 92rem)/2 + 2rem));width:var(--sidebar-width, 18rem);height:calc(100dvh - var(--pricing-sidebar-top));box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:40px 24px 32px 0;margin:0}}[data-pricing-overview-active] [data-pricing-original]{display:none!important}.pricing-anchor-navigation{font-size:14px;line-height:1.5}.pricing-navigation-group+.pricing-navigation-group{margin-top:28px}.pricing-navigation-title{display:block;margin:0 0 10px;padding-left:16px;color:#111827;font-size:inherit;font-weight:600;line-height:1.5}.pricing-anchor-navigation .pricing-anchor-link{display:block;padding:6px 12px 6px 16px;margin:1px 0;border:0;border-radius:12px;color:#374151;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}.pricing-anchor-navigation .pricing-anchor-link:hover{background:rgba(75,85,99,.05);color:#111827}.pricing-anchor-navigation .pricing-anchor-link[aria-current=location]{background:rgba(24,30,37,.075);color:#181e25;font-weight:600}.pricing-anchor-link:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.pricing-section-toc{font-size:14px;line-height:1.5}.pricing-toc-title{margin-bottom:12px;color:#374151;font-weight:500}.pricing-section-toc .pricing-anchor-link{display:block;border:0;padding:5px 0 5px 12px;border-left:1px solid #e5e7eb;color:#6b7280;text-decoration:none;overflow-wrap:anywhere}.pricing-section-toc .pricing-anchor-link[aria-current=location]{border-left:2px solid #181e25;color:#181e25;font-weight:500}.pricing-mobile-navigation{display:none}#pricing-document .pricing-section,#pricing-document .pricing-section [id]{scroll-margin-top:10rem}.dark .pricing-navigation-title,.dark .pricing-toc-title{color:#e5e7eb}.dark .pricing-anchor-navigation .pricing-anchor-link,.dark .pricing-section-toc .pricing-anchor-link{color:#9ca3af}.dark .pricing-anchor-navigation .pricing-anchor-link:hover{background:rgba(229,231,235,.05);color:#d1d5db}.dark .pricing-anchor-navigation .pricing-anchor-link[aria-current=location]{background:rgba(229,231,235,.1);color:#f3f4f6}.dark .pricing-section-toc .pricing-anchor-link{border-left-color:#374151}.dark .pricing-section-toc .pricing-anchor-link[aria-current=location]{border-left-color:#e5e7eb;color:#e5e7eb}@media (max-width:1023px){#pricing-document .pricing-mobile-navigation{display:block;margin:0 0 24px}#pricing-document .pricing-mobile-navigation>.accordion{margin-bottom:0}#pricing-document .pricing-mobile-navigation .pricing-anchor-navigation{max-height:min(65vh,560px);overflow-y:auto;padding:8px 12px 20px;overscroll-behavior:contain}}#pricing-document>.pricing-section{margin-top:56px;padding-top:40px;border-top:1px solid #e5e7eb}#pricing-document>.pricing-overview+.pricing-section{margin-top:36px;border-top:0}#pricing-document>.pricing-section>h2:first-child{margin-top:0}#pricing-document .pricing-overview>span[data-as=p],#pricing-document .pricing-section>span[data-as=p]{display:block;margin:1em 0}.dark #pricing-document>.pricing-section{border-color:#374151}@media (max-width:767px){#pricing-document>.pricing-section{margin-top:40px;padding-top:28px}}#pricing-document section[id=\"models/text\"] table,#pricing-document section[id=\"models/video\"] table{table-layout:fixed;width:100%}#pricing-document section[id=\"models/text\"] table td:first-child,#pricing-document section[id=\"models/text\"] table th:first-child{width:32%}#pricing-document section[id=\"models/video\"] table td:first-child,#pricing-document section[id=\"models/video\"] table th:first-child{width:30%}#pricing-document .video-price-table,#pricing-document .video-task-table{display:table;table-layout:fixed;width:100%}#pricing-document .video-price-table tbody tr:not(:has(strong))>td:first-child,#pricing-document .video-price-table td:has(>strong)+td{padding-left:24px}#pricing-document .video-price-table thead th:nth-child(2){padding-left:24px}.restricted-doc{--restricted-border:rgba(15, 23, 42, .12);--restricted-border-strong:rgba(15, 23, 42, .18);--restricted-muted:#64748b;--restricted-surface:rgba(15, 23, 42, .035);--restricted-surface-hover:rgba(15, 23, 42, .055);--restricted-link:#2563eb;color:inherit}.dark .restricted-doc{--restricted-border:rgba(255, 255, 255, .12);--restricted-border-strong:rgba(255, 255, 255, .18);--restricted-muted:#94a3b8;--restricted-surface:rgba(255, 255, 255, .045);--restricted-surface-hover:rgba(255, 255, 255, .07);--restricted-link:#60a5fa}.restricted-doc-loading{min-height:12rem;display:flex;align-items:center;justify-content:center}.restricted-doc-spinner{width:1.75rem;height:1.75rem;border:2px solid rgba(98,112,132,.24);border-top-color:#627084;border-radius:50%;animation:restricted-doc-spin .75s linear infinite}@media (prefers-reduced-motion:reduce){.restricted-doc-spinner{animation-duration:1.5s}}.restricted-doc>h1{margin:0 0 .75rem;font-size:2.25rem;line-height:1.2;font-weight:700;letter-spacing:-.025em}.restricted-doc-description{margin:0 0 2rem;color:var(--restricted-muted);font-size:1.05rem;line-height:1.7}.restricted-doc h2,.restricted-doc h3,.restricted-doc h4{scroll-margin-top:6rem;font-weight:650;letter-spacing:-.015em}.restricted-doc h2{margin:2.75rem 0 1rem;padding-top:.25rem;font-size:1.65rem;line-height:1.35}.restricted-doc h3{margin:2.1rem 0 .75rem;font-size:1.3rem;line-height:1.4}.restricted-doc h4{margin:1.6rem 0 .5rem;font-size:1.1rem;line-height:1.45}.restricted-doc>p{margin:1rem 0}.restricted-doc li,.restricted-doc p{line-height:1.75}.restricted-doc ol,.restricted-doc ul{margin:1rem 0;padding-left:1.5rem}.restricted-doc li{padding-left:.15rem}.restricted-doc li+li{margin-top:.3rem}.restricted-doc li>p{margin:.25rem 0}.restricted-doc a{color:var(--restricted-link);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--restricted-link) 35%,transparent);text-underline-offset:.2em}.restricted-doc a:hover{text-decoration-color:currentColor}.restricted-doc :not(pre)>code{padding:.15rem .4rem;border:1px solid var(--restricted-border);border-radius:.35rem;background:var(--restricted-surface);font-size:.875em;font-weight:500}.restricted-doc-table-wrap{max-width:100%;margin:1.5rem 0;overflow-x:auto;border:1px solid var(--restricted-border-strong);border-radius:.75rem}.restricted-doc table{width:100%;border-collapse:separate;border-spacing:0;font-size:.925rem;line-height:1.55}.restricted-doc td,.restricted-doc th{min-width:7rem;padding:.75rem 1rem;border-bottom:1px solid var(--restricted-border);vertical-align:top;text-align:left}.restricted-doc td+td,.restricted-doc th+th{border-left:1px solid var(--restricted-border)}.restricted-doc th{background:var(--restricted-surface);font-weight:600;color:inherit}.restricted-doc tbody tr{transition:background-color .15s ease}.restricted-doc tbody tr:hover{background:var(--restricted-surface-hover)}.restricted-doc tr:last-child td{border-bottom:0}.restricted-doc-code{position:relative;margin:1.5rem 0;border:1px solid rgba(255,255,255,.09);border-radius:.75rem;background:#0f172a;color:#e5e7eb;box-shadow:0 1px 2px rgba(15,23,42,.08);overflow:hidden}.restricted-doc-code pre{margin:0;padding:1.1rem 1.2rem;overflow-x:auto;background:0 0}.restricted-doc-code code{display:block;min-width:max-content;padding-right:3.5rem;font-size:.85rem;line-height:1.7;white-space:pre;tab-size:2}.restricted-doc-code button{position:absolute;z-index:1;top:.65rem;right:.65rem;padding:.3rem .6rem;border:1px solid rgba(255,255,255,.16);border-radius:.4rem;background:rgba(30,41,59,.92);color:#cbd5e1;font-size:.75rem;line-height:1.25rem;cursor:pointer;transition:color .15s ease,border-color .15s ease,background-color .15s ease}.restricted-doc-code button:hover{border-color:rgba(255,255,255,.28);background:#334155;color:#fff}.restricted-doc-code .hljs-comment,.restricted-doc-code .hljs-quote{color:#7f8ea3;font-style:italic}.restricted-doc-code .hljs-keyword,.restricted-doc-code .hljs-link,.restricted-doc-code .hljs-literal,.restricted-doc-code .hljs-section,.restricted-doc-code .hljs-selector-tag{color:#c792ea}.restricted-doc-code .hljs-addition,.restricted-doc-code .hljs-attribute,.restricted-doc-code .hljs-bullet,.restricted-doc-code .hljs-name,.restricted-doc-code .hljs-string,.restricted-doc-code .hljs-symbol,.restricted-doc-code .hljs-template-tag,.restricted-doc-code .hljs-template-variable,.restricted-doc-code .hljs-title,.restricted-doc-code .hljs-type,.restricted-doc-code .hljs-variable{color:#addb67}.restricted-doc-code .hljs-built_in,.restricted-doc-code .hljs-builtin-name,.restricted-doc-code .hljs-meta,.restricted-doc-code .hljs-number,.restricted-doc-code .hljs-params{color:#f78c6c}.restricted-doc-code .hljs-attr,.restricted-doc-code .hljs-selector-attr,.restricted-doc-code .hljs-selector-class,.restricted-doc-code .hljs-selector-id,.restricted-doc-code .hljs-selector-pseudo{color:#ffcb6b}.restricted-doc-code .hljs-class .hljs-title,.restricted-doc-code .hljs-function{color:#82aaff}.restricted-doc-code .hljs-deletion,.restricted-doc-code .hljs-regexp{color:#ff5370}.restricted-doc-code .hljs-emphasis{font-style:italic}.restricted-doc-code .hljs-strong{font-weight:700}.restricted-doc-callout{margin:1.5rem 0;padding:.9rem 1rem;border:1px solid rgba(59,130,246,.22);border-radius:.65rem;background:rgba(59,130,246,.07)}.restricted-doc blockquote>:first-child,.restricted-doc-callout>:first-child{margin-top:0}.restricted-doc blockquote>:last-child,.restricted-doc-callout>:last-child{margin-bottom:0}.restricted-doc blockquote{margin:1.5rem 0;padding:.1rem 0 .1rem 1.1rem;border-left:2px solid var(--restricted-border-strong);color:var(--restricted-muted);font-style:italic}.restricted-doc-toc ul{margin:.6rem 0 0;padding:0;list-style:none}.restricted-doc-toc li{margin:.35rem 0;line-height:1.35}.restricted-doc-toc li[data-level=\"3\"]{padding-left:.75rem}.restricted-doc-toc li[data-level=\"4\"]{padding-left:1.5rem}.restricted-doc-toc a{color:var(--restricted-muted);text-decoration:none}.restricted-doc-toc a:hover{color:var(--restricted-link)}.restricted-doc-toc-title{font-weight:600}.restricted-doc-not-found{min-height:20rem;padding:4rem 0;text-align:center}.restricted-doc-not-found h1{font-size:3rem}@media (max-width:768px){.restricted-doc>h1{font-size:1.85rem}.restricted-doc td,.restricted-doc th{min-width:6.5rem;padding:.65rem .75rem}.restricted-doc-code pre{padding:1rem}}"}],"page":{"pagePath":"api-reference/speech-t2a-http","slug":"/api-reference/speech-t2a-http","pageMetadata":{"title":"Synchronous Text to Speech","description":"Submit the full text in a single HTTP request and get the synthesized audio back, with optional streaming output.","openapi":"api-reference/speech/t2a/api/openapi.json POST /v1/t2a_v2","href":"/api-reference/speech-t2a-http"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Submit the full text in a single HTTP request and get the synthesized audio back, with optional streaming output.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,p:`p`,..._provideComponents(),...props.components};return _jsxs(_components.p,{children:[`For the US West endpoint, see `,_jsx(_components.a,{href:`/guides/speech-t2a-websocket#endpoints`,children:`Synchronous Text to Speech · Endpoints`}),`.`]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Synchronous Text to Speech","description":"Submit the full text in a single HTTP request and get the synthesized audio back, with optional streaming output.","openapi":"api-reference/speech/t2a/api/openapi.json POST /v1/t2a_v2","href":"/api-reference/speech-t2a-http"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/minimax-cac98058/74cbedfd7ddc6a81/scripts/auto-token.js","/docs/_mintlify/custom/minimax-cac98058/08175b8daa74cd64/scripts/logo.js","/docs/_mintlify/custom/minimax-cac98058/41d20d74582a83ee/scripts/head-userinfo.js","/docs/_mintlify/custom/minimax-cac98058/ee26a6e83cc5ae7f/scripts/navbar-same-tab.js","/docs/_mintlify/custom/minimax-cac98058/b2a91de372d716f8/scripts/pricing-dropdown.js","/docs/_mintlify/custom/minimax-cac98058/c76999ca41eb4aec/scripts/domain-link-rewrite.js","/docs/_mintlify/custom/minimax-cac98058/12fca2eba4fcc970/scripts/cookie-consent.js","/docs/_mintlify/custom/minimax-cac98058/444224329a77c4b1/scripts/page-view-tracking.js","/docs/_mintlify/custom/minimax-cac98058/07d15e8ada8d8bbf/scripts/restricted-docs-core.js","/docs/_mintlify/custom/minimax-cac98058/409396746d530a03/scripts/restricted-docs-highlight.js","/docs/_mintlify/custom/minimax-cac98058/728362c2608a54be/scripts/restricted-docs.js","/docs/_mintlify/custom/minimax-cac98058/50d87c5c4c9a98b0/scripts/rum.js","/docs/_mintlify/custom/minimax-cac98058/d479ebcf1e03e32e/scripts/pricing-navigation.js","/docs/_mintlify/custom/minimax-cac98058/b067abec70d0dbb6/scripts/feedback-consent.js"],"openApiReferenceData":{"operation":{"summary":"Text to Audio V2","description":"Submit the full text in a single HTTP request and get the synthesized audio back, with optional streaming output.","operationId":"t2aV2","tags":["Text to Audio"],"parameters":["f3f9bc62-0dc7-4dbb-af79-508167ba09f1"],"requestBody":"3311b311-2352-49e4-84d6-36f5d46d6385","responses":{"200":"9d451c0b-53f7-49c8-a2ad-dcf95c4261e4"},"method":"post","type":"path","servers":["14d8579c-19e5-4112-83eb-dfd611c10920"],"security":["300e4067-5e78-4ae9-87d3-98bfb1ce367c"],"path":"/v1/t2a_v2","baseUrlOptions":["https://api.minimax.io"],"title":"Text to Audio V2","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.model":"speech-2.8-hd","body.text":"Omg(sighs), the real danger is not that computers start thinking like people, but that people start thinking like computers. Computers can only help us with simple tasks.","body.stream":false,"body.voice_setting.voice_id":"English_expressive_narrator","body.voice_setting.speed":1,"body.voice_setting.vol":1,"body.voice_setting.pitch":0,"body.audio_setting.sample_rate":32000,"body.audio_setting.bitrate":128000,"body.audio_setting.format":"mp3","body.audio_setting.channel":1,"body.pronunciation_dict.tone.items.0":"Omg/Oh my god","body.language_boost":"auto","body.voice_modify.pitch":0,"body.voice_modify.intensity":0,"body.voice_modify.timbre":0,"body.voice_modify.sound_effects":"spacious_echo","body.output_format":"hex"},{"body.model":"speech-2.8-hd","body.text":"Omg(sighs), the real danger is not that computers start thinking like people, but that people start thinking like computers. Computers can only help us with simple tasks.","body.stream":true,"body.voice_setting.voice_id":"English_expressive_narrator","body.voice_setting.speed":1,"body.voice_setting.vol":1,"body.voice_setting.pitch":0,"body.audio_setting.sample_rate":32000,"body.audio_setting.bitrate":128000,"body.audio_setting.format":"mp3","body.audio_setting.channel":1,"body.pronunciation_dict.tone.items.0":"Omg/Oh my god","body.language_boost":"auto","body.voice_modify.pitch":0,"body.voice_modify.intensity":0,"body.voice_modify.timbre":0,"body.voice_modify.sound_effects":"spacious_echo","body.output_format":"hex"}]},"dependencies":{"parameters":{"f3f9bc62-0dc7-4dbb-af79-508167ba09f1":{"name":"Content-Type","in":"header","required":true,"description":"The media type of the request body. Must be set to `application/json` to ensure the data is sent in JSON format.","schema":{"type":"string","enum":["application/json"],"default":"application/json","isRequired":true,"description":"The media type of the request body. Must be set to `application/json` to ensure the data is sent in JSON format.","uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"requestBody":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["model","text"],"properties":{"model":{"type":"string","description":"The speech synthesis model version to use.","enum":["speech-2.8-hd","speech-2.8-turbo","speech-2.6-hd","speech-2.6-turbo","speech-02-hd","speech-02-turbo","speech-01-hd","speech-01-turbo"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"The text to be converted into speech. Must be less than 10,000 characters.\n\n- For texts over 3,000 characters, streaming output is recommended.\n- Paragraph breaks should be marked with newline characters.\n\n- **Pause control**: You can customize speech pauses by adding markers in the form `\u003c#x#>`, where `x` is the pause duration in seconds. Valid range: `[0.01, 99.99]`, up to two decimal places. Pause markers must be placed between speakable text segments and cannot be used consecutively.\n\n- **Inline pronunciation**: Wrap Mandarin Pinyin (with tone number `1–5`) or IPA symbols or Cantonese Jyutping (with tone number `1–6`) in half-width parentheses to override pronunciation of the target word or polyphonic character.\n - `\"The word live is pronounced (lɪv) as a verb and (laɪv) as an adjective.\"`\n - `\"This is (he2)平, not (huo4)面.\"`\n - `\"去街市買啲(sung3)。\"`\n\n- **Interjection tags**: Only supported when using `speech-2.8-hd` or `speech-2.8-turbo` models. Supported interjections: `(laughs)`, `(chuckle)`, `(coughs)`, `(clear-throat)`, `(groans)`, `(breath)`, `(pant)`, `(inhale)`, `(exhale)`, `(gasps)`, `(sniffs)`, `(sighs)`, `(snorts)`, `(burps)`, `(lip-smacking)`, `(humming)`, `(hissing)`, `(emm)`, `(sneezes)`.","isRequired":true,"uniqueKey":"text","typeLabel":"string"},"stream":{"type":"boolean","description":"Whether to enable streaming output. Defaults to `false`.","uniqueKey":"stream","typeLabel":"boolean"},"stream_options":{"type":"object","properties":{"exclude_aggregated_audio":{"type":"boolean","description":"Determines whether the final chunk should contain aggregated hex-encoded audio data. Default to false, which means the last chunk will include the complete audio.","uniqueKey":"stream_options.exclude_aggregated_audio","typeLabel":"boolean"}},"uniqueKey":"stream_options","typeLabel":"object"},"voice_setting":{"type":"object","required":["voice_id"],"properties":{"voice_id":{"type":"string","description":"The ID of the target voice. \r\n- To apply mixed voices, configure the `timbre_weights` parameter and leave this value empty. \r\n- Supports system voices, cloned voices, and AI-generated voices. Below is a selection of the latest system voices (IDs). The full list of available voices can be viewed on the [System Voice ID List](/faq/system-voice-id) or retrieved programmatically using the [Get Voice API](/api-reference/voice-management-get). \r\n - Chinese:\r\n - moss_audio_ce44fc67-7ce3-11f0-8de5-96e35d26fb85\r\n - moss_audio_aaa1346a-7ce7-11f0-8e61-2e6e3c7ee85d\r\n - Chinese (Mandarin)_Lyrical_Voice\r\n - Chinese (Mandarin)_HK_Flight_Attendant\r\n\r\n - English:\r\n - English_Graceful_Lady\r\n - English_Insightful_Speaker\r\n - English_radiant_girl\r\n - English_Persuasive_Man\r\n - moss_audio_6dc281eb-713c-11f0-a447-9613c873494c\r\n - moss_audio_570551b1-735c-11f0-b236-0adeeecad052\r\n - moss_audio_ad5baf92-735f-11f0-8263-fe5a2fe98ec8\r\n - English_Lucky_Robot\r\n\r\n - Japanese:\r\n - Japanese_Whisper_Belle\r\n - moss_audio_24875c4a-7be4-11f0-9359-4e72c55db738\r\n - moss_audio_7f4ee608-78ea-11f0-bb73-1e2a4cfcd245\r\n - moss_audio_c1a6a3ac-7be6-11f0-8e8e-36b92fbb4f95\r\n\r\n - Cantonese (set `language_boost` to `Chinese,Yue`):\r\n - Cantonese_GentleLady\r\n - Cantonese_podacast_host_1","isRequired":true,"uniqueKey":"voice_setting.voice_id","typeLabel":"string"},"speed":{"type":"number","format":"float","description":"Speech speed. Higher values result in faster speech.\nRange: `[0.5, 2]` (default: `1.0`).","minimum":0.5,"maximum":2,"default":1,"uniqueKey":"voice_setting.speed","typeLabel":"number\u003cfloat>"},"vol":{"type":"number","format":"float","description":"Speech volume. Higher values increase loudness.\nRange: `(0, 10]` (default: `1.0`).","exclusiveMinimum":0,"maximum":10,"default":1,"uniqueKey":"voice_setting.vol","typeLabel":"number\u003cfloat>"},"pitch":{"type":"integer","description":"Speech pitch adjustment.\nRange: `[-12, 12]` (default: `0`, original pitch).","minimum":-12,"maximum":12,"default":0,"uniqueKey":"voice_setting.pitch","typeLabel":"integer"},"emotion":{"type":"string","description":"Emotion control for synthesized speech. Supported values: `[\"happy\", \"sad\", \"angry\", \"fearful\", \"disgusted\", \"surprised\", \"calm\", \"fluent\", \"whisper\"]`. \r\n- By default, the model automatically selects the most natural emotion based on text. Manual specification is only recommended when explicitly needed. \r\n- Available for models: `speech-2.8-hd`, `speech-2.8-turbo`, `speech-2.6-hd`, `speech-2.6-turbo`, `speech-02-hd`, `speech-02-turbo`, `speech-01-hd`, `speech-01-turbo`. \r\n- Option `fluent`, `whisper` is only available for models: `speech-2.6-turbo`, `speech-2.6-hd`. `speech-2.8-hd` and `speech-2.8-turbo` do not support `whisper`.","enum":["happy","sad","angry","fearful","disgusted","surprised","calm","fluent","whisper"],"uniqueKey":"voice_setting.emotion","typeLabel":"enum\u003cstring>"},"text_normalization":{"type":"boolean","description":"Deprecated. Use the top-level `text_normalization_mode` parameter instead: `true` is equivalent to `text_normalization_mode=basic`; `false` or omitted is equivalent to omitting `text_normalization_mode`. If both are set, `text_normalization_mode` takes precedence.\n\nEnable text normalization (Chinese/English). Improves performance in digit-reading scenarios at the cost of slightly higher latency. Default: false.","default":false,"deprecated":true,"uniqueKey":"voice_setting.text_normalization","typeLabel":"boolean"},"latex_read":{"type":"boolean","description":"Enable LaTeX formula reading.\n\n- Only supports Chinese. When this parameter is enabled, `language_boost` will be set to `Chinese`.\n- Formulas must be wrapped with `$$`.\n- If the request contains a formula with `\"\\\"`, it must be escaped as `\"\\\\\"`.\n\nExample: The quadratic formula\n\n\nshould be written as `$$x = \\\\frac{-b \\\\pm \\\\sqrt{b^2 - 4ac}}{2a}$$`","default":false,"uniqueKey":"voice_setting.latex_read","typeLabel":"boolean"}},"uniqueKey":"voice_setting","typeLabel":"object"},"audio_setting":{"type":"object","properties":{"sample_rate":{"type":"integer","format":"int64","description":"Specifies the sampling rate of the generated audio. Supported values: [`8000`, `16000`, `22050`, `24000`, `32000`, `44100`].","uniqueKey":"audio_setting.sample_rate","typeLabel":"integer\u003cint64>"},"bitrate":{"type":"integer","format":"int64","description":"Specifies the bitrate of the generated audio. Supported values: [`32000`, `64000`, `128000`, `256000`]. \nNote: This parameter only applies to audio in `mp3` format.","uniqueKey":"audio_setting.bitrate","typeLabel":"integer\u003cint64>"},"format":{"type":"string","description":"Specifies the format of the generated audio. Supported values: [`mp3`, `pcm`, `flac`, `wav`, `pcmu_raw`, `pcmu_wav`, `opus`].\nNote: `pcmu_raw` and `pcmu_wav` are G.711 μ-law encoded (8 kHz sample rate; `pcmu_raw` is headerless raw, `pcmu_wav` is wrapped in a WAV container). `opus` is Ogg/Opus encoded.","enum":["mp3","pcm","flac","wav","pcmu_raw","pcmu_wav","opus"],"default":"mp3","uniqueKey":"audio_setting.format","typeLabel":"enum\u003cstring>"},"channel":{"type":"integer","format":"int64","description":"Specifies the number of audio channels. Supported values: [`1`, `2`].\n`1` = mono\n`2` = stereo\nDefault is `1`.","uniqueKey":"audio_setting.channel","typeLabel":"integer\u003cint64>"},"force_cbr":{"type":"boolean","description":"Constant Bitrate (CBR) Control\nSet to `true` to enable Constant Bitrate (CBR) for audio encoding.\n\nNote: This parameter only takes effect when output is **streamed** in **MP3** format.","default":false,"uniqueKey":"audio_setting.force_cbr","typeLabel":"boolean"}},"uniqueKey":"audio_setting","typeLabel":"object"},"pronunciation_dict":{"type":"object","properties":{"tone":{"type":"array","description":"Defines custom pronunciation rules in `original/replacement` format. The replacement can be plain text, pinyin with tone numbers in parentheses, IPA in parentheses, or Japanese kana (hiragana, katakana, romaji — mixable). Multiple rules are applied simultaneously.\n\nExample:\n```json dark\n\"pronunciation_dict\": {\n \"tone\": [\n \"resume/(rɪˈzjuːm)\",\n \"read/(riːd)\",\n \"处理/(chu3)(li3)\",\n \"郑栅洁/(zheng4)(shan1)杰\",\n \"20日/はつか\",\n \"4桁/よんけた\",\n \"東京/トウキョウ\",\n \"omg/oh my god\",\n \"の/no\"\n ]\n}\n```\n\nThis single dictionary demonstrates: IPA for English polyphonic words, pinyin with tone numbers for Chinese, mixed pinyin + characters, Japanese hiragana/katakana for date counters and kanji, text-to-text expansion, and symbol substitution.\n\nChinese tones: `1` = first, `2` = second, `3` = third, `4` = fourth, `5` = neutral.","items":{"type":"string","uniqueKey":"pronunciation_dict.tone.items.[INDEX]","typeLabel":"string"},"uniqueKey":"pronunciation_dict.tone","typeLabel":"string[]"}},"uniqueKey":"pronunciation_dict","typeLabel":"object"},"timbre_weights":{"type":"array","description":"Timbre weights (legacy field)","items":{"type":"object","required":["voice_id","weight"],"properties":{"voice_id":{"type":"string","description":"The ID of the voice used for synthesis. Must be specified together with `weight`.\nSupports system voices, cloned voices, and text-to-voice generated voices. The full list of available voices can be viewed on the [System Voice ID List](/faq/system-voice-id) or retrieved programmatically using the [Get Voice API](/api-reference/voice-management-get). ","isRequired":true,"uniqueKey":"timbre_weights.items.[INDEX].voice_id","typeLabel":"string"},"weight":{"type":"integer","format":"int64","description":"The weight assigned to each voice. Must be specified together with `voice_id`.\nSupported range: `[1, 100]`. Up to 4 voices can be mixed. A higher weight value increases similarity to the corresponding voice.\n\n- Parameter Configuration Example:\n```json dark\n\"timbre_weights\": [\n {\n \"voice_id\": \"female-chengshu\",\n \"weight\": 30\n },\n {\n \"voice_id\": \"female-tianmei\",\n \"weight\": 70\n }\n]\n```","minimum":1,"maximum":100,"isRequired":true,"uniqueKey":"timbre_weights.items.[INDEX].weight","typeLabel":"integer\u003cint64>"}},"example":{"voice_id":"female-chengshu","weight":30},"uniqueKey":"timbre_weights.items.[INDEX]","typeLabel":"object"},"uniqueKey":"timbre_weights","typeLabel":"object[]"},"language_boost":{"type":"string","description":"Controls whether recognition for specific minority languages and dialects is enhanced. Default is `null`. If the language type is unknown, set to `\"auto\"` and the model will automatically detect it.\n\nNote: The speech-01 and speech-02 series models do not currently support Persian, Filipino, or Tamil.","enum":["Chinese","Chinese,Yue","English","Arabic","Russian","Spanish","French","Portuguese","German","Turkish","Dutch","Ukrainian","Vietnamese","Indonesian","Japanese","Italian","Korean","Thai","Polish","Romanian","Greek","Czech","Finnish","Hindi","Bulgarian","Danish","Hebrew","Malay","Persian","Slovak","Swedish","Croatian","Filipino","Hungarian","Norwegian","Slovenian","Catalan","Nynorsk","Tamil","Afrikaans","auto"],"default":null,"uniqueKey":"language_boost","typeLabel":"enum\u003cstring>"},"text_normalization_mode":{"type":"string","description":"Text normalization. `basic` uses fast, rule-based normalization. `quality` uses a hybrid LLM + rule-based approach to improve normalization quality, with additional latency. See [Text Normalization](/guides/speech-t2a-websocket#text-normalization).\n\nNote:\n- `quality` currently takes effect only for non-streaming requests (`stream=false`) with `speech-2.8-hd`, `speech-2.8-turbo`, `speech-2.6-hd`, and `speech-2.6-turbo`. For streaming requests or other models, `quality` is processed as `basic` and no error is returned.\n- When this parameter is set, `voice_setting.text_normalization` is ignored. If it is omitted, the `voice_setting.text_normalization` setting applies (disabled by default).","enum":["basic","quality"],"x-mint":{"post":["updated"]},"uniqueKey":"text_normalization_mode","typeLabel":"enum\u003cstring>"},"voice_modify":{"type":"object","description":"Voice effects configuration.\n\nSupported audio formats:\n- Non-streaming: `mp3`, `wav`, `flac`\n- Streaming: `mp3`","properties":{"pitch":{"type":"integer","description":"Corresponds to the \"Deepen/Brighten\" slider on the official page. Range: `[-100, 100]`. Values closer to -100 produce a deeper voice, while values closer to 100 result in a brighter tone.\n\n","minimum":-100,"maximum":100,"uniqueKey":"voice_modify.pitch","typeLabel":"integer"},"intensity":{"type":"integer","description":"Corresponds to the \"Stronger/Softer\" slider on the official page. Range: `[-100, 100]`. Values closer to -100 create a stronger, more forceful sound, while values closer to 100 yield a softer tone.\n\n","minimum":-100,"maximum":100,"uniqueKey":"voice_modify.intensity","typeLabel":"integer"},"timbre":{"type":"integer","description":"Corresponds to the \"Nasal/Crisp\" slider on the official page. Range: `[-100, 100]`. Values closer to -100 produce a fuller, richer sound, while values closer to 100 generate a crisper tone.\n\n","minimum":-100,"maximum":100,"uniqueKey":"voice_modify.timbre","typeLabel":"integer"},"sound_effects":{"type":"string","description":"Sound effects. Only one can be applied at a time. Options: `spacious_echo`, `auditorium_echo`, `lofi_telephone`, `robotic`","enum":["spacious_echo","auditorium_echo","lofi_telephone","robotic"],"uniqueKey":"voice_modify.sound_effects","typeLabel":"enum\u003cstring>"}},"uniqueKey":"voice_modify","typeLabel":"object"},"subtitle_enable":{"type":"boolean","description":"Controls whether subtitles are enabled. Default is false. Available for models: `speech-2.8-hd`, `speech-2.8-turbo`, `speech-2.6-hd`, `speech-2.6-turbo`, `speech-02-hd`, `speech-02-turbo`, `speech-01-hd`, `speech-01-turbo`.","default":false,"uniqueKey":"subtitle_enable","typeLabel":"boolean"},"subtitle_type":{"type":"string","description":"Subtitle granularity. Default is `sentence`. Options:\n- `sentence`: sentence-level timestamps\n- `word`: word-level timestamps\n- `word_streaming`: word-level timestamps optimized for streaming, only valid when `stream=true`\n\nIn streaming mode (`stream=true`), subtitles are delivered in `data.subtitle` along with the audio, and `subtitle_file` is not returned:\n- `sentence` / `word`: returned once per segment, on the last audio chunk of that segment. `sentence` does not include `timestamped_words`\n- `word_streaming`: returned on every audio chunk, carrying the cumulative subtitle of the current segment so far (`timestamped_words` and `time_end` keep growing). Replace the previous result of the same segment with the latest one; a change of `text_begin` means a new segment has started\n\nIn non-streaming mode, subtitles are returned as a file via `subtitle_file`.","enum":["sentence","word","word_streaming"],"default":"sentence","uniqueKey":"subtitle_type","typeLabel":"enum\u003cstring>"},"output_format":{"type":"string","description":"Controls the output format. Options: `[url, hex]`. Default is `hex`. Only effective in non-streaming scenarios. In streaming, only `hex` is supported. Returned url is valid for 24 hours.","enum":["url","hex"],"default":"hex","uniqueKey":"output_format","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Request(Non-streaming)":{"title":"Request(Non-streaming)","value":{"model":"speech-2.8-hd","text":"Omg(sighs), the real danger is not that computers start thinking like people, but that people start thinking like computers. Computers can only help us with simple tasks.","stream":false,"language_boost":"auto","output_format":"hex","voice_setting":{"voice_id":"English_expressive_narrator","speed":1,"vol":1,"pitch":0},"pronunciation_dict":{"tone":["Omg/Oh my god"]},"audio_setting":{"sample_rate":32000,"bitrate":128000,"format":"mp3","channel":1},"voice_modify":{"pitch":0,"intensity":0,"timbre":0,"sound_effects":"spacious_echo"}}},"Request(Streaming)":{"title":"Request(Streaming)","value":{"model":"speech-2.8-hd","text":"Omg(sighs), the real danger is not that computers start thinking like people, but that people start thinking like computers. Computers can only help us with simple tasks.","stream":true,"language_boost":"auto","output_format":"hex","voice_setting":{"voice_id":"English_expressive_narrator","speed":1,"vol":1,"pitch":0},"pronunciation_dict":{"tone":["Omg/Oh my god"]},"audio_setting":{"sample_rate":32000,"bitrate":128000,"format":"mp3","channel":1},"voice_modify":{"pitch":0,"intensity":0,"timbre":0,"sound_effects":"spacious_echo"}}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"9d451c0b-53f7-49c8-a2ad-dcf95c4261e4":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"The synthesized audio data object. The returned data object may be null, so a null check is required.","properties":{"audio":{"type":"string","description":"The synthesized audio data, encoded in hexadecimal, with a format consistent with the output format specified in the request.","uniqueKey":"data.audio","typeLabel":"string"},"subtitle_file":{"type":"string","description":"Download link for generated subtitles. Subtitles are aligned to sentences (≤ 50 characters), timestamped in milliseconds, returned in JSON format Returned only for non-streaming requests (`stream=false`); for streaming, use `subtitle` / `subtitles`.","uniqueKey":"data.subtitle_file","typeLabel":"string"},"subtitle":{"type":"object","description":"Returned in streaming mode (`stream=true`) when subtitles are enabled. Carries the subtitle of the current segment and is delivered with the corresponding audio chunk. Timing depends on `subtitle_type`: `sentence` / `word` are returned once on the last audio chunk of each segment; `word_streaming` returns the cumulative result of the current segment on every audio chunk.","properties":{"text":{"type":"string","description":"Segment text.","uniqueKey":"data.subtitle.text","typeLabel":"string"},"text_begin":{"type":"integer","format":"int64","description":"Start character offset of the segment in the synthesized text (inclusive).","uniqueKey":"data.subtitle.text_begin","typeLabel":"integer\u003cint64>"},"text_end":{"type":"integer","format":"int64","description":"End character offset of the segment in the synthesized text (exclusive).","uniqueKey":"data.subtitle.text_end","typeLabel":"integer\u003cint64>"},"time_begin":{"type":"number","description":"Segment start time in milliseconds, relative to the start of the synthesized audio.","uniqueKey":"data.subtitle.time_begin","typeLabel":"number"},"time_end":{"type":"number","description":"Segment end time in milliseconds, relative to the start of the synthesized audio.","uniqueKey":"data.subtitle.time_end","typeLabel":"number"},"timestamped_words":{"type":"array","description":"Word-level timestamps. Returned only when `subtitle_type` is `word` / `word_streaming`; `null` for `sentence`.","items":{"type":"object","description":"Word-level timestamp.","properties":{"word":{"type":"string","description":"Word text.","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].word","typeLabel":"string"},"word_begin":{"type":"integer","format":"int64","description":"Start character offset of the word in the synthesized text (inclusive).","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].word_begin","typeLabel":"integer\u003cint64>"},"word_end":{"type":"integer","format":"int64","description":"End character offset of the word in the synthesized text (exclusive).","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].word_end","typeLabel":"integer\u003cint64>"},"time_begin":{"type":"number","description":"Word start time in milliseconds.","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].time_begin","typeLabel":"number"},"time_end":{"type":"number","description":"Word end time in milliseconds.","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].time_end","typeLabel":"number"}},"uniqueKey":"data.subtitle.timestamped_words.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.subtitle.timestamped_words","typeLabel":"object[]"}},"uniqueKey":"data.subtitle","typeLabel":"object"},"subtitles":{"type":"array","description":"Returned in streaming mode (`stream=true`) when subtitles are enabled, in the last packet (`status=2`). Aggregates the subtitles of all segments in this request.","items":{"type":"object","description":"Segment subtitle. The engine splits the text into segments (usually one sentence each); each segment has one subtitle entry.","properties":{"text":{"type":"string","description":"Segment text.","uniqueKey":"data.subtitles.items.[INDEX].text","typeLabel":"string"},"text_begin":{"type":"integer","format":"int64","description":"Start character offset of the segment in the synthesized text (inclusive).","uniqueKey":"data.subtitles.items.[INDEX].text_begin","typeLabel":"integer\u003cint64>"},"text_end":{"type":"integer","format":"int64","description":"End character offset of the segment in the synthesized text (exclusive).","uniqueKey":"data.subtitles.items.[INDEX].text_end","typeLabel":"integer\u003cint64>"},"time_begin":{"type":"number","description":"Segment start time in milliseconds, relative to the start of the synthesized audio.","uniqueKey":"data.subtitles.items.[INDEX].time_begin","typeLabel":"number"},"time_end":{"type":"number","description":"Segment end time in milliseconds, relative to the start of the synthesized audio.","uniqueKey":"data.subtitles.items.[INDEX].time_end","typeLabel":"number"},"timestamped_words":{"type":"array","description":"Word-level timestamps. Returned only when `subtitle_type` is `word` / `word_streaming`; `null` for `sentence`.","items":{"type":"object","description":"Word-level timestamp.","properties":{"word":{"type":"string","description":"Word text.","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].word","typeLabel":"string"},"word_begin":{"type":"integer","format":"int64","description":"Start character offset of the word in the synthesized text (inclusive).","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].word_begin","typeLabel":"integer\u003cint64>"},"word_end":{"type":"integer","format":"int64","description":"End character offset of the word in the synthesized text (exclusive).","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].word_end","typeLabel":"integer\u003cint64>"},"time_begin":{"type":"number","description":"Word start time in milliseconds.","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].time_begin","typeLabel":"number"},"time_end":{"type":"number","description":"Word end time in milliseconds.","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].time_end","typeLabel":"number"}},"uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.subtitles.items.[INDEX].timestamped_words","typeLabel":"object[]"}},"uniqueKey":"data.subtitles.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.subtitles","typeLabel":"object[]"},"status":{"type":"integer","description":"Current audio stream status.\n\n`1`: synthesizing\n`2`: synthesis completed","uniqueKey":"data.status","typeLabel":"integer"}},"uniqueKey":"data","typeLabel":"object"},"trace_id":{"type":"string","description":"The session ID, used for troubleshooting and support.","uniqueKey":"trace_id","typeLabel":"string"},"extra_info":{"type":"object","description":"Additional audio information.","properties":{"audio_length":{"type":"integer","format":"int64","description":"Audio duration in milliseconds.","uniqueKey":"extra_info.audio_length","typeLabel":"integer\u003cint64>"},"audio_sample_rate":{"type":"integer","format":"int64","description":"Audio sample rate.","uniqueKey":"extra_info.audio_sample_rate","typeLabel":"integer\u003cint64>"},"audio_size":{"type":"integer","format":"int64","description":"File size in bytes.","uniqueKey":"extra_info.audio_size","typeLabel":"integer\u003cint64>"},"bitrate":{"type":"integer","format":"int64","description":"Audio bitrate.","uniqueKey":"extra_info.bitrate","typeLabel":"integer\u003cint64>"},"audio_format":{"type":"string","description":"Output audio format. Options: [mp3, pcm, flac].","enum":["mp3","pcm","flac"],"uniqueKey":"extra_info.audio_format","typeLabel":"enum\u003cstring>"},"audio_channel":{"type":"integer","format":"int64","description":"Number of channels. 1 for mono , 2 for stereo.","uniqueKey":"extra_info.audio_channel","typeLabel":"integer\u003cint64>"},"invisible_character_ratio":{"type":"number","format":"float64","description":"Proportion of invalid characters.\nIf ≤ 10%, audio is generated normally and the ratio is returned.\nIf > 10%, an error is returned.","uniqueKey":"extra_info.invisible_character_ratio","typeLabel":"number\u003cfloat64>"},"usage_characters":{"type":"integer","format":"int64","description":"Number of billable characters used in this synthesis.","uniqueKey":"extra_info.usage_characters","typeLabel":"integer\u003cint64>"},"usage_voice_count":{"type":"integer","format":"int64","description":"Number of voices billed in this request (a voice is charged on its first use). Returned only when a voice fee is incurred.","uniqueKey":"extra_info.usage_voice_count","typeLabel":"integer\u003cint64>"},"word_count":{"type":"integer","format":"int64","description":"Number of characters in the synthesized text (punctuation and spaces included). For reference only and not used for billing; see `usage_characters` for billable characters.","uniqueKey":"extra_info.word_count","typeLabel":"integer\u003cint64>"},"norm_text_char_count":{"type":"integer","format":"int64","description":"Number of characters processed by high-quality text normalization in this request (counted in Unicode characters). Returned only for non-streaming requests with `text_normalization_mode=quality`; `0` means high-quality normalization was not performed (for example, the model does not support it). For reference only and currently not used for billing.","uniqueKey":"extra_info.norm_text_char_count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"extra_info","typeLabel":"object"},"base_resp":{"type":"object","description":"Status code and details of this request.","properties":{"status_code":{"type":"integer","format":"int64","description":"Status code.\n\n`0`: success\n`1000`: unknown error\n`1001`: timeout\n`1002`: rate limit exceeded\n`1004`: authentication failed\n`1039`: TPM rate limit exceeded\n`1042`: invalid characters exceed `10%`\n`2013`: invalid input parameters\n\nFor more details, see [Error Code Reference](/api-reference/errorcode).","uniqueKey":"base_resp.status_code","typeLabel":"integer\u003cint64>"},"status_msg":{"type":"string","description":"Status description.","uniqueKey":"base_resp.status_msg","typeLabel":"string"}},"uniqueKey":"base_resp","typeLabel":"object"}},"example":{"data":{"audio":"\u003chex encoded audio>","status":2},"extra_info":{"audio_length":11124,"audio_sample_rate":32000,"audio_size":179926,"bitrate":128000,"word_count":163,"invisible_character_ratio":0,"usage_characters":163,"audio_format":"mp3","audio_channel":1},"trace_id":"01b8bf9bb7433cc75c18eee6cfa8fe21","base_resp":{"status_code":0,"status_msg":"success"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Request(Non-streaming)":{"title":"Request(Non-streaming)","value":{"data":{"audio":"\u003chex encoded audio>","status":2},"extra_info":{"audio_length":11124,"audio_sample_rate":32000,"audio_size":179926,"bitrate":128000,"word_count":163,"invisible_character_ratio":0,"usage_characters":163,"audio_format":"mp3","audio_channel":1},"trace_id":"01b8bf9bb7433cc75c18eee6cfa8fe21","base_resp":{"status_code":0,"status_msg":"success"}}},"Request(Streaming)":{"title":"Request(Streaming)","value":[{"data":{"audio":"hex encoded audio","status":2},"extra_info":{"audio_length":12910,"audio_sample_rate":32000,"audio_size":205677,"bitrate":128000,"word_count":163,"invisible_character_ratio":0,"usage_characters":163,"audio_format":"mp3","audio_channel":1},"trace_id":"04ece790375f3ca2edbb44e8c4c200bf","base_resp":{"status_code":0,"status_msg":"success"}},{"data":{"audio":"hex encoded audio_chunk3","status":1},"trace_id":"01b8bf9bb7433cc75c18eee6cfa8fe21","base_resp":{"status_code":0,"status_msg":""}},{"data":{"audio":"hex encoded audio_chunk2","status":1},"trace_id":"01b8bf9bb7433cc75c18eee6cfa8fe21","base_resp":{"status_code":0,"status_msg":""}},{"data":{"audio":"hex encoded audio_chunk1","status":1},"trace_id":"01b8bf9bb7433cc75c18eee6cfa8fe21","base_resp":{"status_code":0,"status_msg":""}}]}},"exampleType":"examples"},"text/event-stream":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"The synthesized audio data object. The returned data object may be null, so a null check is required.","properties":{"audio":{"type":"string","description":"The synthesized audio data, encoded in hexadecimal, with a format consistent with the output format specified in the request.","uniqueKey":"data.audio","typeLabel":"string"},"subtitle_file":{"type":"string","description":"Download link for generated subtitles. Subtitles are aligned to sentences (≤ 50 characters), timestamped in milliseconds, returned in JSON format Returned only for non-streaming requests (`stream=false`); for streaming, use `subtitle` / `subtitles`.","uniqueKey":"data.subtitle_file","typeLabel":"string"},"subtitle":{"type":"object","description":"Returned in streaming mode (`stream=true`) when subtitles are enabled. Carries the subtitle of the current segment and is delivered with the corresponding audio chunk. Timing depends on `subtitle_type`: `sentence` / `word` are returned once on the last audio chunk of each segment; `word_streaming` returns the cumulative result of the current segment on every audio chunk.","properties":{"text":{"type":"string","description":"Segment text.","uniqueKey":"data.subtitle.text","typeLabel":"string"},"text_begin":{"type":"integer","format":"int64","description":"Start character offset of the segment in the synthesized text (inclusive).","uniqueKey":"data.subtitle.text_begin","typeLabel":"integer\u003cint64>"},"text_end":{"type":"integer","format":"int64","description":"End character offset of the segment in the synthesized text (exclusive).","uniqueKey":"data.subtitle.text_end","typeLabel":"integer\u003cint64>"},"time_begin":{"type":"number","description":"Segment start time in milliseconds, relative to the start of the synthesized audio.","uniqueKey":"data.subtitle.time_begin","typeLabel":"number"},"time_end":{"type":"number","description":"Segment end time in milliseconds, relative to the start of the synthesized audio.","uniqueKey":"data.subtitle.time_end","typeLabel":"number"},"timestamped_words":{"type":"array","description":"Word-level timestamps. Returned only when `subtitle_type` is `word` / `word_streaming`; `null` for `sentence`.","items":{"type":"object","description":"Word-level timestamp.","properties":{"word":{"type":"string","description":"Word text.","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].word","typeLabel":"string"},"word_begin":{"type":"integer","format":"int64","description":"Start character offset of the word in the synthesized text (inclusive).","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].word_begin","typeLabel":"integer\u003cint64>"},"word_end":{"type":"integer","format":"int64","description":"End character offset of the word in the synthesized text (exclusive).","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].word_end","typeLabel":"integer\u003cint64>"},"time_begin":{"type":"number","description":"Word start time in milliseconds.","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].time_begin","typeLabel":"number"},"time_end":{"type":"number","description":"Word end time in milliseconds.","uniqueKey":"data.subtitle.timestamped_words.items.[INDEX].time_end","typeLabel":"number"}},"uniqueKey":"data.subtitle.timestamped_words.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.subtitle.timestamped_words","typeLabel":"object[]"}},"uniqueKey":"data.subtitle","typeLabel":"object"},"subtitles":{"type":"array","description":"Returned in streaming mode (`stream=true`) when subtitles are enabled, in the last packet (`status=2`). Aggregates the subtitles of all segments in this request.","items":{"type":"object","description":"Segment subtitle. The engine splits the text into segments (usually one sentence each); each segment has one subtitle entry.","properties":{"text":{"type":"string","description":"Segment text.","uniqueKey":"data.subtitles.items.[INDEX].text","typeLabel":"string"},"text_begin":{"type":"integer","format":"int64","description":"Start character offset of the segment in the synthesized text (inclusive).","uniqueKey":"data.subtitles.items.[INDEX].text_begin","typeLabel":"integer\u003cint64>"},"text_end":{"type":"integer","format":"int64","description":"End character offset of the segment in the synthesized text (exclusive).","uniqueKey":"data.subtitles.items.[INDEX].text_end","typeLabel":"integer\u003cint64>"},"time_begin":{"type":"number","description":"Segment start time in milliseconds, relative to the start of the synthesized audio.","uniqueKey":"data.subtitles.items.[INDEX].time_begin","typeLabel":"number"},"time_end":{"type":"number","description":"Segment end time in milliseconds, relative to the start of the synthesized audio.","uniqueKey":"data.subtitles.items.[INDEX].time_end","typeLabel":"number"},"timestamped_words":{"type":"array","description":"Word-level timestamps. Returned only when `subtitle_type` is `word` / `word_streaming`; `null` for `sentence`.","items":{"type":"object","description":"Word-level timestamp.","properties":{"word":{"type":"string","description":"Word text.","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].word","typeLabel":"string"},"word_begin":{"type":"integer","format":"int64","description":"Start character offset of the word in the synthesized text (inclusive).","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].word_begin","typeLabel":"integer\u003cint64>"},"word_end":{"type":"integer","format":"int64","description":"End character offset of the word in the synthesized text (exclusive).","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].word_end","typeLabel":"integer\u003cint64>"},"time_begin":{"type":"number","description":"Word start time in milliseconds.","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].time_begin","typeLabel":"number"},"time_end":{"type":"number","description":"Word end time in milliseconds.","uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX].time_end","typeLabel":"number"}},"uniqueKey":"data.subtitles.items.[INDEX].timestamped_words.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.subtitles.items.[INDEX].timestamped_words","typeLabel":"object[]"}},"uniqueKey":"data.subtitles.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.subtitles","typeLabel":"object[]"},"status":{"type":"integer","description":"Current audio stream status.\n\n`1`: synthesizing\n`2`: synthesis completed","uniqueKey":"data.status","typeLabel":"integer"}},"uniqueKey":"data","typeLabel":"object"},"trace_id":{"type":"string","description":"The session ID, used for troubleshooting and support.","uniqueKey":"trace_id","typeLabel":"string"},"extra_info":{"type":"object","description":"Additional audio information.","properties":{"audio_length":{"type":"integer","format":"int64","description":"Audio duration in milliseconds.","uniqueKey":"extra_info.audio_length","typeLabel":"integer\u003cint64>"},"audio_sample_rate":{"type":"integer","format":"int64","description":"Audio sample rate.","uniqueKey":"extra_info.audio_sample_rate","typeLabel":"integer\u003cint64>"},"audio_size":{"type":"integer","format":"int64","description":"File size in bytes.","uniqueKey":"extra_info.audio_size","typeLabel":"integer\u003cint64>"},"bitrate":{"type":"integer","format":"int64","description":"Audio bitrate.","uniqueKey":"extra_info.bitrate","typeLabel":"integer\u003cint64>"},"audio_format":{"type":"string","description":"Output audio format. Options: [mp3, pcm, flac].","enum":["mp3","pcm","flac"],"uniqueKey":"extra_info.audio_format","typeLabel":"enum\u003cstring>"},"audio_channel":{"type":"integer","format":"int64","description":"Number of channels. 1 for mono , 2 for stereo.","uniqueKey":"extra_info.audio_channel","typeLabel":"integer\u003cint64>"},"invisible_character_ratio":{"type":"number","format":"float64","description":"Proportion of invalid characters.\nIf ≤ 10%, audio is generated normally and the ratio is returned.\nIf > 10%, an error is returned.","uniqueKey":"extra_info.invisible_character_ratio","typeLabel":"number\u003cfloat64>"},"usage_characters":{"type":"integer","format":"int64","description":"Number of billable characters used in this synthesis.","uniqueKey":"extra_info.usage_characters","typeLabel":"integer\u003cint64>"},"usage_voice_count":{"type":"integer","format":"int64","description":"Number of voices billed in this request (a voice is charged on its first use). Returned only when a voice fee is incurred.","uniqueKey":"extra_info.usage_voice_count","typeLabel":"integer\u003cint64>"},"word_count":{"type":"integer","format":"int64","description":"Number of characters in the synthesized text (punctuation and spaces included). For reference only and not used for billing; see `usage_characters` for billable characters.","uniqueKey":"extra_info.word_count","typeLabel":"integer\u003cint64>"},"norm_text_char_count":{"type":"integer","format":"int64","description":"Number of characters processed by high-quality text normalization in this request (counted in Unicode characters). Returned only for non-streaming requests with `text_normalization_mode=quality`; `0` means high-quality normalization was not performed (for example, the model does not support it). For reference only and currently not used for billing.","uniqueKey":"extra_info.norm_text_char_count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"extra_info","typeLabel":"object"},"base_resp":{"type":"object","description":"Status code and details of this request.","properties":{"status_code":{"type":"integer","format":"int64","description":"Status code.\n\n`0`: success\n`1000`: unknown error\n`1001`: timeout\n`1002`: rate limit exceeded\n`1004`: authentication failed\n`1039`: TPM rate limit exceeded\n`1042`: invalid characters exceed `10%`\n`2013`: invalid input parameters\n\nFor more details, see [Error Code Reference](/api-reference/errorcode).","uniqueKey":"base_resp.status_code","typeLabel":"integer\u003cint64>"},"status_msg":{"type":"string","description":"Status description.","uniqueKey":"base_resp.status_msg","typeLabel":"string"}},"uniqueKey":"base_resp","typeLabel":"object"}},"example":{"data":{"audio":"\u003chex encoded audio>","status":2},"extra_info":{"audio_length":11124,"audio_sample_rate":32000,"audio_size":179926,"bitrate":128000,"word_count":163,"invisible_character_ratio":0,"usage_characters":163,"audio_format":"mp3","audio_channel":1},"trace_id":"01b8bf9bb7433cc75c18eee6cfa8fe21","base_resp":{"status_code":0,"status_msg":"success"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Request(Streaming)":{"title":"Request(Streaming)","value":[{"data":{"audio":"hex encoded audio","status":2},"extra_info":{"audio_length":12910,"audio_sample_rate":32000,"audio_size":205677,"bitrate":128000,"word_count":163,"invisible_character_ratio":0,"usage_characters":163,"audio_format":"mp3","audio_channel":1},"trace_id":"04ece790375f3ca2edbb44e8c4c200bf","base_resp":{"status_code":0,"status_msg":"success"}},{"data":{"audio":"hex encoded audio_chunk3","status":1},"trace_id":"01b8bf9bb7433cc75c18eee6cfa8fe21","base_resp":{"status_code":0,"status_msg":""}},{"data":{"audio":"hex encoded audio_chunk2","status":1},"trace_id":"01b8bf9bb7433cc75c18eee6cfa8fe21","base_resp":{"status_code":0,"status_msg":""}},{"data":{"audio":"hex encoded audio_chunk1","status":1},"trace_id":"01b8bf9bb7433cc75c18eee6cfa8fe21","base_resp":{"status_code":0,"status_msg":""}}]}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"300e4067-5e78-4ae9-87d3-98bfb1ce367c":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"`HTTP: Bearer Auth`\n- Security Scheme Type: http\n- HTTP Authorization Scheme: `Bearer API_key`, can be found in [Account Management>API Keys](https://platform.minimax.io/user-center/basic-information/interface-key).","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"14d8579c-19e5-4112-83eb-dfd611c10920":{"url":"https://api.minimax.io"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"`HTTP: Bearer Auth`\n- Security Scheme Type: http\n- HTTP Authorization Scheme: `Bearer API_key`, can be found in [Account Management>API Keys](https://platform.minimax.io/user-center/basic-information/interface-key).","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"`HTTP: Bearer Auth`\n- Security Scheme Type: http\n- HTTP Authorization Scheme: `Bearer API_key`, can be found in [Account Management>API Keys](https://platform.minimax.io/user-center/basic-information/interface-key).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/speech/t2a/api/openapi.json"},"subdomain":"minimax-cac98058","siteName":"MiniMax API Docs","title":"Synchronous Text to Speech - MiniMax API Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-28T09:31:00.599Z","originalFileLocation":"api-reference/speech-t2a-http.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Submit the full text in a single HTTP request and get the synthesized audio back, with optional streaming output.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MiniMax API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Synchronous Text to Speech - MiniMax API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Submit the full text in a single HTTP request and get the synthesized audio back, with optional streaming output.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MiniMax API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://platform.minimax.io/docs/api-reference/speech-t2a-http\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://filecdn.minimax.chat/public/58eca777-e31f-448a-9823-e2220e49b426.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Synchronous Text to Speech - MiniMax API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Submit the full text in a single HTTP request and get the synthesized audio back, with optional streaming output.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://filecdn.minimax.chat/public/58eca777-e31f-448a-9823-e2220e49b426.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MiniMax API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#181E25\">\u003cmeta data-mint-head name=\"charset\" content=\"UTF-8\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://platform.minimax.io/docs/api-reference/speech-t2a-http\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/speech-t2a-http.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://platform.minimax.io/#organization\",\"name\":\"MiniMax API Docs\",\"url\":\"https://platform.minimax.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/minimax-cac98058/XYzsL2L2ynonu2Q_/logo/light.svg?fit=max\u0026auto=format\u0026n=XYzsL2L2ynonu2Q_\u0026q=85\u0026s=9c99bb2678d62388d8a4e7cce1750858\"}},{\"@type\":\"WebSite\",\"@id\":\"https://platform.minimax.io/docs#website\",\"name\":\"MiniMax API Docs\",\"url\":\"https://platform.minimax.io/docs\",\"publisher\":{\"@id\":\"https://platform.minimax.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://platform.minimax.io/docs/api-reference/speech-t2a-http#webpage\",\"url\":\"https://platform.minimax.io/docs/api-reference/speech-t2a-http\",\"name\":\"Synchronous Text to Speech\",\"description\":\"Submit the full text in a single HTTP request and get the synthesized audio back, with optional streaming output.\",\"dateModified\":\"2026-09-28T09:31:00.599Z\",\"isPartOf\":{\"@id\":\"https://platform.minimax.io/docs#website\"},\"breadcrumb\":{\"@id\":\"https://platform.minimax.io/docs/api-reference/speech-t2a-http#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://platform.minimax.io/docs/api-reference/speech-t2a-http#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Speech\",\"item\":\"https://platform.minimax.io/docs/api-reference/speech-to-text\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Synchronous Text to Speech\",\"item\":\"https://platform.minimax.io/docs/api-reference/speech-t2a-http\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://platform.minimax.io/docs/api-reference/speech-t2a-http#apireference\",\"headline\":\"Synchronous Text to Speech\",\"name\":\"Synchronous Text to Speech\",\"description\":\"Submit the full text in a single HTTP request and get the synthesized audio back, with optional streaming output.\",\"url\":\"https://platform.minimax.io/docs/api-reference/speech-t2a-http\",\"mainEntityOfPage\":{\"@id\":\"https://platform.minimax.io/docs/api-reference/speech-t2a-http#webpage\"},\"image\":\"https://filecdn.minimax.chat/public/58eca777-e31f-448a-9823-e2220e49b426.png\",\"dateModified\":\"2026-09-28T09:31:00.599Z\",\"publisher\":{\"@id\":\"https://platform.minimax.io/#organization\"},\"isPartOf\":{\"@id\":\"https://platform.minimax.io/docs#website\"}}]}\u003c/script>","siteName":"MiniMax API Docs","nav":{"global":null,"tabs":[{"tab":"Developer Guides","pages":[{"title":"Developer Guides","href":"/guides/models-intro"}]},{"tab":"API","groups":[{"group":"Using the API","pages":[{"title":"API Overview","sidebarTitle":"API Overview","href":"/api-reference/api-overview"},{"title":"Rate Limits","href":"/guides/rate-limits"},{"title":"Error Codes","sidebarTitle":"Error Code Reference","href":"/api-reference/errorcode"}]},{"group":"Text","icon":"https://filecdn.minimax.chat/public/4ab63cda-da2a-4c77-b1c7-900d2562073f.png","pages":[{"title":"Anthropic SDK","sidebarTitle":"Anthropic SDK (Recommended)","href":"/api-reference/text-anthropic-api"},{"title":"OpenAI SDK","sidebarTitle":"OpenAI SDK","href":"/api-reference/text-openai-api"},{"title":"AI SDK","sidebarTitle":"AI SDK","href":"/api-reference/text-ai-sdk"},{"group":"Anthropic Messages API","pages":[{"title":"Create Message","sidebarTitle":"Create Message","openapi":"api-reference/text/api/openapi-chat-anthropic.json POST /anthropic/v1/messages","href":"/api-reference/text-chat-anthropic"}]},{"group":"OpenAI Chat Completions API","pages":[{"title":"Create Chat Completion","sidebarTitle":"Create Chat Completion","openapi":"api-reference/text/api/openapi-chat-openai.json POST /v1/chat/completions","href":"/api-reference/text-chat-openai"}]},{"group":"OpenAI Responses API","pages":[{"title":"Create Response","sidebarTitle":"Create Response","openapi":"api-reference/text/api/openapi-responses.json POST /v1/responses","href":"/api-reference/responses-create"},{"title":"Estimate Input Tokens","sidebarTitle":"Estimate Input Tokens","openapi":"api-reference/text/api/openapi-responses.json POST /v1/responses/input_tokens","href":"/api-reference/responses-input-tokens"}]}]},{"group":"Video","icon":"https://filecdn.minimax.chat/public/766ab356-4817-4bf1-8849-0f64728d811f.png","pages":[{"group":"MiniMax-H3","tag":"NEW","pages":[{"title":"Create Video Generation Task","sidebarTitle":"Create Video Generation Task","openapi":"api-reference/video/generation/api/v2-video-generation.json POST /v2/video_generation","href":"/api-reference/video-generation-v2-create"},{"title":"Query Task","sidebarTitle":"Query Task","openapi":"api-reference/video/generation/api/v2-video-generation.json GET /v2/query/video_generation/{task_id}","href":"/api-reference/video-generation-v2-query"},{"title":"List Tasks","sidebarTitle":"List Tasks","openapi":"api-reference/video/generation/api/v2-video-generation.json GET /v2/query/video_generation","href":"/api-reference/video-generation-v2-list"},{"title":"Cancel or Delete Task","sidebarTitle":"Cancel or Delete Task","openapi":"api-reference/video/generation/api/v2-video-generation.json DELETE /v2/video_generation/{task_id}","href":"/api-reference/video-generation-v2-delete"},{"title":"Create H3-Context-IR Task","sidebarTitle":"Create H3-Context-IR Task","openapi":"api-reference/video/generation/api/v2-video-generation.json POST /v2/h3_context_ir","href":"/api-reference/video-generation-v2-h3-context-ir"},{"title":"Create Video Regeneration Task","sidebarTitle":"Create Video Regeneration Task","openapi":"api-reference/video/generation/api/v2-video-generation.json POST /v2/video_regeneration","href":"/api-reference/video-generation-v2-regeneration"}]},{"group":"Video Generation","pages":[{"title":"Create Text-to-Video Generation Task","sidebarTitle":"Text to Video","openapi":"api-reference/video/generation/api/text-to-video.json POST /v1/video_generation","href":"/api-reference/video-generation-t2v"},{"title":"Image-to-Video Task","sidebarTitle":"Image to Video","openapi":"api-reference/video/generation/api/image-to-video.json POST /v1/video_generation","href":"/api-reference/video-generation-i2v"},{"title":"Create First \u0026 Last Frame Video Generation Task","sidebarTitle":"Start / End to Video","openapi":"api-reference/video/generation/api/start-end-to-video.json POST /v1/video_generation","href":"/api-reference/video-generation-fl2v"},{"title":"Subject-Reference to Video Generation Task","sidebarTitle":"Subject Reference to Video","openapi":"api-reference/video/generation/api/subject-reference-to-video.json POST /v1/video_generation","href":"/api-reference/video-generation-s2v"},{"title":"Query Video Generation Task Status","openapi":"api-reference/video/generation/api/openapi.json GET /v1/query/video_generation","href":"/api-reference/video-generation-query"},{"title":"Video Download","sidebarTitle":"Download the Video File","openapi":"api-reference/video/generation/api/openapi.json GET /v1/files/retrieve","href":"/api-reference/video-generation-download"}]}]},{"group":"Speech","icon":"https://filecdn.minimax.chat/public/ebfd6f8e-5b5a-4edd-8253-6c731d3b368f.png","pages":[{"group":"Speech to Text","tag":"NEW","pages":[{"title":"Speech to Text","sidebarTitle":"Speech to Text","description":"Use this API to transcribe an audio file into text, with support for streaming output, speaker diarization and subtitle export.","openapi":"api-reference/speech/speech-to-text/api/openapi.json POST /v1/speech_to_text","href":"/api-reference/speech-to-text"}]},{"group":"Text to Speech","pages":[{"title":"Synchronous Text to Speech","openapi":"api-reference/speech/t2a/api/openapi.json POST /v1/t2a_v2","href":"/api-reference/speech-t2a-http"},{"title":"Synchronous Text to Speech","description":"Send text sentence by sentence over a WebSocket connection and receive streamed audio, suited for low-latency real-time playback.","asyncapi":"api-reference/speech/t2a/api/asyncapi.json t2a_v2_websocket","href":"/api-reference/speech-t2a-websocket"},{"title":"Bidirectional Streaming Text to Speech","asyncapi":"api-reference/speech/t2a/api/asyncapi-bidi.json t2a_v2_bidi_websocket","href":"/api-reference/speech-t2a-websocket-bidi"}]},{"group":"Async Text to Speech","pages":[{"title":"Create Speech Generation Task","openapi":"api-reference/speech/t2a-async/api/openapi.json POST /v1/t2a_async_v2","href":"/api-reference/speech-t2a-async-create"},{"title":"Query Speech Generation Task Status","openapi":"api-reference/speech/t2a-async/api/openapi.json GET /v1/query/t2a_async_query_v2","href":"/api-reference/speech-t2a-async-query"}]},{"group":"Voice Cloning","pages":[{"title":"Upload Audio for Voice Cloning","sidebarTitle":"Upload Audio File","openapi":"api-reference/speech/voice-cloning/api/upload-file.json POST /v1/files/upload","href":"/api-reference/voice-cloning-uploadcloneaudio"},{"title":"Upload Prompt Auido","sidebarTitle":"Upload Prompt Audio","openapi":"api-reference/speech/voice-cloning/api/upload-prompt.json POST /v1/files/upload","href":"/api-reference/voice-cloning-uploadprompt"},{"title":"Voice Clone","openapi":"api-reference/speech/voice-cloning/api/openapi.json POST /v1/voice_clone","href":"/api-reference/voice-cloning-clone"}]},{"group":"Voice Design","pages":[{"title":"Voice Design","openapi":"api-reference/speech/voice-design/api/openapi.json POST /v1/voice_design","href":"/api-reference/voice-design-design"}]},{"group":"Voice Management","pages":[{"title":"Get Voice","openapi":"api-reference/speech/voice-management/api/openapi.json POST /v1/get_voice","href":"/api-reference/voice-management-get"},{"title":"Delete Voice","openapi":"api-reference/speech/voice-management/api/openapi.json POST /v1/delete_voice","href":"/api-reference/voice-management-delete"}]}]},{"group":"Image","icon":"https://filecdn.minimax.chat/public/c67ded66-6213-441f-b784-6866c6943aef.png","pages":[{"group":"Image Generation","pages":[{"title":"Text to Image Generation","sidebarTitle":"Text-to-Image","openapi":"api-reference/image/generation/api/text-to-image.json POST /v1/image_generation","href":"/api-reference/image-generation-t2i"},{"title":"Image-to-Image Generation","sidebarTitle":"Image to Image","openapi":"api-reference/image/generation/api/image-to-image.json POST /v1/image_generation","href":"/api-reference/image-generation-i2i"}]}]},{"group":"Music","icon":"https://filecdn.minimax.chat/public/0f1ab37b-78fd-41ab-945d-a20c1ac436b4.png","pages":[{"group":"Music Generation","pages":[{"title":"Music Generation","openapi":"POST /v1/music_generation","href":"/api-reference/music-generation"},{"title":"Music Cover Preprocess","openapi":"POST /v1/music_cover_preprocess","href":"/api-reference/music-cover-preprocess"},{"title":"Lyrics Generation","openapi":"POST /v1/lyrics_generation","href":"/api-reference/lyrics-generation"}]}]},{"group":"File","icon":"https://filecdn.minimax.chat/public/1291e3fd-3307-4344-ba3e-40fa3780419f.png","pages":[{"group":"File Management","pages":[{"title":"Upload File","sidebarTitle":"Upload","openapi":"api-reference/file/management/api/openapi.json POST /v1/files/upload","href":"/api-reference/file-management-upload"},{"title":"List Files","sidebarTitle":"List","openapi":"api-reference/file/management/api/openapi.json GET /v1/files/list","href":"/api-reference/file-management-list"},{"title":"Retrieve File","sidebarTitle":"Retrieve","openapi":"api-reference/file/management/api/openapi.json GET /v1/files/retrieve","href":"/api-reference/file-management-retrieve"},{"title":"Retrieve Content","sidebarTitle":"Retrieve File Content","openapi":"api-reference/file/management/api/openapi.json GET /v1/files/retrieve_content","href":"/api-reference/file-management-retrieve-content"},{"title":"Delete File","sidebarTitle":"Delete","openapi":"api-reference/file/management/api/openapi.json POST /v1/files/delete","href":"/api-reference/file-management-delete"}]}]},{"group":"Models","icon":"boxes","pages":[{"group":"OpenAI Compatible","pages":[{"title":"List Models","openapi":"api-reference/models/openai/api/list-models.json GET /v1/models","href":"/api-reference/models/openai/list-models"},{"title":"Retrieve Model","openapi":"api-reference/models/openai/api/retrieve-model.json GET /v1/models/{model_id}","href":"/api-reference/models/openai/retrieve-model"}]},{"group":"Anthropic Compatible","pages":[{"title":"List Models","openapi":"api-reference/models/anthropic/api/list-models.json GET /anthropic/v1/models","href":"/api-reference/models/anthropic/list-models"},{"title":"Retrieve Model","openapi":"api-reference/models/anthropic/api/retrieve-model.json GET /anthropic/v1/models/{model_id}","href":"/api-reference/models/anthropic/retrieve-model"}]}]}]},{"tab":"M Plan","pages":[{"title":"M Plan","href":"/m-plan/intro"}]},{"tab":"Pricing","pages":[{"title":"Pricing","href":"/pricing/overview"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes/models"}]},{"tab":"Developer Program","href":"https://platform.minimax.io/activity/contact-us-en"}]},"title":"Synchronous Text to Speech - MiniMax API Docs","buildId":"dpl_DGmhKsAzJdVqypJzon18vViniWRY","deploymentId":"dpl_DGmhKsAzJdVqypJzon18vViniWRY","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-Db5Nu5n1.js","dist-DN0dCbTw.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-BOmkPVIU.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-2jF_ccbi.js","utils-NNMVb_sb.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DdtBhtt6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D1OxL5O8.js","snippetPresets-DDC-KAXp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BOnTqOyQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-EEWI6FIO.js","shallow-fGZcWzm2.js","getApiPlaygroundDisplay-B3B8qEvw.js","CodeSnippet-BG9nsSU4.js","CodeSnippets-BlRACLKl.js","Page-FtoC8lZ9.js","getPastedJson-COV-Kgnr.js","icon-BXu3lasn.js","MethodPill-DGMUqJKh.js","DuplicateIcon-JEUJDHz_.js","createIcon-BDFucJ34.js","DynamicMarkdown-34OtG_BH.js","SectionHeading-tBbRD59j.js","axios-vUo_bRtp.js","Markdown-SoRz2nk2.js","AssistantPageLink-BcsLYcfW.js"]}