# MiniMax

```json
{
  "name": "MiniMax",
  "slug": "minimax",
  "url": "https://composio.dev/toolkits/minimax",
  "markdown_url": "https://composio.dev/toolkits/minimax.md",
  "logo_url": "https://logos.composio.dev/api/minimax",
  "categories": [
    "ai & machine learning"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-01T07:20:23.631Z"
}
```

![MiniMax logo](https://logos.composio.dev/api/minimax)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with MiniMax MCP or direct API to generate text, create images and videos, synthesize speech, and process files through natural language.

## Summary

MiniMax is a multimodal AI platform for text, video, speech, image, music, and file workflows.
Its unified APIs help developers build rich AI experiences from one service.

## Categories

- ai & machine learning

## Toolkit Details

- Tools: 35

## Images

- Logo: https://logos.composio.dev/api/minimax

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for MiniMax.
  - Setup:
    - Configure Api Key credentials for MiniMax.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Generate a MiniMax voice narration
- Create a MiniMax image from text
- Generate a MiniMax video from storyboard

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `MINIMAX_CLONE_VOICE` | Clone Voice | Create a reusable MiniMax cloned voice from an uploaded voice sample, optionally generating paid preview audio. |
| `MINIMAX_COUNT_MESSAGE_TOKENS` | Count Message Tokens | Count input tokens for an Anthropic-compatible message payload without generating content. |
| `MINIMAX_CREATE_ASYNC_SPEECH` | Create Async Speech | Start a long-form asynchronous MiniMax speech synthesis task from inline text or one uploaded text file. |
| `MINIMAX_CREATE_LEGACY_VIDEO` | Create Legacy Video | Start a MiniMax v1 Hailuo text, image, first-and-last-frame, or subject-reference video task with mode-specific validation. |
| `MINIMAX_CREATE_RESPONSE` | Create OpenAI-Compatible Response | Call MiniMax through its OpenAI Responses compatibility contract and return one non-streaming response object. |
| `MINIMAX_CREATE_TEMPLATE_VIDEO` | Create Template Video | Start a MiniMax Video Agent task using an official template and its ordered text and media inputs. |
| `MINIMAX_CREATE_VIDEO` | Create Video | Start a MiniMax H3 video v2 generation task from text and optional reference media. Returns an asynchronous task ID for MINIMAX_GET_VIDEO_TASK. |
| `MINIMAX_CREATE_VIDEO_PROMPT` | Create Video Prompt | Start a MiniMax H3 Context-IR task that converts multimodal context into an enhanced video prompt. |
| `MINIMAX_DELETE_FILE` | Delete File | Permanently delete one MiniMax file by its exact ID and storage-purpose category. This operation cannot be undone. |
| `MINIMAX_DELETE_VIDEO_TASK` | Cancel or Delete Video Task | Cancel a queued MiniMax video v2 task, or permanently delete a completed or failed task record. The operation performed depends on the task's current state. |
| `MINIMAX_DELETE_VOICE` | Delete Voice | Permanently delete an eligible MiniMax cloned or designed voice. |
| `MINIMAX_DESIGN_VOICE` | Design Voice | Design a reusable MiniMax voice from a description and return its paid preview as a downloadable audio file. |
| `MINIMAX_DOWNLOAD_FILE` | Download File | Download the binary contents of one generated MiniMax file and return a managed file reference. Response headers determine the original name and MIME type when available; downloads larger than 100 MB are rejected. |
| `MINIMAX_ESTIMATE_RESPONSE_INPUT_TOKENS` | Estimate Responses Input Tokens | Estimate input tokens using MiniMax's OpenAI Responses compatibility contract without generating model output. |
| `MINIMAX_GENERATE_ANTHROPIC_MESSAGE` | Generate Anthropic-Compatible Message | Call MiniMax through its Anthropic Messages compatibility contract and return one non-streaming message response. |
| `MINIMAX_GENERATE_IMAGE` | Generate Image | Generate one or more images from a text prompt, optionally guided by a subject reference. |
| `MINIMAX_GENERATE_NATIVE_CHAT_COMPLETION` | Generate Native Chat Completion | Call MiniMax's native chatcompletion_v2 contract and return one non-streaming completion, including native sensitivity metadata. |
| `MINIMAX_GENERATE_TEXT` | Generate Text | Generate one non-streaming OpenAI-compatible chat completion, including optional reasoning and tool calls. |
| `MINIMAX_GET_ACCOUNT_BALANCE` | Get Account Balance | Get the connected global pay-as-you-go MiniMax account's available, cash, voucher, credit, owed, and balance-alert amounts. |
| `MINIMAX_GET_ANTHROPIC_MODEL` | Get Anthropic-Compatible Model | Retrieve one MiniMax text model through the Anthropic Models compatibility contract. |
| `MINIMAX_GET_ASYNC_SPEECH_TASK` | Get Async Speech Task | Get the status and generated file reference for a MiniMax asynchronous speech synthesis task. |
| `MINIMAX_GET_FILE` | Get File | Retrieve metadata for one MiniMax file by its exact ID, including a temporary download URL when MiniMax provides one for a generated output. |
| `MINIMAX_GET_LEGACY_VIDEO_TASK` | Get Legacy Video Task | Get the status and output file metadata of a MiniMax v1 legacy video task. |
| `MINIMAX_GET_TEMPLATE_VIDEO_TASK` | Get Template Video Task | Get the status and temporary result URL of a MiniMax Video Agent template task. |
| `MINIMAX_GET_TEXT_MODEL` | Get OpenAI-Compatible Text Model | Retrieve one MiniMax text model through the OpenAI Models compatibility contract. |
| `MINIMAX_GET_VIDEO_TASK` | Get Video Task | Get the current state and output of one MiniMax video v2 task created within the last seven days. Failed tasks are returned as task records with error details. |
| `MINIMAX_LIST_ANTHROPIC_MODELS` | List Anthropic-Compatible Models | List one page of MiniMax text models through the Anthropic Models compatibility contract, using its after_id or before_id cursors. |
| `MINIMAX_LIST_FILES` | List Files | List MiniMax files for one upload-purpose category. MiniMax documents no pagination for this endpoint. |
| `MINIMAX_LIST_TEXT_MODELS` | List Text Models | List text model IDs currently available to the connected MiniMax API key. |
| `MINIMAX_LIST_VIDEO_TASKS` | List Video Tasks | List one page of MiniMax video v2 tasks from the last seven days, optionally filtered by status, task ID, model, or task type. |
| `MINIMAX_LIST_VOICES` | List Voices | List system, cloned, generated, or all voices that can be used for speech synthesis. |
| `MINIMAX_REGENERATE_VIDEO` | Regenerate Video | Regenerate an eligible MiniMax-H3 768P source video as a 2K video, using either its task ID or the exact original inputs and source video. |
| `MINIMAX_SYNTHESIZE_SPEECH` | Synthesize Speech | Synchronously synthesize up to 9,999 characters of text and return the decoded audio as a downloadable file. |
| `MINIMAX_TRANSCRIBE_AUDIO` | Transcribe Audio | Transcribe an uploaded audio file with optional language hints, timestamps, speaker diarization, subtitle output, or assembled streaming output. |
| `MINIMAX_UPLOAD_FILE` | Upload File | Upload one file to MiniMax as multipart/form-data for voice cloning, async speech, video understanding, or video generation. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to MiniMax
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["minimax"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["minimax"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run MiniMax tools with your agent

Send a request, execute the MiniMax tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Generate a 10-second product video for a blue wireless speaker with upbeat background music."}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Generate a 10-second product video for a blue wireless speaker with upbeat background music." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to MiniMax and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["minimax"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["minimax"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a MiniMax request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to MiniMax tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Generate a 10-second product video for a blue wireless speaker with upbeat background music.")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Generate a 10-second product video for a blue wireless speaker with upbeat background music.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native MiniMax Integration

- Supports both MiniMax MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable text, image, video, speech, and file tool execution
- Rich coverage for creating and processing multimodal content with MiniMax

### 2. Managed Auth

- Secure API key handling without exposing credentials in agent prompts or application code
- Central place to manage, scope, and revoke MiniMax access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Clear schemas help agents choose the right MiniMax tool for text, image, video, speech, music, and file tasks
- Comprehensive execution logs show what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access MiniMax
- Scoped, least privilege access to MiniMax resources
- Full audit trail of agent actions to support review and compliance

## Use MiniMax with any AI Agent Framework

Choose a framework you want to connect MiniMax with:

- [ChatGPT](https://composio.dev/toolkits/minimax/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/minimax/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/minimax/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/minimax/framework/atomic-agent)

## Related Toolkits

- [Composio](https://composio.dev/toolkits/composio) - Composio is an integration platform that connects AI agents with hundreds of business tools. It streamlines authentication and lets you trigger actions across services—no custom code needed.
- [Composio search](https://composio.dev/toolkits/composio_search) - Composio search is a unified web search toolkit spanning travel, e-commerce, news, financial markets, images, and more. It lets you and your apps tap into up-to-date web data from a single, easy-to-integrate service.
- [Perplexityai](https://composio.dev/toolkits/perplexityai) - Perplexityai delivers natural, conversational AI models for generating human-like text. Instantly get context-aware, high-quality responses for chat, search, or complex workflows.
- [Browser tool](https://composio.dev/toolkits/browser_tool) - Browser tool is a virtual browser integration that lets AI agents interact with the web programmatically. It enables automated browsing, scraping, and action-taking from any AI workflow.
- [Ai ml api](https://composio.dev/toolkits/ai_ml_api) - Ai ml api is a suite of AI/ML models for natural language and image tasks. It provides fast, scalable access to advanced AI capabilities for your apps and workflows.
- [Aivoov](https://composio.dev/toolkits/aivoov) - Aivoov is an AI-powered text-to-speech platform offering 1,000+ voices in over 150 languages. Instantly turn written content into natural, human-like audio for any application.
- [All images ai](https://composio.dev/toolkits/all_images_ai) - All-Images.ai is an AI-powered image generation and management platform. It helps you create, search, and organize images effortlessly with advanced AI capabilities.
- [AltTextLab](https://composio.dev/toolkits/alt_text_lab) - AltTextLab is an AI service that generates accessible, SEO-aware alt text for images. It helps teams make image content easier to understand, index, and publish.
- [Anthropic administrator](https://composio.dev/toolkits/anthropic_administrator) - Anthropic administrator is an API for managing Anthropic organizational resources like members, workspaces, and API keys. It helps you automate admin tasks and streamline resource management across your Anthropic organization.
- [Api labz](https://composio.dev/toolkits/api_labz) - Api labz is a platform offering a suite of AI-driven APIs and workflow tools. It helps developers automate tasks and build smarter, more efficient applications.
- [Apiframe](https://composio.dev/toolkits/apiframe) - Apiframe is an API platform for generating and managing AI images, videos, music, uploads, assets, jobs, and custom LoRAs. It gives developers one clean API for creative AI workflows without juggling multiple model providers.
- [Apipie ai](https://composio.dev/toolkits/apipie_ai) - Apipie ai is an AI model aggregator offering a single API for accessing top AI models from multiple providers. It helps developers build cost-efficient, latency-optimized AI solutions without juggling multiple integrations.
- [Arize AX](https://composio.dev/toolkits/arize_ax) - Arize AX is an AI engineering platform for tracing, evaluating, and improving AI applications. Use it to debug LLM behavior, compare experiments, and improve production AI quality.
- [Artificial Analysis](https://composio.dev/toolkits/artificial_analysis) - Artificial Analysis is an independent benchmarking platform for AI models and API providers. Use it to compare model intelligence, coding, math, pricing, latency, throughput, and arena rankings.
- [AssemblyAI](https://composio.dev/toolkits/assemblyai) - AssemblyAI is a speech-to-text and audio intelligence API for uploaded or hosted media. Use it to turn audio and video into accurate transcripts, summaries, and insights.
- [Astica ai](https://composio.dev/toolkits/astica_ai) - Astica ai provides APIs for computer vision, NLP, and voice synthesis. Integrate advanced AI features into your app with a single API key.
- [Avoma](https://composio.dev/toolkits/avoma) - Avoma is an AI meeting assistant for recording, transcribing, analyzing, and managing meetings, calls, notes, scorecards, and conversation intelligence. It helps teams turn conversations into searchable notes, follow-ups, coaching insights, and revenue intelligence.
- [Bigml](https://composio.dev/toolkits/bigml) - BigML is a machine learning platform that lets you build, train, and deploy predictive models from your data. Its intuitive interface and robust API make machine learning accessible and efficient.
- [Black Forest Labs](https://composio.dev/toolkits/bfl) - Black Forest Labs provides hosted FLUX models for generating and editing images and videos. It offers fast, flexible media creation with asynchronous processing and fine-tuning support.
- [Bland AI](https://composio.dev/toolkits/bland_ai) - Bland AI is a conversational AI platform for building voice agents, phone calls, messaging, and communication workflows. Use it to automate calling, evaluate conversations, and run voice operations at scale.

## Frequently Asked Questions

### Do I need my own developer credentials to use MiniMax with Composio?

Yes, MiniMax requires you to configure your own API key. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
