MiniMax M3.1 Flash

MiniMax M3.1 Flash is an efficient open-weight model in MiniMax's M-series for everyday coding, agentic reasoning, tool use, and long-context work. It accepts text, images, and video, with a 1M-token context window, up to 524,288 output tokens, and reasoning depth that can be tuned but not turned off. It suits coding agents, multi-step workflow automation, chart and document analysis, and frontend or presentation generation.
Newer in this family:MiniMax M4

Complete technical specification for integration
MiniMax M3.1 Flash is served through Runware's compatible endpoints, which take another provider's request format. Point the SDK you already use at Runware by changing the base URL and the API key, and set model to minimax:m3.1@flash.
Requests and responses keep the provider's format, so its reference documents every parameter.
| Endpoint | Format |
|---|---|
/v1/chat/completions | OpenAI Chat Completions |
/v1/messages | Anthropic Messages |
Chat Completions
curl -X POST https://api.runware.ai/v1/chat/completions \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax:m3.1@flash",
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}'from openai import OpenAI
client = OpenAI(
api_key="your_runware_api_key",
base_url="https://api.runware.ai/v1",
)
response = client.chat.completions.create(
model="minimax:m3.1@flash",
messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'your_runware_api_key',
baseURL: 'https://api.runware.ai/v1',
});
const response = await client.chat.completions.create({
model: 'minimax:m3.1@flash',
messages: [{ role: 'user', content: 'What is the capital of France?' }],
});
console.log(response.choices[0].message.content);import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
import { generateText } from 'ai';
const runware = createOpenAICompatible({
name: 'runware',
apiKey: 'your_runware_api_key',
baseURL: 'https://api.runware.ai/v1',
});
const { text } = await generateText({
model: runware('minimax:m3.1@flash'),
prompt: 'What is the capital of France?',
});
console.log(text);from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="minimax:m3.1@flash",
api_key="your_runware_api_key",
base_url="https://api.runware.ai/v1",
)
response = llm.invoke("What is the capital of France?")
print(response.text)Compatible APIs covers streaming, tool calling and how the endpoint differs from OpenAI, and the OpenAI API reference lists every parameter.
Messages
curl -X POST https://api.runware.ai/v1/messages \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax:m3.1@flash",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}'from anthropic import Anthropic
client = Anthropic(
auth_token="your_runware_api_key",
base_url="https://api.runware.ai",
)
message = client.messages.create(
model="minimax:m3.1@flash",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the capital of France?"}],
)
for block in message.content:
if block.type == "text":
print(block.text)import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({
authToken: 'your_runware_api_key',
baseURL: 'https://api.runware.ai',
});
const message = await client.messages.create({
model: 'minimax:m3.1@flash',
max_tokens: 1024,
messages: [{ role: 'user', content: 'What is the capital of France?' }],
});
for (const block of message.content) {
if (block.type === 'text') {
console.log(block.text);
}
}import { createAnthropic } from '@ai-sdk/anthropic';
import { generateText } from 'ai';
const runware = createAnthropic({
authToken: 'your_runware_api_key',
baseURL: 'https://api.runware.ai/v1',
});
const { text } = await generateText({
model: runware('minimax:m3.1@flash'),
maxOutputTokens: 1024,
prompt: 'What is the capital of France?',
});
console.log(text);from langchain_anthropic import ChatAnthropic
llm = ChatAnthropic(
model="minimax:m3.1@flash",
base_url="https://api.runware.ai",
default_headers={"Authorization": "Bearer your_runware_api_key"},
max_tokens=1024,
)
response = llm.invoke("What is the capital of France?")
print(response.text)Compatible APIs covers how the Anthropic SDKs authenticate against Runware, and the Claude API reference lists every parameter.