minimax-coding-plan-tool

MiniMax Token Plan工具 - 支持图片生成、图像理解、语音合成和视频生成。直接调用MiniMax官方API,纯JavaScript实现,无需外部MCP服务器。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "minimax-coding-plan-tool" with this command: npx skills add yongjie666888/minimax-coding-plan-tool-yongjie

MiniMax Coding Plan Tool

⚠️ 使用你的 OpenClaw OAuth Token(sk-cp- 开头)作为 API Key 来自 MiniMax Token Plan 订阅额度

MiniMax Token Plan 工具,支持:

  • 图片生成(image-01模型,200张/日)
  • 图像理解(VLM模型)
  • 语音合成(speech-2.8-hd模型)
  • 视频生成(MiniMax-Hailuo-2.3模型)
  • 网页搜索

纯 JavaScript 实现,直接调用 MiniMax 官方 API,无需外部 MCP 服务器。


✨ Features

1. minimax_generate_image

图片生成,使用 MiniMax image-01 模型。每日200张额度。

2. minimax_web_search

网页搜索,使用 MiniMax 搜索 API。

3. minimax_understand_image

图像理解,使用 MiniMax VLM 模型分析图片内容。

4. minimax_text_to_speech

语音合成,使用 MiniMax speech-2.8-hd 模型。支持英语发音,可调节语速。

5. minimax_generate_video

视频生成,使用 MiniMax-Hailuo-2.3 模型。异步生成,返回 task_id 用于查询进度。


🧩 Architecture

  • 纯 JavaScript 实现
  • 直接 HTTPS API 调用
  • 无需 MCP 服务器
  • 无需外部工具依赖

🔑 Configuration

API Key 使用你的 OpenClaw OAuth Token:

openclaw config set skills.entries.minimax-coding-plan-tool.apiKey "sk-cp-gr3tv5pdbN3aPQRhXbREJQrHymKxPZhdn9mdS2Ak9B2uD39bKTTJyRJhBdLRjWrd2KbkEFV8-Zd03HgRkJwCTbLq3NYtmAzZ6U2C2Dfb35o5g89RoDBLBv8"

Tool 1 — minimax_generate_image

Purpose

图片生成。使用 MiniMax image-01 模型,通过 Token Plan API 调用。额度:每日200张。

CLI Invocation

MINIMAX_API_KEY="sk-cp-..." node minimax_coding_plan_tool.js generate_image "描述词"

Input Schema

{
  "prompt": "string"
}

Output Format

{
  "success": true,
  "prompt": "a blue robot",
  "image_urls": ["https://..."],
  "job_id": "..."
}

Tool 2 — minimax_web_search

Purpose

实时网页搜索,使用 MiniMax 搜索 API。

CLI Invocation

MINIMAX_API_KEY="sk-cp-..." node minimax_coding_plan_tool.js web_search "查询词"

Input Schema

{
  "query": "string"
}

Output Format

{
  "success": true,
  "query": "...",
  "results": [
    { "title": "...", "link": "...", "snippet": "...", "date": "..." }
  ]
}

Tool 3 — minimax_understand_image

Purpose

图像理解,使用 MiniMax VLM API 分析图片内容。支持 JPEG/PNG/WebP/GIF。

CLI Invocation

MINIMAX_API_KEY="sk-cp-..." node minimax_coding_plan_tool.js understand_image @photo.png "描述这张图"

Input Schema

{
  "image_source": "string",
  "prompt": "string"
}

Output Format

{
  "success": true,
  "prompt": "...",
  "image_source": "...",
  "analysis": "model response"
}

Tool 4 — minimax_text_to_speech

Purpose

语音合成,使用 MiniMax speech-2.8-hd 模型,通过 Token Plan API 调用。支持英语等多种语言。

CLI Invocation

MINIMAX_API_KEY="sk-cp-..." node minimax_coding_plan_tool.js text_to_speech "Hello, welcome to MiniMax"

Input Schema

{
  "text": "string",
  "voice_id": "string (optional, default: English_expressive_narrator)",
  "speed": "number (optional, default: 1.0)"
}

Available Voice IDs

voice_idDescription
English_expressive_narratorExpressive English narrator
English_expressiveExpressive English
English_guyAmerican male voice
English_womanAmerican female voice
British_manBritish male voice
Chinese_CN_femaleChinese female voice

Output Format

{
  "success": true,
  "text": "Hello, welcome to MiniMax",
  "audio": "base64_encoded_audio_data",
  "audio_format": "mp3",
  "audio_length_ms": 2700,
  "job_id": "..."
}

Tool 5 — minimax_generate_video

Purpose

视频生成,使用 MiniMax MiniMax-Hailuo-2.3 模型,通过 Token Plan API 调用。异步生成,返回 task_id。

CLI Invocation

MINIMAX_API_KEY="sk-cp-..." node minimax_coding_plan_tool.js generate_video "a robot walking"

Input Schema

{
  "prompt": "string",
  "duration": "number (optional, 6 or 10 seconds, default: 6)",
  "resolution": "string (optional, '720P' or '1080P', default: '1080P')"
}

Output Format

{
  "success": true,
  "prompt": "a robot walking",
  "task_id": "380141647249520",
  "status": "pending"
}

⚠️ 注意

视频生成是异步的,需要等待完成后通过 task_id 查询结果。查询接口在 api.minimaxi.com 上返回 404,Token Plan 可能不支持视频进度查询,视频 URL 直接在生成完成后通过其他渠道获取。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

gitlab-mr-reviewer

当需要审核 GitLab 合并请求、检查 MR diff 风险、发布 GitLab 审查评论、执行 approve/request changes,或发送 MR 审查通知时使用。

Registry SourceRecently Updated
1490whrime
General

Voice Transcriber Toolkit

Voice-to-Text Transcription Toolkit - 语音识别转文字,支持Whisper/Vosk引擎,批量处理,字幕导出 | Speech recognition & transcription with Whisper/Vosk engines, batch processing, su...

Registry SourceRecently Updated
General

Gigo Lobster Taster

🦞 GIGO · gigo-lobster-taster: 正式试吃模式:跑完整评测,默认上传云端、生成个人结果页并进入排行榜。 Triggers: 试吃我的龙虾 / 品鉴我的龙虾 / lobster taste / lobster taster.

Registry SourceRecently Updated
General

Gigo Lobster Local

🦞 GIGO · gigo-lobster-local: 本地模式:跑完整评测,但不上云、不注册个人结果页,证书二维码回到官网首页。 Triggers: 本地试吃龙虾 / 离线试吃龙虾 / local lobster taste / offline lobster taste.

Registry SourceRecently Updated