---
title: Minimax M1 40K API | Text Generation | ModelsLab
description: Build with Minimax M1 40K API by MiniMaxAI. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/MiniMaxAI/minimaxai-minimax-m1-40k.md
canonical: https://modelslab.com/models/MiniMaxAI/minimaxai-minimax-m1-40k.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-29T21:07:17.438941Z
---

Minimax M1 40K
---

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

MiniMaxAI-MiniMax-M1-40k MiniMaxAI Closed Source Model

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

Related Models
---

Discover similar models you might be interested in

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

[G5](https://modelslab.com/models/together_ai/zai-org-GLM-5)[Together AI](https://modelslab.com/models/together_ai)

 [GLM 5 Fp4

Closed Source Model](https://modelslab.com/models/together_ai/zai-org-GLM-5)

[ML](https://modelslab.com/models/open_router/mistralai-mistral-large-2411)[Open Router](https://modelslab.com/models/open_router)

 [Mistral Large 2411

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mistral-large-2411)

[Q2](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-Coder-32B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen 2.5 Coder 32B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-Coder-32B-Instruct)

[OG](https://modelslab.com/models/open_router/openai-gpt-5.1-codex-mini)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-5.1-Codex-Mini

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-5.1-codex-mini)

[OG](https://modelslab.com/models/open_router/openai-gpt-5.4-image-2)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-5.4 Image 2

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-5.4-image-2)

[GG](https://modelslab.com/models/open_router/google-gemini-3.1-pro-preview-customtools)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemini 3.1 Pro Preview Custom Tools

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

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 1.7B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B)

[VU](https://modelslab.com/models/open_router/cognitivecomputations-dolphin-mistral-24b-venice-edition-free)[Open Router](https://modelslab.com/models/open_router)

 [Venice: Uncensored (free)

Closed Source Model](https://modelslab.com/models/open_router/cognitivecomputations-dolphin-mistral-24b-venice-edition-free)

[G4](https://modelslab.com/models/together_ai/google-gemma-4-26B-A4B-it)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 4 26B A4b It

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-4-26B-A4B-it)

[CV](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-qwen-14B)[Together AI](https://modelslab.com/models/together_ai)

 [Cogito V1 Preview Qwen 14B

Closed Source Model](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-qwen-14B)

[RE](https://modelslab.com/models/open_router/rekaai-reka-edge)[Open Router](https://modelslab.com/models/open_router)

 [Reka Edge

Closed Source Model](https://modelslab.com/models/open_router/rekaai-reka-edge)

[GG](https://modelslab.com/models/open_router/google-gemma-4-26b-a4b-it)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 4 26B A4B

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-4-26b-a4b-it)

[CC](https://modelslab.com/models/open_router/cohere-command-r-08-2024)[Open Router](https://modelslab.com/models/open_router)

 [Cohere: Command R (08-2024)

Closed Source Model](https://modelslab.com/models/open_router/cohere-command-r-08-2024)

[MS](https://modelslab.com/models/mistral_ai/mistralai-Mistral-Small-24B-Instruct-2501)[ModelsLab](https://modelslab.com/models/mistral_ai)

 [Mistral Small (24B) Instruct 25.01

Closed Source Model](https://modelslab.com/models/mistral_ai/mistralai-Mistral-Small-24B-Instruct-2501)

[AA](https://modelslab.com/models/open_router/arcee-ai-trinity-mini)[Open Router](https://modelslab.com/models/open_router)

 [Arcee AI: Trinity Mini

Closed Source Model](https://modelslab.com/models/open_router/arcee-ai-trinity-mini)

[GG](https://modelslab.com/models/open_router/google-gemini-2.0-flash-001)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemini 2.0 Flash

Closed Source Model](https://modelslab.com/models/open_router/google-gemini-2.0-flash-001)

[N8](https://modelslab.com/models/together_ai/nim-mistralai-mixtral-8x7b-instruct-v01)[Together AI](https://modelslab.com/models/together_ai)

 [nim/mistralai/mixtral-8x7b-instruct-v01

Closed Source Model](https://modelslab.com/models/together_ai/nim-mistralai-mixtral-8x7b-instruct-v01)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3.5-122b-a10b)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3.5-122B-A10B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3.5-122b-a10b)

About Minimax M1 40K
---

Minimax M1 40K is a text generation AI model by MiniMaxAI 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-40kCategoryLLM ModelsTaskText GenerationAddedApril 8, 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>
```

View the [full API documentation](https://modelslab.com/models/MiniMaxAI/MiniMaxAI-MiniMax-M1-40k/api) for SDKs, code examples in Python, JavaScript, and more.

### Use Cases

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

[Learn more about Minimax M1 40K](https://modelslab.com/minimax-m1-40k) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from MiniMaxAI](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 MiniMaxAI 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.

### Does Minimax M1 40K have a free tier?

Yes, ModelsLab offers a free tier that lets you try Minimax M1 40K and other AI models. Sign up to get free API credits and start building immediately.

---

*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-04-30*