---
title: Minimax M1 40K API | Text Generation | ModelsLab
description: Build with Minimax M1 40K API by MiniMax AI. Text generation, chat, code, and reasoning. Plans from $21/month.
url: https://modelslab.com/models/minimaxai/MiniMaxAI-MiniMax-M1-40k.md
canonical: https://modelslab.com/models/minimaxai/MiniMaxAI-MiniMax-M1-40k
type: product
component: Playground/LLM/Index
generated_at: 2026-07-28T18:09:40.102061Z
---

Minimax M1 40K
---

 [LLMs.txt](https://modelslab.com/models/minimaxai/MiniMaxAI-MiniMax-M1-40k/llms.txt) [.md](https://modelslab.com/models/minimaxai/MiniMaxAI-MiniMax-M1-40k.md)

Minimax M1 40K
---

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

Send

### Minimax M1 40K

minimaxai MiniMaxAI-MiniMax-M1-40k

Copy model ID

PricingInput $0.00 / 1M tokens

Output $0.00 / 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 Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

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.

[![GPT 5.2](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/2bdd00f4-1692-49d8-a562-72cb1753d0ff.png)](https://modelslab.com/models/openai/gpt-5.2)[OpenAI](https://modelslab.com/models/openai)

 [GPT 5.2

Closed Source Model](https://modelslab.com/models/openai/gpt-5.2)

[![Gemini 3 Pro Preview](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/1846e76f-9d5c-4a35-a43a-82db45b7bb8b.png)](https://modelslab.com/models/google/gemini-3-pro-preview)[Google](https://modelslab.com/models/google)

 [Gemini 3 Pro Preview

Closed Source Model](https://modelslab.com/models/google/gemini-3-pro-preview)

[![GPT 5.1](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/fad83520-47a8-4059-b4b9-b32adf4d0be7.png)](https://modelslab.com/models/openai/gpt5.1)[OpenAI](https://modelslab.com/models/openai)

 [GPT 5.1

Closed Source Model](https://modelslab.com/models/openai/gpt5.1)

[![GPT-5.1-Codex-Max](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/06356c4c-df09-4ccb-a5c0-629da670f75b.png)](https://modelslab.com/models/openai/gpt-5.1-codex-max)[OpenAI](https://modelslab.com/models/openai)

 [GPT-5.1-Codex-Max

Closed Source Model](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.

[MC

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

 [Modelslab: Custom LLM

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

Related Models
---

Discover similar models you might be interested in

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

[#### Google/Google: Gemini 2.5 Flash Lite

google-gemini-2.5-flash-lite

From $0.25/M tokens](https://modelslab.com/models/google/google-gemini-2.5-flash-lite)

[#### Qwen/Qwen: Qwen Plus 0728

qwen-qwen-plus-2025-07-28

From $0.52/M tokens](https://modelslab.com/models/qwen/qwen-qwen-plus-2025-07-28)

[#### Google/Google: Gemma 4 31B

google-gemma-4-31b-it

From $0.27/M tokens](https://modelslab.com/models/google/google-gemma-4-31b-it)

[#### OpenAI/OpenAI: gpt-oss-20b

openai-gpt-oss-20b

From $0.09/M tokens](https://modelslab.com/models/openai/openai-gpt-oss-20b)

[#### Google/Google: Gemini 2.5 Pro

google-gemini-2.5-pro

From $5.63/M tokens](https://modelslab.com/models/google/google-gemini-2.5-pro)

[#### Xiaomi/Xiaomi: MiMo-V2.5

xiaomi-mimo-v2.5

From $0.21/M tokens](https://modelslab.com/models/xiaomi/xiaomi-mimo-v2.5)

[#### Anthropic/Anthropic: Claude Opus 4.5

anthropic-claude-opus-4.5

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

[#### Morph/Morph: Morph V3 Large

morph-morph-v3-large

From $1.40/M tokens](https://modelslab.com/models/morph/morph-morph-v3-large)

[#### Meta/Meta: Llama 3.2 1B Instruct

meta-llama-llama-3.2-1b-instruct

From $0.11/M tokens](https://modelslab.com/models/meta/meta-llama-llama-3.2-1b-instruct)

[#### Qwen/Qwen: Qwen3 8B

qwen-qwen3-8b

From $0.29/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-8b)

[#### Qwen/Qwen2.5 72B Instruct Turbo

Qwen-Qwen2.5-72B-Instruct-Turbo

From $1.20/M tokens](https://modelslab.com/models/qwen/Qwen-Qwen2.5-72B-Instruct-Turbo)

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

qwen-qwen3-30b-a3b-thinking-2507

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

[#### Deepcogito/Cogito v2.1 671B

deepcogito-cogito-v2-1-671b

From $1.25/M tokens](https://modelslab.com/models/deepcogito/deepcogito-cogito-v2-1-671b)

[#### DeepSeek/DeepSeek: DeepSeek V4 Pro

deepseek-deepseek-v4-pro

From $0.65/M tokens](https://modelslab.com/models/deepseek/deepseek-deepseek-v4-pro)

[#### Google/Google: Gemini 3 Flash Preview (batch)

google-gemini-3-flash-preview-batch

From $0.88/M tokens](https://modelslab.com/models/google/google-gemini-3-flash-preview-batch)

[#### Google/Google: Gemini 3.1 Pro Preview Custom Tools

google-gemini-3.1-pro-preview-customtools

From $7.00/M tokens](https://modelslab.com/models/google/google-gemini-3.1-pro-preview-customtools)

[#### OpenAI/GPT OSS 120b

gpt-oss-120b

From $0.10/M tokens](https://modelslab.com/models/openai/gpt-oss-120b)

[#### OpenAI/OpenAI: GPT-5.4

openai-gpt-5.4

From $8.75/M tokens](https://modelslab.com/models/openai/openai-gpt-5.4)

About Minimax M1 40K
---

Minimax M1 40K is a text generation AI model by MiniMax AI available on ModelsLab. Access Minimax M1 40K through our API with pay-per-use pricing and no minimum commitments.

### Technical Specifications

Model IDMiniMaxAI-MiniMax-M1-40k

CategoryLLM Models

TaskText Generation

AddedMay 21, 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 M1 40K 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": "MiniMaxAI-MiniMax-M1-40k",
        "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>
```

### 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 AI](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Minimax M1 40K FAQ
---

### What is Minimax M1 40K?

Minimax M1 40K is a text generation AI model by MiniMax AI available on ModelsLab. Access it through our API with pay-per-use pricing and no minimum commitments.

### How do I use the Minimax M1 40K API?

You can integrate Minimax M1 40K into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "MiniMaxAI-MiniMax-M1-40k" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### What is the Minimax M1 40K model ID?

The model ID for Minimax M1 40K is "MiniMaxAI-MiniMax-M1-40k". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use Minimax M1 40K?

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-07-28*