---
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/together_ai/MiniMaxAI-MiniMax-M1-40k.md
canonical: https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M1-40k.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T00:25:52.636664Z
---

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)

[Q3](https://modelslab.com/models/together_ai/Qwen-Qwen3.5-397B-A17B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3.5 397B A17b

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

[GL](https://modelslab.com/models/open_router/google-lyria-3-clip-preview)[Open Router](https://modelslab.com/models/open_router)

 [Google: Lyria 3 Clip Preview

Closed Source Model](https://modelslab.com/models/open_router/google-lyria-3-clip-preview)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 VL 30B A3B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-instruct)

[GG](https://modelslab.com/models/open_router/google-gemma-3n-e4b-it-free)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 3n 4B (free)

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-3n-e4b-it-free)

[GN](https://modelslab.com/models/open_router/google-gemini-2.5-flash-image)[Open Router](https://modelslab.com/models/open_router)

 [Google: Nano Banana (Gemini 2.5 Flash Image)

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

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

 [Cogito V1 Preview Llama 8B

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

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

 [Google: Gemma 2 27B

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-2-27b-it)

[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)

[PS](https://modelslab.com/models/open_router/perplexity-sonar-reasoning-pro)[Open Router](https://modelslab.com/models/open_router)

 [Perplexity: Sonar Reasoning Pro

Closed Source Model](https://modelslab.com/models/open_router/perplexity-sonar-reasoning-pro)

[LG](https://modelslab.com/models/open_router/meta-llama-llama-guard-3-8b)[Open Router](https://modelslab.com/models/open_router)

 [Llama Guard 3 8B

Closed Source Model](https://modelslab.com/models/open_router/meta-llama-llama-guard-3-8b)

[MM](https://modelslab.com/models/open_router/minimax-minimax-m2.1)[Open Router](https://modelslab.com/models/open_router)

 [MiniMax: MiniMax M2.1

Closed Source Model](https://modelslab.com/models/open_router/minimax-minimax-m2.1)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b-thinking-2507)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 30B A3B Thinking 2507

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b-thinking-2507)

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

 [Qwen2.5 1.5B Instruct

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

[XG](https://modelslab.com/models/open_router/x-ai-grok-4)[Open Router](https://modelslab.com/models/open_router)

 [xAI: Grok 4

Closed Source Model](https://modelslab.com/models/open_router/x-ai-grok-4)

[G2](https://modelslab.com/models/google_deepmind/google-gemma-2-27b-it)[ModelsLab](https://modelslab.com/models/google_deepmind)

 [Gemma-2 Instruct (27B)

Closed Source Model](https://modelslab.com/models/google_deepmind/google-gemma-2-27b-it)

[NN](https://modelslab.com/models/open_router/nvidia-nemotron-nano-9b-v2-free)[Open Router](https://modelslab.com/models/open_router)

 [NVIDIA: Nemotron Nano 9B V2 (free)

Closed Source Model](https://modelslab.com/models/open_router/nvidia-nemotron-nano-9b-v2-free)

[Q8](https://modelslab.com/models/together_ai/Qwen-Qwen3-8B-Lora)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 8B Lora

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

[ML](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-70B-Instruct-Turbo)[ModelsLab](https://modelslab.com/models/meta)

 [Meta Llama 3.1 70B Instruct Turbo

Closed Source Model](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-70B-Instruct-Turbo)

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

[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-15*