一键导入
minimax
MiniMax API via curl. Use this skill for Chinese LLM chat, text-to-speech, and AI video generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
MiniMax API via curl. Use this skill for Chinese LLM chat, text-to-speech, and AI video generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill whenever the user wants sales-centric analysis driven by the `intl_analysis` StarRocks database, especially from a Saudi `leads-to-order` conversion perspective, and enriched by Megaview conversation evidence. Use it for seller performance comparison, session score and customer score analysis, conversation count analysis, GMV comparison, training samples, coaching calls, transcript snippets, manager coaching material, or to identify who should enter performance review first. Use it when the user wants to start from the growth chain in `intl_analysis` - channel, marketing, sales team, LP, trial completion, post-trial follow-up, TCC, and order conversion - then use Megaview to explain seller quality, fetch representative conversations, or build a review-priority list for underperformers. This skill is specifically for sales and growth-chain analysis built on `intl_analysis` plus Megaview, not for general-purpose Megaview API documentation, request drafting, or ad-hoc endpoint execution.
Extract teaching content from courseware files by following a user-provided dimension table or rubric, especially when the user gives an Excel/worksheet with categories and extraction rules plus a PPT/PPTX to analyze. Use this whenever the user wants you to map slide content into dimensions such as vocabulary, reading, phonics, grammar, sentence structures, or similar curriculum buckets, even if they do not explicitly ask for a "skill." Also use it when the user wants the extracted result filled into a new Excel workbook, wants unfound items left blank, wants a structured teaching-content summary generated from slide decks, or asks to use the built-in L4 teaching-dimension standard without re-uploading the Excel. When the input includes a PPT/PPTX, first use the PPTX skill workflow to turn the deck into per-slide images, then extract from both slide images and text together rather than relying on text alone.
Best practices for Remotion - Video creation in React
VIPKID 国际化运营后台助理。商品包等国际化管理能力操作 sa-manager.lionabc.com; Leads 管理页 `/leadsGCC/list`、私池/公海/冻结库列表查询与相关接口操作 sa-leads.lionabc.com。 支持商品包查询、新建、修改、库存、优惠券限制、赠送权限; 也支持 omnicenter 家长详情页相关操作,包括家长详情、资料修改、备注联系方式、时区、推荐码、解密、课耗、学习行为、跟进记录、海报配置查询; 还支持 Leads 列表筛选查询、节点统计、标签管理、解密用户、批量分配/流转、上传 Leads/权益、家长详情与关联页面入口说明。 用户说「查商品包」「新建课包」「修改价格」「配置库存」「优惠券限制」「赠送配置」「家长详情」「修改家长信息」「查课耗」「查学习行为」「查跟进记录」「查 leads」「Leads管理」「分配 GCC/GCS/TMK」「冻结 leads」「流转公海」「跟进 leads」「线索库」「解密用户」「上传 leads」时触发。 如果用户是口语化提问,比如「公海前10」「今天注册多少」「待付费从 2.1 到现在」「这个脚本在哪」「skill 该怎么改」,也要主动触发并优先用现成脚本回答,不要只给页面说明。 ⛔ 绝不执行上架、下架、删除操作;任何批量分配、冻结、流转、上传、改密前必须二次确认。
Converts Markdown to styled HTML with WeChat-compatible themes. Supports code highlighting, math, PlantUML, footnotes, alerts, and infographics. Use when user asks for "markdown to html", "convert md to html", "md转html", or needs styled HTML output from markdown.
Generate or update infographic Structure components for this repo (TypeScript/TSX in src/designs/structures). Use when asked to design, implement, or modify structure layouts (list/compare/sequence/hierarchy/relation/geo/chart), including layout logic, component composition, and registration.
| name | minimax |
| description | MiniMax API via curl. Use this skill for Chinese LLM chat, text-to-speech, and AI video generation. |
| vm0_secrets | ["MINIMAX_API_KEY"] |
Use the MiniMax API via direct curl calls for AI chat completion, text-to-speech, and video generation.
Official docs:
https://platform.minimax.io/docs
Use this skill when you need to:
api.minimaxi.chat (with extra "i")export MINIMAX_API_KEY="your-api-key"
| Region | Base URL |
|---|---|
| China | https://api.minimax.io |
| Global | https://api.minimaxi.chat |
Important: When using
$VARin a command that pipes to another command, wrap the command containing$VARinbash -c '...'. Due to a Claude Code bug, environment variables are silently cleared when pipes are used directly.bash -c 'curl -s "https://api.example.com" -H "Authorization: Bearer $API_KEY"'
All examples below assume you have MINIMAX_API_KEY set.
Authentication uses Bearer token in the Authorization header.
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:
bash -c 'curl -s "https://api.minimax.io/v1/text/chatcompletion_v2" -X POST -H "Authorization: Bearer ${MINIMAX_API_KEY}" -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)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:
bash -c 'curl -s "https://api.minimax.io/v1/text/chatcompletion_v2" -X POST -H "Authorization: Bearer ${MINIMAX_API_KEY}" -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 tokensGet 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_API_KEY}" -H "Content-Type: application/json" -d @/tmp/minimax_request.json
Streaming is recommended for reasoning models (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_API_KEY}" -H "Content-Type: application/json" -d @/tmp/minimax_request.json
Response includes reasoning_content field with thought process.
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_API_KEY}" -H "Content-Type: application/json" -d @/tmp/minimax_request.json --output speech.mp3
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_API_KEY}" -H "Content-Type: application/json" -d @/tmp/minimax_request.json --output happy_speech.mp3
Emotion options: happy, sad, angry, fearful, disgusted, surprised, neutral
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_API_KEY}" -H "Content-Type: application/json" -d @/tmp/minimax_request.json --output hq_speech.mp3
TTS models:
speech-02-hd: High definition (best quality)speech-02-turbo: Fast generationspeech-01-hd: Previous gen HDspeech-01-turbo: Previous gen fastGenerate 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:
bash -c 'curl -s "https://api.minimax.io/v1/video_generation" -X POST -H "Authorization: Bearer ${MINIMAX_API_KEY}" -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.
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:
bash -c 'curl -s "https://api.minimax.io/v1/video_generation" -X POST -H "Authorization: Bearer ${MINIMAX_API_KEY}" -H "Content-Type: application/json" -d @/tmp/minimax_request.json' | jq '.task_id'
Camera commands (in brackets):
Truck left/right, Pan left/right, Push in/Pull outPedestal up/down, Tilt up/downZoom in/outShake, Tracking shot, Static shotCombine with [Pan left, Pedestal up] (max 3 simultaneous).
Generate video from an image:
Note: For I2V, use
MiniMax-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:
bash -c 'curl -s "https://api.minimax.io/v1/video_generation" -X POST -H "Authorization: Bearer ${MINIMAX_API_KEY}" -H "Content-Type: application/json" -d @/tmp/minimax_request.json' | jq '.task_id'
Provide first_frame_image as URL or base64-encoded image.
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:
bash -c 'curl -s "https://api.minimax.io/v1/text/chatcompletion_v2" -X POST -H "Authorization: Bearer ${MINIMAX_API_KEY}" -H "Content-Type: application/json" -d @/tmp/minimax_request.json' | jq '.choices[0]'
{
"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
}
}
api.minimax.io, global uses api.minimaxi.chatstream: true[brackets] within promptsspeech-02-* and speech-01-* models