Clone a MiniMax voice and generate demo audio.
This interface creates MiniMax voices.
First obtain an API key and configure the environment variable. Examples read
HTTP Request URL:
Use the request’s
See Error codes.
DASHSCOPE_API_KEY.
Service endpoint
HTTP Request URL: POST https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation
Base URL (base_url): https://dashscope.aliyuncs.com/api/v1.
Third-party models (MiniMax) currently only support invocation via the
dashscope.aliyuncs.com domain and do not yet support dedicated domains.Request headers
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer <your_api_key> |
| Content-Type | string | Yes | application/json; charset=utf-8 |
Create a voice
A voice cloning request generates a demo audio clip. The demo audio is billed additionally at the synchronous TTS unit price of the selected model.
Request Bodymodelstring — Required
The speech model used to generate the demo audio.Supported models:
object — Required
Properties action string — Required
Set to voice_clone.text string — RequiredThe text to synthesize as demo audio for the cloned voice. Maximum: 1,000 characters.The demo audio is billed at the standard TTS rate per character. For pricing details, see MiniMax model pricing.
string — RequiredThe URL of the audio file to clone. The audio must meet the following requirements:
object — OptionalA sample audio clip for voice cloning. Providing this parameter improves voice similarity and stability during synthesis. If you use this parameter, prepare a short sample audio clip.
Properties prompt_audio string — OptionalThe URL of the sample audio file. The audio must meet the following requirements:
string — OptionalThe transcript of the sample audio. The text must match the audio content exactly and end with a punctuation mark.string — RequiredThe ID of the cloned voice (for example, "MiniMax001"). The ID must follow these naming rules:
The voice ID must be globally unique across all voices in your account. Include a timestamp or other unique identifier in the ID to avoid conflicts. enum<string> — OptionalDefault value: null.Whether to enhance recognition accuracy for a specific language or dialect. Set to auto to let the model detect the language automatically.
Available options 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,autoboolean — OptionalDefault: false.Whether to enable noise reduction for the audio used for cloning.need_volume_normalization boolean — OptionalDefault: false.Whether to enable volume normalization.aigc_watermark boolean — OptionalDefault: false.Whether to add an audio rhythm marker to the end of the synthesized demo audio. | Request examples
|
Response bodyrequest_idstringThe unique identifier of this request.output object
Properties input_sensitive booleanWhether the input audio triggered content moderation.input_sensitive_type integerThe type of content moderation violation detected in the input audio:
stringURL of the demo audio.base_resp object
Properties status_code integerStatus code:
stringA description of the status.objectCharacter usage for this request.
Properties characters integerThe number of characters in the input text. | Response examples
|
Use and manage the voice
Use the request’s voice_id for speech synthesis. To query available voice IDs or delete a voice, see Voice management.