---
title: MiniMax: MiniMax M3.1 Flash | Text Generation | ModelsLab
description: Build with MiniMax: MiniMax M3.1 Flash API by MiniMax. Text generation, chat, code, and reasoning. Plans from $21/month.
url: https://modelslab.com/models/minimax/minimax-minimax-m3.1-flash.md
canonical: https://modelslab.com/models/minimax/minimax-minimax-m3.1-flash
type: product
component: Playground/LLM/Index
generated_at: 2026-10-23T03:13:25.887081Z
---

MiniMax: MiniMax M3.1 Flash
---

 [LLMs.txt](https://modelslab.com/models/minimax/minimax-minimax-m3.1-flash/llms.txt) [.md](https://modelslab.com/models/minimax/minimax-minimax-m3.1-flash.md)

MiniMax: MiniMax M3.1 Flash
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

images and text files

Send

### MiniMax: MiniMax M3.1 Flash

minimax minimax-minimax-m3.1-flash

Copy model ID

PricingInput $0.15 / 1M tokens

Output $0.60 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens4000

Top P0.9

Frequency Penalty0

Presence Penalty0

Thinkinglow

lowmediumhigh

Deeper thinking spends more of the Max Tokens budget before the answer starts.

Model Info

Support

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

[OpenAI](https://modelslab.com/models/openai)

 [GPT 5.2](https://modelslab.com/models/openai/gpt-5.2)

[OpenAI](https://modelslab.com/models/openai)

 [GPT 5.1](https://modelslab.com/models/openai/gpt5.1)

[Google](https://modelslab.com/models/google)

 [Gemini 3 Pro Preview](https://modelslab.com/models/google/gemini-3-pro-preview)

[OpenAI](https://modelslab.com/models/openai)

 [GPT-5.1-Codex-Max](https://modelslab.com/models/openai/gpt-5.1-codex-max)

### Lower cost per run

Open-source models we host, unlimited on the $149/month plan.

[ModelsLab](https://modelslab.com/models/modelslab) Popular

 [Modelslab: Custom LLM](https://modelslab.com/models/modelslab/uncensored-chat)Open Source Model

[Qwen](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 235B A22B Instruct 2507](https://modelslab.com/models/qwen/qwen-qwen3-235b-a22b-2507)Closed Source Model

[OpenAI](https://modelslab.com/models/openai)

 [gpt-oss-20b](https://modelslab.com/models/openai/gpt-oss-20b)Closed Source Model

[DeepSeek](https://modelslab.com/models/open_router)

 [DeepSeek: DeepSeek V4 Flash 0423](https://modelslab.com/models/deepseek/deepseek-deepseek-v4-flash)Closed Source Model

[Google](https://modelslab.com/models/open_router)

 [Gemma 4 31B-it FP8](https://modelslab.com/models/google/google-gemma-4-31B-it)Closed Source Model

[Google](https://modelslab.com/models/open_router)

 [Google: Gemma 4 31B](https://modelslab.com/models/google/google-gemma-4-31b-it)Closed Source Model

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### Tencent/Tencent: Hy-MT2-7B

tencent-hy-mt2-7b

From $0.18/M tokens](https://modelslab.com/models/tencent/tencent-hy-mt2-7b)

[#### Alibaba Cloud/Qwen: Qwen3.5-35B-A3B

qwen-qwen3.5-35b-a3b

From $1.13/M tokens](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-35b-a3b)

[#### xAI/SpaceXAI: Grok 4.20 Multi-Agent

x-ai-grok-4.20-multi-agent

From $1.88/M tokens](https://modelslab.com/models/x-ai/x-ai-grok-4.20-multi-agent)

[#### Qwen/Qwen: Qwen3.8 Max (0902)

qwen-qwen3.8-max-0902

From $4.00/M tokens](https://modelslab.com/models/qwen/qwen-qwen3.8-max-0902)

[#### OpenAI/OpenAI: GPT-4o (2024-05-13)

openai-gpt-4o-2024-05-13

From $10.00/M tokens](https://modelslab.com/models/openai/openai-gpt-4o-2024-05-13)

[#### DeepSeek/DeepSeek: DeepSeek V4 Flash Vision Exp

deepseek-deepseek-v4-flash-vision-exp

From $0.43/M tokens](https://modelslab.com/models/deepseek/deepseek-deepseek-v4-flash-vision-exp)

[#### Qwen/Qwen: Qwen3.8 Max Prime

qwen-qwen3.8-max-prime

From $8.00/M tokens](https://modelslab.com/models/qwen/qwen-qwen3.8-max-prime)

[#### Moonshot AI/Kimi K2.6 Fp4

moonshotai-Kimi-K2.6

From $2.85/M tokens](https://modelslab.com/models/moonshotai/moonshotai-Kimi-K2.6)

[#### Qwen/Qwen3 14B

Qwen-Qwen3-14B

Free](https://modelslab.com/models/Qwen/Qwen-Qwen3-14B)

[#### OpenAI/OpenAI: GPT-3.5 Turbo

openai-gpt-3.5-turbo

From $1.00/M tokens](https://modelslab.com/models/openai/openai-gpt-3.5-turbo)

[#### MiniMax/MiniMax: MiniMax M2.1

minimax-minimax-m2.1

From $0.75/M tokens](https://modelslab.com/models/minimax/minimax-minimax-m2.1)

[#### Anthropic/Anthropic: Claude Opus 4.1

anthropic-claude-opus-4.1

From $45.00/M tokens](https://modelslab.com/models/anthropic/anthropic-claude-opus-4.1)

[#### Aion Labs/AionLabs: Aion-3.0-Mini

aion-labs-aion-3.0-mini

From $1.05/M tokens](https://modelslab.com/models/aion-labs/aion-labs-aion-3.0-mini)

[#### Cohere/Cohere: Command A

cohere-command-a

From $6.25/M tokens](https://modelslab.com/models/cohere/cohere-command-a)

[#### Thinking Machines/Thinking Machines: Inkling Small (free)

thinkingmachines-inkling-small-free

Free](https://modelslab.com/models/thinkingmachines/thinkingmachines-inkling-small-free)

[#### Qwen/Qwen: Qwen3.8 2.4T A95B

qwen-qwen3.8-2.4t-a95b

From $4.00/M tokens](https://modelslab.com/models/qwen/qwen-qwen3.8-2.4t-a95b)

[#### Meta/Meta: Llama 3.1 8B Instruct

meta-llama-llama-3.1-8b-instruct

From $0.07/M tokens](https://modelslab.com/models/meta/meta-llama-llama-3.1-8b-instruct)

[#### Qwen/Qwen: Qwen3 30B A3B Instruct 2507

qwen-qwen3-30b-a3b-instruct-2507

From $0.20/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-30b-a3b-instruct-2507)

About MiniMax: MiniMax M3.1 Flash
---

MiniMax-M3.1-Flash is a multimodal model from MiniMax. Compared with M3, it delivers significant improvements across multiple benchmarks, particularly in complex agentic tasks, coding, and cybersecurity. It is built for complex,...

### Technical Specifications

Model IDminimax-minimax-m3.1-flash

CategoryLLM Models

TaskText Generation

Price$0.375 per million tokens

AddedOctober 22, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate MiniMax: MiniMax M3.1 Flash into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "minimax-minimax-m3.1-flash",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

MiniMax: MiniMax M3.1 Flash API costs $0.375 per million tokens. Plans start at $21/month, and open-source models are unlimited on the $149/month plan. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from MiniMax](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

MiniMax: MiniMax M3.1 Flash FAQ
---

### What is MiniMax: MiniMax M3.1 Flash?

MiniMax-M3.1-Flash is a multimodal model from MiniMax. Compared with M3, it delivers significant improvements across multiple benchmarks, particularly in complex agentic tasks, coding, and cybersecurity. It is built for complex,...

### How do I use the MiniMax: MiniMax M3.1 Flash API?

You can integrate MiniMax: MiniMax M3.1 Flash into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "minimax-minimax-m3.1-flash" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does MiniMax: MiniMax M3.1 Flash cost?

MiniMax: MiniMax M3.1 Flash costs $0.375 per million tokens. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.

### What is the MiniMax: MiniMax M3.1 Flash model ID?

The model ID for MiniMax: MiniMax M3.1 Flash is "minimax-minimax-m3.1-flash". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use MiniMax: MiniMax M3.1 Flash?

Yes. ModelsLab is subscription-based with no free tier — plans start at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-10-23*