The MiniMax connector lets your AI agent act in each user's MiniMax account. Each user connects their own MiniMax access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 19 tools.
- Tools
- 19
- What they doRead · write · destructive
- 7 · 10 · 27 read10 write2 destructive
- Users sign in with
- Access token
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the MiniMax connection
In AgentKit > Connections, create a MiniMax connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'minimax'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize MiniMax:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'minimax_list_h3_video_tasks',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "minimax"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize MiniMax:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="minimax_list_h3_video_tasks",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user opens the link once and enters their MiniMax credentials there. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolminimax_get_h3_video_taskGet the status and result of a MiniMax H3 video task from the last 7 days.Read-onlyGet H3 Video Task
Get the status and result of a MiniMax H3 video task from the last 7 days. Returns task with status (queued, running, succeeded, failed or cancelled), error, resolution, duration, ratio, usage and, on success, content.url: a time-limited download URL for the video. Use this to poll a task from minimax_create_h3_video_task; query again for a fresh URL after it expires. Use minimax_list_h3_video_tasks to find task IDs, and minimax_get_video_task for Hailuo tasks.
Inputs
task_idstringrequired- Task ID returned by minimax_create_h3_video_task or minimax_list_h3_video_tasks. Example: 424010985738629
minimax_get_speech_taskGet the status of a long text-to-speech task.Read-onlyGet Long Speech Task
Get the status of a long text-to-speech task. Returns status (Processing, Success, Failed or Expired) and file_id. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this to poll tasks from minimax_create_speech_task. On Success, pass file_id to minimax_retrieve_file for the download URL.
Inputs
task_idstringrequired- Task ID returned by minimax_create_speech_task. Example: 95157322514444
minimax_get_video_taskGet the status of a Hailuo video generation task.Read-onlyGet Hailuo Video Task
Get the status of a Hailuo video generation task. Returns status (Preparing, Queueing, Processing, Success or Fail) and, on Success, the file_id and video width and height. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this to poll tasks from minimax_create_video_task. Use minimax_get_h3_video_task for MiniMax H3 tasks. On Success, pass file_id to minimax_retrieve_file to get the download URL.
Inputs
task_idstringrequired- Task ID returned by minimax_create_video_task. Example: 106916112212032
minimax_list_filesList files uploaded to the MiniMax account for one purpose.Read-onlyList Files
List files uploaded to the MiniMax account for one purpose. Returns files with file_id, filename, bytes, created_at and purpose. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this to find the ID of an uploaded file, for example to reference it as mm_file://<file_id> in minimax_create_h3_video_task. Use minimax_retrieve_file for one file's download URL.
Inputs
purposestringrequired- Which files to list: voice_clone (voice cloning source audio), prompt_audio (voice cloning sample audio), t2a_async_input (long-speech text files) or video_generation_input (video input media).one of
voice_cloneprompt_audiot2a_async_inputvideo_generation_input
minimax_list_h3_video_tasksList MiniMax H3 video tasks from the last 7 days, newest first, with optional filters.Read-onlyList H3 Video Tasks
List MiniMax H3 video tasks from the last 7 days, newest first, with optional filters. Returns items (each with id, model, status, error, content.url when succeeded, resolution, duration and task_type) and total. Use this to find recent H3 tasks or check several at once. Use minimax_get_h3_video_task for one task by ID.
Inputs
modelstring- Only tasks for this model. Example: MiniMax-H3
page_numinteger- Page number, starting at 1. Example: 1
page_sizeinteger- Number of tasks per page. Example: 20
statusstring- Only tasks with this status.one of
queuedrunningsucceededfailedcancelled task_idsarray- Only these task IDs. Example: ["424010985738629"]
task_typestring- Only tasks of this type: generation (video generation), h3_context_ir or regeneration.one of
generationh3_context_irregeneration
minimax_list_modelsList the MiniMax language models available through the OpenAI-compatible API.Read-onlyList Models
List the MiniMax language models available through the OpenAI-compatible API. Returns data, an array of models with id, created and owned_by. Use this to check valid model IDs for minimax_create_chat_completion.
Inputs
This tool takes no inputs.
minimax_retrieve_fileGet a file's metadata and a temporary download URL by file ID.Read-onlyRetrieve File
Get a file's metadata and a temporary download URL by file ID. Returns file with file_id, filename, bytes, created_at, purpose and download_url. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this to download the result of a Hailuo video task (minimax_get_video_task) or a long speech task (minimax_get_speech_task). Use minimax_list_files to browse uploaded files.
Inputs
file_idstringrequired- ID of the file. Comes from the file_id field of minimax_get_video_task, minimax_get_speech_task or minimax_list_files. Example: 205258526306433
minimax_create_chat_completionSend a conversation to a MiniMax M3 language model and get the assistant's reply (OpenAI-compatible Chat Completions, non-streaming).WriteCreate Chat Completion
Send a conversation to a MiniMax M3 language model and get the assistant's reply (OpenAI-compatible Chat Completions, non-streaming). Returns choices[0].message with content, reasoning_content (the model's thinking) and any tool_calls, plus finish_reason and token usage. Use this for text generation, analysis, coding and function calling with MiniMax models. Use minimax_list_models to see the model IDs your key can call.
Inputs
messagesarrayrequired- Conversation so far, oldest first. Each message has a role (system, user, assistant or tool) and content. Content is a string, or an array of OpenAI-style content parts for images and video. A tool result needs tool_call_id set to the id of the assistant's tool call. Example: [{"role": "system", "content": "You are a concise assistant."}, {"role": "user", "content": "Summarise the plot of Hamlet in two sentences."}]
modelstringrequired- MiniMax language model to use. MiniMax-M3.1-Flash always thinks and supports reasoning_effort; MiniMax-M3 thinks adaptively and can turn thinking off.one of
MiniMax-M3.1-FlashMiniMax-M3 max_completion_tokensinteger- Maximum number of tokens to generate, including thinking. MiniMax recommends 131072 and allows up to 524288 for M3 models. Example: 4096
reasoning_effortstring- Thinking depth for MiniMax-M3.1-Flash (server default max). Other models ignore it.one of
lowmediumhighxhighmax reasoning_splitboolean- true returns thinking separately in reasoning_content; false keeps it inside content wrapped in <think> tags. MiniMax-M3.1-Flash does not accept false.
service_tierstring- Admission tier. standard (server default) or priority, which costs 1.5 times standard and is admitted first under load.one of
standardpriority thinking_typestring- Thinking mode. adaptive (server default) lets the model decide when to think. disabled skips thinking on MiniMax-M3; MiniMax-M3.1-Flash rejects disabled with HTTP 400.one of
adaptivedisabled toolsarray- Function tools the model may call, in OpenAI format. Example: [{"type": "function", "function": {"name": "get_weather", "description": "Get the weather for a city", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}}]
minimax_create_h3_video_taskStart an asynchronous MiniMax H3 video generation task: text-to-video, image-to-video from a first and/or last frame, or reference-to-video from reference images, videos and audio.WriteCreate H3 Video Task
Start an asynchronous MiniMax H3 video generation task: text-to-video, image-to-video from a first and/or last frame, or reference-to-video from reference images, videos and audio. Returns task_id. Errors come back as HTTP 4xx with an error object. Use this for MiniMax-H3 (768P or 2K, 4 to 15 s) and MiniMax-H3-Max (fast, 480P or 768P, 5 to 15 s). Use minimax_create_video_task for the legacy Hailuo models. Poll minimax_get_h3_video_task with the task_id; the finished task carries the video download URL directly.
Inputs
durationintegerrequired- Length in seconds: 4 to 15 for MiniMax-H3, 5 to 15 for MiniMax-H3-Max. Example: 6one of
456789101112131415 modelstringrequired- H3 video model. MiniMax-H3 supports 768P and 2K; MiniMax-H3-Max is the fast variant with 480P and 768P.one of
MiniMax-H3MiniMax-H3-Max promptstringrequired- Description of the video, up to 7,000 characters. Always required, also when images or references are given. Example: A paper boat drifts down a rain-soaked street at night, neon reflections in the water
resolutionstringrequired- Output resolution. MiniMax-H3: 768P or 2K. MiniMax-H3-Max: 480P or 768P.one of
480P768P2K first_frame_imagestring- Opening frame for image-to-video: a public URL, mm_file://<file_id> or a data URL. JPG, PNG, WEBP, HEIC or HEIF up to 30 MB, 256 to 5760 px per side. Cannot be combined with reference media.
last_frame_imagestring- Closing frame for image-to-video, alone or with first_frame_image: a public URL, mm_file://<file_id> or a data URL. Cannot be combined with reference media.
prompt_expansion_modestring- Prompt expansion for MiniMax-H3-Max only: disabled, balanced (server default) or quality.one of
disabledbalancedquality ratiostring- Aspect ratio. Required for text-to-video (any value except adaptive). Ignored for image-to-video, where the image sets the ratio. Optional for reference-to-video (default adaptive).one of
adaptive21:916:94:31:13:49:16 reference_audiosarray- Up to 3 reference audio clips (WAV or MP3, 2 to 15 s each, 15 s total, up to 15 MB each) as public URLs or mm_file://<file_id>. Example: ["https://example.com/audio/theme.mp3"]
reference_imagesarray- Up to 9 reference images for reference-to-video (public URLs, mm_file://<file_id> or data URLs). Cannot be combined with first or last frame. Example: ["https://example.com/images/character.png"]
reference_videosarray- Up to 3 reference videos (MP4 or MOV, 2 to 15 s each, 15 s total, up to 50 MB each) as public URLs or mm_file://<file_id>. Example: ["https://example.com/clips/dance.mp4"]
minimax_create_speech_taskStart an asynchronous text-to-speech task for long text, up to 50,000 characters.WriteCreate Long Speech Task
Start an asynchronous text-to-speech task for long text, up to 50,000 characters. Returns task_id, file_id and usage_characters. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this for long texts such as articles or book chapters. Use minimax_text_to_speech for texts under 10,000 characters when you want the audio in the same call. Poll minimax_get_speech_task until status is Success, then pass file_id to minimax_retrieve_file for the download URL.
Inputs
modelstringrequired- Speech model. speech-2.8-hd and speech-2.8-turbo are current; the 2.6 and 02 models are legacy.one of
speech-2.8-hdspeech-2.8-turbospeech-2.6-hdspeech-2.6-turbospeech-02-hdspeech-02-turbo textstringrequired- Text to speak, up to 50,000 characters. Pause with <#x#> (seconds). Example: Chapter one. <#1#> It was a bright cold day in April.
voice_idstringrequired- ID of the voice that reads the text: a system voice, a cloned voice or a designed voice. Get valid IDs from minimax_list_voices (voice_id field). Example: English_expressive_narrator.
audio_formatstring- Audio container/encoding of the result. Server default mp3. pcmu_raw and pcmu_wav are G.711 mu-law at 8 kHz; opus is Ogg/Opus.one of
mp3pcmflacwavpcmu_rawpcmu_wavopus bitrateinteger- Bitrate in bits per second for mp3 output. One of 32000, 64000, 128000, 256000. Example: 128000one of
3200064000128000256000 channelinteger- Number of audio channels: 1 for mono, 2 for stereo (server default 2).one of
12 emotionstring- Emotion of the delivery. Leave empty to let the model pick the most natural emotion for the text. fluent and whisper work only with speech-2.6-hd and speech-2.6-turbo; speech-2.8 models do not support whisper.one of
happysadangryfearfuldisgustedsurprisedcalmfluentwhisper language_booststring- Improves recognition of a specific language or dialect. Use auto when the language is unknown. Use Chinese,Yue for Cantonese voices. Example: Englishone of
ChineseChinese,YueEnglishArabicRussianSpanishFrenchPortugueseGermanTurkishDutchUkrainianVietnameseIndonesianJapaneseItalianKoreanThaiPolishRomanianGreekCzechFinnishHindiBulgarianDanishHebrewMalayPersianSlovakSwedishCroatianFilipinoHungarianNorwegianSlovenianCatalanNynorskTamilAfrikaansauto pitchinteger- Pitch shift in semitones from -12 to 12. 0 (server default) keeps the original pitch. Example: -2
pronunciation_rulesarray- Custom pronunciations, each written as original/replacement. The replacement can be plain text, IPA in parentheses, pinyin with tone numbers in parentheses, or Japanese kana. Example: ["omg/oh my god", "read/(ri:d)"]
sample_rateinteger- Sample rate in Hz. One of 8000, 16000, 22050, 24000, 32000, 44100. Example: 32000one of
80001600022050240003200044100 speednumber- Speaking speed from 0.5 to 2. Higher is faster. Server default 1.0. Example: 1.2
volumenumber- Loudness, greater than 0 and up to 10. Server default 1.0. Example: 2
minimax_create_video_taskStart an asynchronous MiniMax Hailuo video generation task from a text prompt, a first-frame image, or first and last frames.WriteCreate Hailuo Video Task
Start an asynchronous MiniMax Hailuo video generation task from a text prompt, a first-frame image, or first and last frames. Returns task_id. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this for the Hailuo models (MiniMax-Hailuo-2.3, MiniMax-Hailuo-2.3-Fast, MiniMax-Hailuo-02). Use minimax_create_h3_video_task for the newer MiniMax H3 models with 2K output and reference media. Poll minimax_get_video_task with the task_id until status is Success, then pass its file_id to minimax_retrieve_file for the download URL.
Inputs
modelstringrequired- Hailuo video model. Text-to-video: MiniMax-Hailuo-2.3 or MiniMax-Hailuo-02. Image-to-video: all three. First and last frame: MiniMax-Hailuo-02 only.one of
MiniMax-Hailuo-2.3MiniMax-Hailuo-2.3-FastMiniMax-Hailuo-02 durationinteger- Length in seconds: 6 (server default) or 10. 10 seconds is available only at 512P or 768P.one of
610 fast_pretreatmentboolean- Shortens prompt optimization time when prompt_optimizer is on. Server default false.
first_frame_imagestring- Image to start the video from, as a public URL or a data URL (data:image/jpeg;base64,...). JPG, PNG or WebP under 20 MB, short side over 300 px, aspect ratio between 2:5 and 5:2.
last_frame_imagestring- Image to end the video on (MiniMax-Hailuo-02 only, together with first_frame_image). Public URL or data URL; it is cropped to the first frame's size if they differ.
promptstring- Description of the video, up to 2,000 characters. Required for text-to-video, optional with images. Camera moves can be written in brackets, such as [Pan left], [Push in], [Tracking shot] or [Static shot]. Example: A red fox runs through fresh snow at dawn [Tracking shot]
prompt_optimizerboolean- Whether MiniMax rewrites the prompt for better results. Server default true; set false for precise control.
resolutionstring- Output resolution. 768P is the default for Hailuo models; 1080P allows 6 seconds only; 512P is image-to-video on MiniMax-Hailuo-02 only.one of
512P768P1080P
minimax_design_voiceCreate a new custom voice from a text description and get a spoken preview of it.WriteDesign Voice
Create a new custom voice from a text description and get a spoken preview of it. Returns voice_id and trial_audio, the preview hex-encoded. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this to make a voice that does not exist yet; use the returned voice_id in minimax_text_to_speech. Use minimax_list_voices to reuse existing voices. Preview audio costs 30 USD per million characters, and a designed voice is billed on its first use in synthesis.
Inputs
preview_textstringrequired- Text the new voice reads for the preview. Keep it short; preview audio is billed per character. Example: Welcome to the evening news.
promptstringrequired- Description of the voice: gender, age, accent, tone and style. Example: A calm middle-aged British man with a warm, low voice, like a documentary narrator
voice_idstring- Custom ID for the new voice. Leave empty to have MiniMax generate one. Example: narrator_uk_warm_01
minimax_generate_imageGenerate 1 to 9 images from a text prompt, optionally keeping the likeness of a person from a reference portrait.WriteGenerate Image
Generate 1 to 9 images from a text prompt, optionally keeping the likeness of a person from a reference portrait. Returns data.image_urls (links valid for 24 hours) or data.image_base64, and metadata with success_count and failed_count (images blocked by content safety). MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this for still images. Use minimax_create_h3_video_task or minimax_create_video_task for video.
Inputs
modelstringrequired- Image model. image-01 does text-to-image and image-to-image; image-01-live generates from a prompt plus a reference portrait.one of
image-01image-01-live promptstringrequired- Description of the image, up to 1,500 characters. Example: A watercolor lighthouse on a cliff at sunset
aspect_ratiostring- Aspect ratio (server default 1:1 at 1024x1024). 16:9 is 1280x720, 9:16 is 720x1280, 21:9 is 1344x576. Takes priority over width and height.one of
1:116:94:33:22:33:49:1621:9 heightinteger- Height in pixels for image-01, 512 to 2048 and divisible by 8. Set together with width; ignored if aspect_ratio is set. Example: 768
ninteger- Number of images to generate, 1 to 9. Server default 1.
prompt_optimizerboolean- Whether MiniMax rewrites the prompt for better results. Server default false.
response_formatstring- How images come back. url (default) returns links valid for 24 hours; base64 returns the image data inline, which makes the response large.one of
urlbase64defaulturl seedinteger- Random seed. The same seed and parameters reproduce the same images. Example: 42
subject_reference_imagestring- Portrait of the person to keep in the images (image-to-image), as a public URL or data URL (data:image/jpeg;base64,...). One front-facing photo works best; JPG or PNG under 10 MB.
widthinteger- Width in pixels for image-01, 512 to 2048 and divisible by 8. Set together with height; ignored if aspect_ratio is set. Example: 1024
minimax_generate_lyricsWrite a complete set of song lyrics from a theme, or edit and continue existing lyrics.WriteGenerate Lyrics
Write a complete set of song lyrics from a theme, or edit and continue existing lyrics. Returns song_title, style_tags and lyrics with section tags ([Verse], [Chorus] and so on) that can be passed straight to minimax_generate_music. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this before minimax_generate_music when you need lyrics. Part of MiniMax's paid Music API, which is closed to new users since 2026-08-20.
Inputs
lyricsstring- Existing lyrics to edit or continue (edit mode only).
modestring- write_full_song writes new lyrics; edit rewrites or continues the lyrics you pass in.one of
write_full_songeditdefaultwrite_full_song promptstring- Theme, style or editing instruction. Leave empty for a random song. Example: An upbeat pop song about moving to a new city
titlestring- Song title to keep unchanged in the output. Example: City Lights
minimax_generate_musicGenerate a song from a style prompt and lyrics, an instrumental track, or a cover of a reference song, in one synchronous call.WriteGenerate Music
Generate a song from a style prompt and lyrics, an instrumental track, or a cover of a reference song, in one synchronous call. Returns data.audio as a download URL valid for 24 hours (output_format=url, the default here) or as hex-encoded audio, and data.status (2 when complete). MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this for music. Use minimax_generate_lyrics first if you need lyrics written. MiniMax closed the paid Music API to new users on 2026-08-20; only accounts that already pay for it can call this.
Inputs
modelstringrequired- Music model. music-3.0 (recommended) and music-2.6 generate from prompt and lyrics; music-cover restyles a reference song given in audio_url or audio_base64.one of
music-3.0music-2.6music-cover audio_base64string- Base64-encoded song to cover (music-cover only), as an alternative to audio_url.
audio_formatstring- Audio format: mp3, wav or pcm.one of
mp3wavpcm audio_urlstring- Public URL of the song to cover (music-cover only; 6 seconds to 6 minutes, up to 50 MB). Use either audio_url or audio_base64.
bitrateinteger- Bitrate in bits per second: 32000, 64000, 128000 or 256000.one of
3200064000128000256000 is_instrumentalboolean- true generates music without vocals (music-3.0 and music-2.6); lyrics are then not needed. Server default false.
lyricsstring- Song lyrics with lines separated by \n, up to 3,500 characters. Required for vocal songs on music-3.0 and music-2.6 unless lyrics_optimizer is true. Section tags such as [Intro], [Verse], [Chorus], [Bridge] and [Outro] are supported. Example: [Verse]\nWindows down and the radio on\n[Chorus]\nWe were young all summer long
lyrics_optimizerboolean- true writes lyrics from the prompt when lyrics is empty (music-3.0 and music-2.6). Server default false.
output_formatstring- How the audio comes back. url (the tool default) returns a link valid for 24 hours in data.audio; hex returns the file hex-encoded.one of
urlhexdefaulturl promptstring- Style, mood and scenario. Required for instrumentals (1-2,000 characters) and for music-cover (10-300 characters); optional for songs with lyrics. Example: Indie pop, warm and nostalgic, for a summer road trip
sample_rateinteger- Sample rate in Hz: 16000, 24000, 32000 or 44100.one of
16000240003200044100
minimax_list_voicesList the voices available to the account: MiniMax system voices, voices you cloned and voices you designed.WriteList Voices
List the voices available to the account: MiniMax system voices, voices you cloned and voices you designed. Returns system_voice, voice_cloning and voice_generation arrays with voice_id, name or description, and creation date. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this to find a voice_id for minimax_text_to_speech or minimax_create_speech_task, or to check which custom voices exist before minimax_delete_voice.
Inputs
voice_typestring- Which voices to list: system (MiniMax voices), voice_cloning (your cloned voices), voice_generation (voices from minimax_design_voice) or all. Cloned and designed voices appear only after they have been used once for synthesis.one of
systemvoice_cloningvoice_generationalldefaultall
minimax_text_to_speechConvert up to 10,000 characters of text into speech with a MiniMax voice in a single synchronous call.WriteText to Speech
Convert up to 10,000 characters of text into speech with a MiniMax voice in a single synchronous call. Returns data.audio as a download URL valid for 24 hours (output_format=url, the default here) or as hex-encoded audio, plus extra_info with duration, size, format and billed characters. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this for short and medium texts. Use minimax_create_speech_task for long texts up to 50,000 characters. Get a voice_id from minimax_list_voices.
Inputs
modelstringrequired- Speech model. speech-2.8-hd and speech-2.8-turbo are current and support interjection tags such as (laughs); the 2.6 and 02 models are legacy.one of
speech-2.8-hdspeech-2.8-turbospeech-2.6-hdspeech-2.6-turbospeech-02-hdspeech-02-turbo textstringrequired- Text to speak, under 10,000 characters. Mark paragraph breaks with newlines. Insert a pause with <#x#>, where x is seconds (0.01 to 99.99). Example: Welcome back. <#0.5#> Here is today's update.
voice_idstringrequired- ID of the voice that reads the text: a system voice, a cloned voice or a designed voice. Get valid IDs from minimax_list_voices (voice_id field). Example: English_expressive_narrator.
audio_formatstring- Audio container/encoding of the result. Server default mp3. pcmu_raw and pcmu_wav are G.711 mu-law at 8 kHz; opus is Ogg/Opus.one of
mp3pcmflacwavpcmu_rawpcmu_wavopus bitrateinteger- Bitrate in bits per second for mp3 output. One of 32000, 64000, 128000, 256000. Example: 128000one of
3200064000128000256000 channelinteger- Number of audio channels: 1 for mono, 2 for stereo.one of
12 emotionstring- Emotion of the delivery. Leave empty to let the model pick the most natural emotion for the text. fluent and whisper work only with speech-2.6-hd and speech-2.6-turbo; speech-2.8 models do not support whisper.one of
happysadangryfearfuldisgustedsurprisedcalmfluentwhisper language_booststring- Improves recognition of a specific language or dialect. Use auto when the language is unknown. Use Chinese,Yue for Cantonese voices. Example: Englishone of
ChineseChinese,YueEnglishArabicRussianSpanishFrenchPortugueseGermanTurkishDutchUkrainianVietnameseIndonesianJapaneseItalianKoreanThaiPolishRomanianGreekCzechFinnishHindiBulgarianDanishHebrewMalayPersianSlovakSwedishCroatianFilipinoHungarianNorwegianSlovenianCatalanNynorskTamilAfrikaansauto output_formatstring- How the audio comes back. url (the tool default) returns a download link valid for 24 hours in data.audio; hex returns the whole file hex-encoded in data.audio.one of
urlhexdefaulturl pitchinteger- Pitch shift in semitones from -12 to 12. 0 (server default) keeps the original pitch. Example: -2
pronunciation_rulesarray- Custom pronunciations, each written as original/replacement. The replacement can be plain text, IPA in parentheses, pinyin with tone numbers in parentheses, or Japanese kana. Example: ["omg/oh my god", "read/(ri:d)"]
sample_rateinteger- Sample rate in Hz. One of 8000, 16000, 22050, 24000, 32000, 44100. Example: 32000one of
80001600022050240003200044100 speednumber- Speaking speed from 0.5 to 2. Higher is faster. Server default 1.0. Example: 1.2
subtitle_enableboolean- Set to true to also get a sentence-level subtitle file; its download link is returned in data.subtitle_file.
text_normalization_modestring- Reading of numbers, dates and symbols. basic is fast and rule-based; quality adds an LLM pass for better results (2.8 and 2.6 models) at extra latency. Leave empty to skip normalization.one of
basicquality volumenumber- Loudness, greater than 0 and up to 10. Server default 1.0. Example: 2
minimax_cancel_h3_video_taskCancel a queued MiniMax H3 video task, or delete the record of a succeeded or failed one.DestructiveCancel or Delete H3 Video Task
Cancel a queued MiniMax H3 video task, or delete the record of a succeeded or failed one. Returns task_id and action: cancelled (the task was queued) or deleted (the record was removed). Use this to stop a task you no longer need before it runs, or to clean up finished tasks. A running task cannot be cancelled. Find task IDs with minimax_list_h3_video_tasks.
- Idempotent
Inputs
task_idstringrequired- ID of the H3 task to cancel or delete. Example: 424010985738629
minimax_delete_voicePermanently delete a cloned or designed voice from the account.DestructiveDelete Voice
Permanently delete a cloned or designed voice from the account. Returns the deleted voice_id and its created_time. MiniMax reports most errors inside a 200 response: check base_resp.status_code (0 is success; 1004 bad API key, 1008 insufficient balance, 2013 invalid parameters). Use this to remove custom voices you no longer need. System voices cannot be deleted. Find voice IDs with minimax_list_voices.
Inputs
voice_idstringrequired- ID of the voice to delete. Example: narrator_uk_warm_01
voice_typestringrequired- Kind of voice to delete: voice_cloning for a cloned voice or voice_generation for a voice made with minimax_design_voice.one of
voice_cloningvoice_generation
No tools match.