@xpert-ai/plugin-minimax brings MiniMax AI capabilities to Xpert AI platform using OpenAI Compatible API. This plugin provides access to MiniMax's suite of AI models including large language models, text embeddings, and text-to-speech services with full OpenAI compatibility.
- π€ Large Language Models: Access MiniMax's latest models (MiniMax-M2, MiniMax-M2-Stable) with OpenAI compatible endpoints
- π€ Text Embeddings: Generate high-quality text embeddings using OpenAI compatible API format
- π£οΈ Text-to-Speech: Convert text to natural-sounding speech using MiniMax TTS models
- π OpenAI Compatible: Full compatibility with OpenAI SDK and LangChain ecosystem
- π¦ Standard Integration: Fully compatible with Xpert AI's plugin architecture
β Migrated to OpenAI Compatible API
- Updated endpoints to
https://api.minimaxi.com/v1 - Simplified credential structure (only
api_keyrequired) - Model name mapping for backward compatibility
- Improved error handling and validation
npm install @xpert-ai/plugin-minimax
# or
pnpm add @xpert-ai/plugin-minimaxPeer dependencies: Ensure your host project already provides
@xpert-ai/plugin-sdk,@nestjs/common,@nestjs/config,@metad/contracts,@langchain/openai,chalk, andzod. Seepackage.jsonfor exact version ranges.
-
Register Plugin
Include the package in thePLUGINSenvironment variable when starting Xpert:PLUGINS=@xpert-ai/plugin-minimax
-
Configure Credentials
Add a new model provider with typeminimaxin your Xpert configuration:{ "type": "minimax", "credentials": { "api_key": "your-minimax-api-key", "base_url": "https://api.minimaxi.com/v1" } } -
Create Models
Configure individual models using the provider:{ "name": "MiniMax Chat", "model": "MiniMax-M2", "modelProvider": { "type": "minimax", "credentials": { "api_key": "your-api-key" } }, "temperature": 0.7, "maxTokens": 2048 }
| Model Name | Description | OpenAI Compatible |
|---|---|---|
MiniMax-M2 |
Latest high-performance chat model | β |
MiniMax-M2-Stable |
Stable version of M2 model | β |
abab6.5-chat |
Legacy model (auto-mapped to M2) | β |
abab6.5s-chat |
Legacy streaming model (auto-mapped) | β |
| Model Name | OpenAI Compatible |
|---|---|
text-embedding-ada-002 |
β |
embo-01 |
Auto-mapped to text-embedding-ada-002 |
| Model Name | OpenAI Compatible |
|---|---|
tts-1 |
β |
tts-1-hd |
β |
speech-01 |
Auto-mapped to tts-1 |
speech-01-hd |
Auto-mapped to tts-1-hd |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
api_key |
string | Yes | - | MiniMax API key |
base_url |
string | No | https://api.minimaxi.com/v1 |
OpenAI compatible API endpoint |
If you were using the previous version with native MiniMax API:
Before (Native API):
{
"api_key": "your-key",
"base_url": "https://api.minimax.chat/v1",
"group_id": "your-group-id"
}After (OpenAI Compatible API):
{
"api_key": "your-key",
"base_url": "https://api.minimaxi.com/v1"
}- β
Removed
group_idrequirement - β
Updated endpoint to
api.minimaxi.com - β All models now use OpenAI compatible names
- β Automatic backward compatibility for legacy model names
# Install dependencies
npm install
# Build plugin
npm run build
# Run linting
npm run lintThe plugin uses MiniMax's OpenAI compatible API endpoints:
- Base URL:
https://api.minimaxi.com/v1 - Chat Completions:
/chat/completions - Embeddings:
/embeddings - Audio Speech:
/audio/speech
This package inherits the repository's AGPL-3.0 License.
# Install dependencies
npm install
# Build plugin
npm run build
# Run linting
npm run lintThis package inherits the repository's AGPL-3.0 License.