Skip to content

MiniMax Speech-02 HD

POST/v1/run

Speech 02 Hd by MiniMax - convert text to natural-sounding speech with AI. Supports multiple voices, languages, emotions, and speaking styles for content creation and accessibility.

Request body

Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.

stringmodelrequired

Model identifier. Set to minimax/speech/02-hd.

Default: minimax/speech/02-hd

Optional<string>text

Text to convert to speech (max 5000 characters, minimum 1 non-whitespace character)

Default: Hello, welcome to Sandbase

Optional<string>output_format

Format of the output content (non-streaming only)

Allowed values: url, hex

Default: hex

Optional<string>voice_setting

Voice configuration settings

Default: [object Object]

Optional<string>pronunciation_dict

Custom pronunciation dictionary for text replacement

Optional<string>audio_setting

Audio configuration settings

Optional<string>language_boost

Enhance recognition of specified languages and dialects

Allowed values: 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, Slovak, Swedish, Croatian, Hungarian, Norwegian, Slovenian, Catalan, Nynorsk, Afrikaans, auto

Response Schema

The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.

Optional<string>error

Error message if the task failed. Empty on success.

stringidrequired

Unique identifier for the generation task.

Optional<string>model

Model ID used for the prediction.

Optional<array>outputs

Array of generated content. Empty when status is not completed.

stringstatusrequired

Status of the task: pending, running, completed, failed, or timeout.

Allowed values: pending, running, completed, failed, timeout

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: text-to-speech

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async