
Minimax
- 430 installs
- 76 repo stars
- Updated August 4, 2026
- vm0-ai/vm0-skills
minimax is an agent skill that calls MiniMax language models through api.minimax.io chatcompletion_v2 with Bearer MINIMAX_TOKEN auth for developers integrating Chinese AI chat into vm0-ai agent workflows.
About
minimax is an agent skill in vm0-ai/vm0-skills for calling MiniMax language models over HTTP. Authentication uses a Bearer MINIMAX_TOKEN in the Authorization header against https://api.minimax.io/v1/text/chatcompletion_v2. Examples write request JSON such as model MiniMax-Text-01 with system and user messages to /tmp/minimax_request.json before posting completions. Troubleshooting guides agents to run zero doctor check-connector --env-name MINIMAX_TOKEN or zero doctor check-connector against the chatcompletion_v2 POST endpoint when requests fail. Developers reach for minimax when users mention MiniMax, Chinese AI models, or need vm0 connector diagnostics for this provider. The skill fits agent backends and automation scripts that swap MiniMax into existing chat pipelines without bespoke SDK wiring. Load it during LLM provider integration tasks where curl-style JSON payloads and token validation are the primary debugging surface.
- minimax
Minimax by the numbers
- 430 all-time installs (skills.sh)
- Ranked #1,023 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/vm0-ai/vm0-skills --skill minimaxAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 430 |
|---|---|
| repo stars | ★ 76 |
| Last updated | August 4, 2026 |
| Repository | vm0-ai/vm0-skills ↗ |
How do you call MiniMax chat completion API?
Use minimax for development tasks
Who is it for?
Developers integrating MiniMax LLM endpoints in vm0-ai agents who need MINIMAX_TOKEN auth patterns and zero doctor connector diagnostics.
Skip if: Teams standardized on OpenAI or Anthropic only with no MiniMax account should skip minimax.
When should I use this skill?
User mentions MiniMax, Chinese AI models, MINIMAX_TOKEN errors, or asks to call MiniMax-Text-01 chat completions.
What you get
MiniMax chat completion JSON response from chatcompletion_v2 with MiniMax-Text-01 or configured model.
- Chat completion JSON response
- Validated connector diagnostics output
By the numbers
- Targets api.minimax.io/v1/text/chatcompletion_v2 POST endpoint
- Sample payloads use MiniMax-Text-01 model identifier
Files
Troubleshooting
If requests fail, run zero doctor check-connector --env-name MINIMAX_TOKEN or zero doctor check-connector --url https://api.minimax.io/v1/text/chatcompletion_v2 --method POST
How to Use
All examples below assume you have MINIMAX_TOKEN set.
Authentication uses Bearer token in the Authorization header.
1. Basic Chat Completion
Send a chat message:
Write to /tmp/minimax_request.json:
{
"model": "MiniMax-Text-01",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello, who are you?"}
]
}Then run:
curl -s "https://api.minimax.io/v1/text/chatcompletion_v2" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.json | jq '.choices[0].message.content'Available models:
MiniMax-M2: Reasoning model (best quality)MiniMax-M1: Reasoning model (balanced)MiniMax-Text-01: Standard model (fastest)
2. Chat with Temperature Control
Adjust creativity:
Write to /tmp/minimax_request.json:
{
"model": "MiniMax-Text-01",
"messages": [
{"role": "user", "content": "Write a short poem about AI."}
],
"temperature": 0.7,
"max_tokens": 200
}Then run:
curl -s "https://api.minimax.io/v1/text/chatcompletion_v2" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.json | jq '.choices[0].message.content'Parameters:
temperature(0-1): Higher = more creativetop_p(0-1, default 0.95): Sampling diversitymax_tokens: Maximum output tokens
3. Streaming Response
Get real-time output:
Write to /tmp/minimax_request.json:
{
"model": "MiniMax-M1",
"messages": [
{"role": "user", "content": "Explain quantum computing."}
],
"stream": true
}Then run:
curl -s "https://api.minimax.io/v1/text/chatcompletion_v2" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.jsonStreaming is recommended for reasoning models (M1/M2).
4. Reasoning Model (M1/M2)
Use reasoning models for complex tasks:
Write to /tmp/minimax_request.json:
{
"model": "MiniMax-M1",
"messages": [
{"role": "user", "content": "Solve step by step: A train travels 120km in 2 hours. What is its average speed in m/s?"}
],
"stream": true
}Then run:
curl -s "https://api.minimax.io/v1/text/chatcompletion_v2" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.jsonResponse includes reasoning_content field with thought process.
5. Text-to-Speech (Basic)
Convert text to speech:
Write to /tmp/minimax_request.json:
{
"model": "speech-02-hd",
"text": "Hello, this is a test of MiniMax text to speech.",
"voice_id": "male-qn-qingse",
"speed": 1.0,
"format": "mp3"
}Then run:
curl -s "https://api.minimax.io/v1/t2a_v2" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.json --output speech.mp36. TTS with Emotion
Add emotion to speech (speech-02 models):
Write to /tmp/minimax_request.json:
{
"model": "speech-02-hd",
"text": "I am so happy to meet you today!",
"voice_id": "female-shaonv",
"emotion": "happy",
"speed": 1.0,
"format": "mp3"
}Then run:
curl -s "https://api.minimax.io/v1/t2a_v2" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.json --output happy_speech.mp3Emotion options: happy, sad, angry, fearful, disgusted, surprised, neutral
7. TTS with Audio Settings
Fine-tune audio output:
Write to /tmp/minimax_request.json:
{
"model": "speech-02-hd",
"text": "High quality audio test.",
"voice_id": "male-qn-qingse",
"speed": 1.0,
"vol": 1.0,
"pitch": 0,
"audio_sample_rate": 32000,
"bitrate": 128000,
"format": "mp3"
}Then run:
curl -s "https://api.minimax.io/v1/t2a_v2" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.json --output hq_speech.mp3TTS models:
speech-02-hd: High definition (best quality)speech-02-turbo: Fast generationspeech-01-hd: Previous gen HDspeech-01-turbo: Previous gen fast
8. Text-to-Video (T2V)
Generate video from text prompt:
Write to /tmp/minimax_request.json:
{
"model": "T2V-01-Director",
"prompt": "A cat playing with a ball of yarn [Static shot].",
"duration": 6,
"resolution": "1080P"
}Then run:
curl -s "https://api.minimax.io/v1/video_generation" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.json | jq '.task_id'Video generation is async - returns a task ID to poll for completion.
9. T2V with Camera Control
Control camera movement in videos:
Write to /tmp/minimax_request.json:
{
"model": "MiniMax-Hailuo-2.3",
"prompt": "A person walking through a forest [Tracking shot], then stops to look at a bird [Push in].",
"duration": 6,
"resolution": "1080P"
}Then run:
curl -s "https://api.minimax.io/v1/video_generation" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.json | jq '.task_id'Camera commands (in brackets):
- Movement:
Truck left/right,Pan left/right,Push in/Pull out - Vertical:
Pedestal up/down,Tilt up/down - Zoom:
Zoom in/out - Special:
Shake,Tracking shot,Static shot
Combine with [Pan left, Pedestal up] (max 3 simultaneous).
10. Image-to-Video (I2V)
Generate video from an image:
Note: For I2V, useMiniMax-Hailuo-2.3orS2V-01model which supportsfirst_frame_image. TheT2V-01-Directormodel is text-to-video only.
Write to /tmp/minimax_request.json:
{
"model": "MiniMax-Hailuo-2.3",
"prompt": "The scene comes to life with gentle movement [Static shot].",
"first_frame_image": "https://example.com/image.jpg",
"duration": 6,
"resolution": "1080P"
}Then run:
curl -s "https://api.minimax.io/v1/video_generation" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.json | jq '.task_id'Provide first_frame_image as URL or base64-encoded image.
11. Function Calling (Tools)
Use tools with chat:
Write to /tmp/minimax_request.json:
{
"model": "MiniMax-Text-01",
"messages": [
{"role": "user", "content": "What is the weather in Beijing?"}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "City name"}
},
"required": ["location"]
}
}
}
],
"tool_choice": "auto"
}Then run:
curl -s "https://api.minimax.io/v1/text/chatcompletion_v2" -X POST -H "Authorization: Bearer $MINIMAX_TOKEN" -H "Content-Type: application/json" -d @/tmp/minimax_request.json | jq '.choices[0]'Response Format
Chat Completion
{
"id": "string",
"choices": [{
"message": {
"role": "assistant",
"content": "Response text",
"reasoning_content": "Thought process (M1/M2 only)"
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 50,
"total_tokens": 60
}
}Guidelines
1. Use correct host: China uses api.minimax.io, global uses api.minimaxi.chat 2. Streaming for reasoning: M1/M2 models work best with stream: true 3. Camera syntax: Video commands go in [brackets] within prompts 4. Emotion in TTS: Only works with speech-02-* and speech-01-* models 5. Async video: Video generation returns task ID - poll for completion 6. Chinese optimized: MiniMax excels at Chinese language tasks
Related skills
How it compares
Pick minimax over generic LLM skills when integrating MiniMax Chinese models through vm0-ai with zero doctor connector checks.
FAQ
Which endpoint does minimax use?
minimax calls https://api.minimax.io/v1/text/chatcompletion_v2 with POST requests, passing Bearer MINIMAX_TOKEN in the Authorization header and JSON bodies specifying models like MiniMax-Text-01.
How do you debug minimax request failures?
minimax advises running zero doctor check-connector --env-name MINIMAX_TOKEN or zero doctor check-connector against the chatcompletion_v2 URL with method POST to validate vm0 connector configuration.