Skip to content

Automate browser based workflows with AI

feat: add MiniMax LLM provider support (#5109)

Octopus69a7a3f76538
diff --git a/.env.example b/.env.example
index dd5d44599..c7168e9f4 100644
--- a/.env.example
+++ b/.env.example
@@ -62,6 +62,13 @@ ENABLE_NOVITA=false
# NOVITA_API_KEY: Your Novita AI API key.
NOVITA_API_KEY=""
+# ENABLE_MINIMAX: Set to true to enable MiniMax as a language model provider.
+ENABLE_MINIMAX=false
+# MINIMAX_API_KEY: Your MiniMax API key for accessing models like MiniMax-M2.5.
+MINIMAX_API_KEY=""
+# MINIMAX_API_BASE: The base URL for MiniMax API.
+MINIMAX_API_BASE="https://api.minimax.io/v1"
+
# ENABLE_VOLCENGINE: Set to true to enable Volcengine(ByteDance Doubao) as a language model provider.
ENABLE_VOLCENGINE=false
# VOLCENGINE_API_KEY: Your Volcengine(ByteDance Doubao) API key.
diff --git a/README.md b/README.md
index ec728f199..cb1a3ec8c 100644
--- a/README.md
+++ b/README.md
@@ -520,6 +520,7 @@ More extensive documentation can be found on our [📕 docs page](https://www.sk
| Azure OpenAI | Any GPT models. Better performance with a multimodal llm (azure/gpt4-o) |
| AWS Bedrock | Claude 3.5, Claude 3.7, Claude 4 (Sonnet, Opus), Claude 4.5 (Sonnet, Opus) |
| Gemini | Gemini 3 Pro/Flash, Gemini 2.5 Pro/Flash |
+| MiniMax | MiniMax-M2.5, MiniMax-M2.5-highspeed (204K context) |
| Ollama | Run any locally hosted model via [Ollama](https://github.com/ollama/ollama) |
| OpenRouter | Access models through [OpenRouter](https://openrouter.ai) |
| OpenAI-compatible | Any custom API endpoint that follows OpenAI's API format (via [liteLLM](https://docs.litellm.ai/docs/providers/openai_compatible)) |
@@ -570,6 +571,15 @@ Recommended `LLM_KEY`: `BEDROCK_ANTHROPIC_CLAUDE4.5_OPUS_INFERENCE_PROFILE`, `BE
Recommended `LLM_KEY`: `GEMINI_3.0_FLASH`, `GEMINI_2.5_PRO`, `GEMINI_2.5_FLASH`, `GEMINI_2.5_PRO_PREVIEW`, `GEMINI_2.5_FLASH_PREVIEW`
+##### MiniMax
+| Variable | Description| Type | Sample Value|
+| -------- | ------- | ------- | ------- |
+| `ENABLE_MINIMAX`| Register MiniMax models | Boolean | `true`, `false` |
+| `MINIMAX_API_KEY` | MiniMax API key | String | `your-minimax-api-key` |
+| `MINIMAX_API_BASE` | MiniMax API base URL | String | `https://api.minimax.io/v1` |
+
+Recommended `LLM_KEY`: `MINIMAX_M2_5`, `MINIMAX_M2_5_HIGHSPEED`
+
##### Ollama
| Variable | Description| Type | Sample Value|
| -------- | ------- | ------- | ------- |
diff --git a/docs/self-hosted/llm-configuration.mdx b/docs/self-hosted/llm-configuration.mdx
index 20ee10fc5..e021f783f 100644
--- a/docs/self-hosted/llm-configuration.mdx
+++ b/docs/self-hosted/llm-configuration.mdx
@@ -185,6 +185,32 @@ Bedrock inference profile keys (`*_INFERENCE_PROFILE`) use cross-region inferenc
---
+## MiniMax
+
+[MiniMax](https://www.minimax.io/) models with 204K context window and vision support.
+
+```bash .env
+ENABLE_MINIMAX=true
+MINIMAX_API_KEY=your-minimax-api-key
+LLM_KEY=MINIMAX_M2_5
+```
+
+### Available models
+
+| LLM_KEY | Model | Notes |
+|---------|-------|-------|
+| `MINIMAX_M2_5` | MiniMax-M2.5 | Recommended, 204K context |
+| `MINIMAX_M2_5_HIGHSPEED` | MiniMax-M2.5-highspeed | Faster variant, 204K context |
+
+### Optional settings
+
+```bash .env
+# Use a custom API endpoint
+MINIMAX_API_BASE=https://api.minimax.io/v1
+```
+
+---
+
## Ollama (Local Models)
Run open-source models locally with [Ollama](https://ollama.ai/). No API costs, but requires sufficient local compute.
diff --git a/skyvern/config.py b/skyvern/config.py
index 8f07cf053..954b98e0d 100644
--- a/skyvern/config.py
+++ b/skyvern/config.py
@@ -372,6 +372,11 @@ class Settings(BaseSettings):
MOONSHOT_API_KEY: str | None = None
MOONSHOT_API_BASE: str = "https://api.moonshot.cn/v1"
+ # MINIMAX
+ ENABLE_MINIMAX: bool = False
+ MINIMAX_API_KEY: str | None = None
+ MINIMAX_API_BASE: str = "https://api.minimax.io/v1"
+
# INCEPTION AI
ENABLE_INCEPTION: bool = False
INCEPTION_API_KEY: str | None = None
diff --git a/skyvern/forge/sdk/api/llm/config_registry.py b/skyvern/forge/sdk/api/llm/config_registry.py
index 2322a70e6..d6bf24c29 100644
--- a/skyvern/forge/sdk/api/llm/config_registry.py
+++ b/skyvern/forge/sdk/api/llm/config_registry.py
@@ -1654,6 +1654,42 @@ if settings.ENABLE_MOONSHOT:
),
)
+if settings.ENABLE_MINIMAX:
+ LLMConfigRegistry.register_config(
+ "MINIMAX_M2_5",
+ LLMConfig(
+ "openai/MiniMax-M2.5",
+ ["MINIMAX_API_KEY"],
+ supports_vision=True,
+ add_assistant_prefix=False,
+ max_completion_tokens=4096,
+ temperature=0.5,
+ litellm_params=LiteLLMParams(
+ api_key=settings.MINIMAX_API_KEY,
+ api_base=settings.MINIMAX_API_BASE,
+ api_version=None,
+ model_info={"model_name": "openai/MiniMax-M2.5"},
+ ),
+ ),
+ )
+ LLMConfigRegistry.register_config(
+ "MINIMAX_M2_5_HIGHSPEED",
+ LLMConfig(
+ "openai/MiniMax-M2.5-highspeed",
+ ["MINIMAX_API_KEY"],
+ supports_vision=True,
+ add_assistant_prefix=False,
+ max_completion_tokens=4096,
+ temperature=0.5,
+ litellm_params=LiteLLMParams(
+ api_key=settings.MINIMAX_API_KEY,
+ api_base=settings.MINIMAX_API_BASE,
+ api_version=None,
+ model_info={"model_name": "openai/MiniMax-M2.5-highspeed"},
+ ),
+ ),
+ )
+
if settings.ENABLE_INCEPTION:
LLMConfigRegistry.register_config(
"INCEPTION_MERCURY_2",