Skip to content

MiniMax Voice Design ​

Input text content to design a voice and generate a custom voice.

http
POST /v1/voice_design

Request Headers ​

ParameterTypeRequiredDefaultDescription
Content-TypestringYesapplication/jsonData exchange format
AuthorizationstringYes-Authentication info, format is Bearer <API_KEY>

Request Body ​

ParameterTypeRequiredDescription
promptstringYesVoice description text
preview_textstringYesPreview audio text, up to 500 characters. Synthesis fee is 2 yuan per 10,000 characters
voice_idstringNoCustom generated voice ID; when not provided, the system automatically generates a unique ID
aigc_watermarkbooleanNoWhether to append an audio watermark beat marker at the end of the preview audio, default false

Request Example ​

bash
curl --request POST \
  --url https://neolink.com/minimax/v1/voice_design \
  --header 'Authorization: Bearer <API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
    "prompt": "讲述悬疑故事的播音员,声音低沉富有磁性,语速时快时慢,营造紧张神秘的氛围。",
    "preview_text": "夜深了,古屋里只有他一人。窗外传来若有若无的脚步声,他屏住呼吸,慢慢地,慢慢地,走向那扇吱呀作响的门……"
  }'

Successful Response (HTTP 200) ​

json
{
  "voice_id": "ttv-voice-2025060717322425-xxxxxxxx",
  "trial_audio": "hex 编码音频",
  "base_resp": {
    "status_code": 0,
    "status_msg": "success"
  }
}
FieldTypeDescription
voice_idstringThe generated voice ID, used for subsequent speech synthesis
trial_audiostringPreview audio in hex-encoded format
base_resp.status_codeintStatus code; see the error codes for specific definitions
base_resp.status_msgstringStatus details