Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

Added MiniMax config (#773)

Louis Choqueldc2f368d71f9
diff --git a/.env.example b/.env.example
index c7653a81f..6bc81c487 100644
--- a/.env.example
+++ b/.env.example
@@ -19,6 +19,9 @@ AWS_REGION=
# To use Claude models directly from their creator, Anthropic
ANTHROPIC_API_KEY=
+# To use MiniMax models
+MINIMAX_API_KEY=
+
# To use Mistral models
MISTRAL_API_KEY=
@@ -38,18 +41,18 @@ GCP_CREDENTIALS_FILE_PATH=gcp_credentials.json
XAI_API_KEY=
XAI_API_ENDPOINT=https://api.x.ai/v1/
+# Gateways that support various models:
+HF_TOKEN=
BLACKBOX_API_KEY=
-
OPENROUTER_API_KEY=
-
GROQ_API_KEY=
SCALEWAY_ENDPOINT=
SCALEWAY_API_KEY=
+# Langfuse for observability and evals
LANGFUSE_PUBLIC_KEY=
LANGFUSE_SECRET_KEY=
-HF_TOKEN=
-
+# Web Search & Fetch
LINKUP_API_KEY=
diff --git a/.pipelex-dev/test_profiles.toml b/.pipelex-dev/test_profiles.toml
index ebdca2079..3688a47af 100644
--- a/.pipelex-dev/test_profiles.toml
+++ b/.pipelex-dev/test_profiles.toml
@@ -40,6 +40,7 @@ all = [
"google",
"groq",
"huggingface",
+ "minimax",
"mistral",
"ollama",
"openai",
@@ -106,6 +107,17 @@ meta = [
# --- Microsoft Models ---
microsoft = ["phi-4", "phi-4-multimodal"]
+# --- MiniMax Models ---
+minimax = [
+ "minimax-m2",
+ "minimax-m2.1",
+ "minimax-m2.1-highspeed",
+ "minimax-m2.5",
+ "minimax-m2.5-highspeed",
+ "minimax-m2.7",
+ "minimax-m2.7-highspeed",
+]
+
# --- Mistral Models ---
mistralai = [
"bedrock-mistral-large",
diff --git a/.pipelex/inference/backends.toml b/.pipelex/inference/backends.toml
index 9c1a54c00..13495a407 100644
--- a/.pipelex/inference/backends.toml
+++ b/.pipelex/inference/backends.toml
@@ -63,6 +63,12 @@ display_name = "Linkup"
enabled = true
api_key = "${LINKUP_API_KEY}"
+[minimax]
+display_name = "MiniMax"
+enabled = true
+endpoint = "https://api.minimax.io/anthropic"
+api_key = "${MINIMAX_API_KEY}"
+
[mistral]
display_name = "Mistral AI"
enabled = true
diff --git a/.pipelex/inference/backends/minimax.toml b/.pipelex/inference/backends/minimax.toml
new file mode 100644
index 000000000..583380254
--- /dev/null
+++ b/.pipelex/inference/backends/minimax.toml
@@ -0,0 +1,78 @@
+################################################################################
+# MiniMax Backend Configuration
+################################################################################
+#
+# This file defines the model specifications for MiniMax models.
+# It contains model definitions for MiniMax language models
+# accessible through the MiniMax Anthropic-compatible API.
+#
+# Configuration structure:
+# - Each model is defined in its own section with the model name as the header
+# - Headers with dots must be quoted (e.g., ["minimax-m2.1"])
+# - Model costs are in USD per million tokens (input/output)
+#
+# Documentation: https://docs.pipelex.com
+# Support: https://go.pipelex.com/discord
+#
+################################################################################
+
+################################################################################
+# MODEL DEFAULTS
+################################################################################
+
+[defaults]
+model_type = "llm"
+sdk = "anthropic"
+prompting_target = "anthropic"
+structure_method = "instructor/anthropic_tools"
+thinking_mode = "manual"
+max_tokens = 16384
+
+################################################################################
+# LANGUAGE MODELS
+################################################################################
+
+# --- MiniMax M2 Series --------------------------------------------------------
+[minimax-m2]
+model_id = "MiniMax-M2"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.3, output = 1.2 }
+
+["minimax-m2.1"]
+model_id = "MiniMax-M2.1"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.3, output = 1.2 }
+
+["minimax-m2.1-highspeed"]
+model_id = "MiniMax-M2.1-highspeed"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.6, output = 2.4 }
+
+# --- MiniMax M2.5 Series ------------------------------------------------------
+["minimax-m2.5"]
+model_id = "MiniMax-M2.5"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.3, output = 1.2 }
+
+["minimax-m2.5-highspeed"]
+model_id = "MiniMax-M2.5-highspeed"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.6, output = 2.4 }
+
+# --- MiniMax M2.7 Series ------------------------------------------------------
+["minimax-m2.7"]
+model_id = "MiniMax-M2.7"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.3, output = 1.2 }
+
+["minimax-m2.7-highspeed"]
+model_id = "MiniMax-M2.7-highspeed"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.6, output = 2.4 }
diff --git a/.pipelex/inference/backends/pipelex_gateway_models.md b/.pipelex/inference/backends/pipelex_gateway_models.md
index 5d9f7e541..eb436dcad 100644
--- a/.pipelex/inference/backends/pipelex_gateway_models.md
+++ b/.pipelex/inference/backends/pipelex_gateway_models.md
@@ -558,6 +558,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late
> **AUTO-GENERATED FILE** - Do not edit manually.
-> Last updated: 2026-03-19T01:52:02Z
+> Last updated: 2026-03-21T13:07:30Z
>
> Run `pipelex-dev update-gateway-models` or `make ugm` to regenerate.
\ No newline at end of file
diff --git a/.pipelex/inference/backends/pipelex_gateway_models_plain.md b/.pipelex/inference/backends/pipelex_gateway_models_plain.md
index 1acda4419..576697ea7 100644
--- a/.pipelex/inference/backends/pipelex_gateway_models_plain.md
+++ b/.pipelex/inference/backends/pipelex_gateway_models_plain.md
@@ -208,6 +208,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late
> **AUTO-GENERATED FILE** - Do not edit manually.
-> Last updated: 2026-03-19T01:52:02Z
+> Last updated: 2026-03-21T13:07:30Z
>
> Run `pipelex-dev update-gateway-models` or `make ugm` to regenerate.
\ No newline at end of file
diff --git a/.pipelex/inference/routing_profiles.toml b/.pipelex/inference/routing_profiles.toml
index 090d2d4be..8b5d7d4c2 100644
--- a/.pipelex/inference/routing_profiles.toml
+++ b/.pipelex/inference/routing_profiles.toml
@@ -64,6 +64,10 @@ default = "huggingface"
description = "Use Linkup backend for all its supported models"
default = "linkup"
+[profiles.all_minimax]
+description = "Use MiniMax backend for all its supported models"
+default = "minimax"
+
[profiles.all_mistral]
description = "Use Mistral backend for all its supported models"
default = "mistral"
diff --git a/pipelex/kit/configs/inference/backends.toml b/pipelex/kit/configs/inference/backends.toml
index 9c1a54c00..13495a407 100644
--- a/pipelex/kit/configs/inference/backends.toml
+++ b/pipelex/kit/configs/inference/backends.toml
@@ -63,6 +63,12 @@ display_name = "Linkup"
enabled = true
api_key = "${LINKUP_API_KEY}"
+[minimax]
+display_name = "MiniMax"
+enabled = true
+endpoint = "https://api.minimax.io/anthropic"
+api_key = "${MINIMAX_API_KEY}"
+
[mistral]
display_name = "Mistral AI"
enabled = true
diff --git a/pipelex/kit/configs/inference/backends/minimax.toml b/pipelex/kit/configs/inference/backends/minimax.toml
new file mode 100644
index 000000000..583380254
--- /dev/null
+++ b/pipelex/kit/configs/inference/backends/minimax.toml
@@ -0,0 +1,78 @@
+################################################################################
+# MiniMax Backend Configuration
+################################################################################
+#
+# This file defines the model specifications for MiniMax models.
+# It contains model definitions for MiniMax language models
+# accessible through the MiniMax Anthropic-compatible API.
+#
+# Configuration structure:
+# - Each model is defined in its own section with the model name as the header
+# - Headers with dots must be quoted (e.g., ["minimax-m2.1"])
+# - Model costs are in USD per million tokens (input/output)
+#
+# Documentation: https://docs.pipelex.com
+# Support: https://go.pipelex.com/discord
+#
+################################################################################
+
+################################################################################
+# MODEL DEFAULTS
+################################################################################
+
+[defaults]
+model_type = "llm"
+sdk = "anthropic"
+prompting_target = "anthropic"
+structure_method = "instructor/anthropic_tools"
+thinking_mode = "manual"
+max_tokens = 16384
+
+################################################################################
+# LANGUAGE MODELS
+################################################################################
+
+# --- MiniMax M2 Series --------------------------------------------------------
+[minimax-m2]
+model_id = "MiniMax-M2"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.3, output = 1.2 }
+
+["minimax-m2.1"]
+model_id = "MiniMax-M2.1"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.3, output = 1.2 }
+
+["minimax-m2.1-highspeed"]
+model_id = "MiniMax-M2.1-highspeed"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.6, output = 2.4 }
+
+# --- MiniMax M2.5 Series ------------------------------------------------------
+["minimax-m2.5"]
+model_id = "MiniMax-M2.5"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.3, output = 1.2 }
+
+["minimax-m2.5-highspeed"]
+model_id = "MiniMax-M2.5-highspeed"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.6, output = 2.4 }
+
+# --- MiniMax M2.7 Series ------------------------------------------------------
+["minimax-m2.7"]
+model_id = "MiniMax-M2.7"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.3, output = 1.2 }
+
+["minimax-m2.7-highspeed"]
+model_id = "MiniMax-M2.7-highspeed"
+inputs = ["text"]
+outputs = ["text", "structured"]
+costs = { input = 0.6, output = 2.4 }
diff --git a/pipelex/kit/configs/inference/routing_profiles.toml b/pipelex/kit/configs/inference/routing_profiles.toml
index 090d2d4be..8b5d7d4c2 100644
--- a/pipelex/kit/configs/inference/routing_profiles.toml
+++ b/pipelex/kit/configs/inference/routing_profiles.toml
@@ -64,6 +64,10 @@ default = "huggingface"
description = "Use Linkup backend for all its supported models"
default = "linkup"
+[profiles.all_minimax]
+description = "Use MiniMax backend for all its supported models"
+default = "minimax"
+
[profiles.all_mistral]
description = "Use Mistral backend for all its supported models"
default = "mistral"
diff --git a/pipelex/test_extras/shared_pytest_plugins.py b/pipelex/test_extras/shared_pytest_plugins.py
index 47ec8d5d3..15b2a7e06 100644
--- a/pipelex/test_extras/shared_pytest_plugins.py
+++ b/pipelex/test_extras/shared_pytest_plugins.py
@@ -43,6 +43,7 @@ ENV_VAR_KEYS_WHICH_MAY_NEED_PLACEHOLDERS_IN_CI = [
"HF_TOKEN",
"LINKUP_API_KEY",
"OPENROUTER_API_KEY",
+ "MINIMAX_API_KEY",
]
diff --git a/tests/integration/pipelex/cogt/test_llm_gen_text.py b/tests/integration/pipelex/cogt/test_llm_gen_text.py
index 8102c63b4..f5757bef1 100644
--- a/tests/integration/pipelex/cogt/test_llm_gen_text.py
+++ b/tests/integration/pipelex/cogt/test_llm_gen_text.py
@@ -41,7 +41,12 @@ def get_worker_and_job(llm_preset_id: str, user_text: str, job_metadata: JobMeta
class TestLLMGenText:
@pytest.mark.parametrize(("topic", "prompt_text"), LLMTestCases.SINGLE_TEXT)
async def test_gen_text_using_handle(
- self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_combo: ModelCombo, topic: str, prompt_text: str
+ self,
+ job_metadata: JobMetadata,
+ llm_job_params: LLMJobParams,
+ llm_combo: ModelCombo,
+ topic: str,
+ prompt_text: str,
):
pretty_print(prompt_text, title=f"Generating text about '{topic}' using '{llm_combo.handle}'")
llm_worker = get_llm_worker(llm_handle=llm_combo.handle)
diff --git a/tests/integration/pipelex/fixtures/model_selection.py b/tests/integration/pipelex/fixtures/model_selection.py
index 44a96949b..9f3b0ca76 100644
--- a/tests/integration/pipelex/fixtures/model_selection.py
+++ b/tests/integration/pipelex/fixtures/model_selection.py
@@ -9,6 +9,8 @@ from __future__ import annotations
from functools import cache
from pathlib import Path
+import pytest
+
from tests.integration.pipelex.fixtures.model_combo import ModelCombo # noqa: TC001
# Path to generated fixtures file
@@ -21,6 +23,13 @@ MISSING_FIXTURES_ERROR_MSG = (
)
+def _or_skip(combos: list[ModelCombo], label: str) -> list[ModelCombo]:
+ """Return combos as-is, or a single skip-marked param if the list is empty."""
+ if combos:
+ return combos
+ return [pytest.param(None, marks=pytest.mark.skip(reason=f"No {label} combos in test profile"))] # type: ignore[list-item]
+
+
def _ensure_generated_fixtures_exist() -> None:
"""Ensure the generated fixtures file exists, raising an error if not.
@@ -46,7 +55,7 @@ def get_llm_combos() -> list[ModelCombo]:
LLM_COMBOS, # noqa: PLC2701
)
- return list(LLM_COMBOS)
+ return _or_skip(list(LLM_COMBOS), "LLM")
@cache
@@ -64,7 +73,7 @@ def get_img_gen_combos() -> list[ModelCombo]:
IMG_GEN_COMBOS, # noqa: PLC2701
)
- return list(IMG_GEN_COMBOS)
+ return _or_skip(list(IMG_GEN_COMBOS), "image generation")
@cache
@@ -82,7 +91,7 @@ def get_extract_combos() -> list[ModelCombo]:
EXTRACT_COMBOS, # noqa: PLC2701
)
- return list(EXTRACT_COMBOS)
+ return _or_skip(list(EXTRACT_COMBOS), "extraction")
@cache
@@ -100,4 +109,4 @@ def get_search_combos() -> list[ModelCombo]:
SEARCH_COMBOS, # noqa: PLC2701
)
- return list(SEARCH_COMBOS)
+ return _or_skip(list(SEARCH_COMBOS), "search")