MiniMax M3.1 Flash API
Efficient open-weight multimodal model for coding, agents, and 1M-token context
- Input per 1M
- $0.15
- Cached input per 1M
- $0.015
- Output per 1M
- $0.60
- Context window
- 1M
Call MiniMax M3.1 Flash in one request
Runware's endpoint takes the OpenAI Chat Completions format, so the OpenAI SDK works as it is. Change the base URL, key, and model ID. MiniMax M3.1 Flash is also available through the Anthropic Messages API.
minimax:m3.1@flashimport os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["RUNWARE_API_KEY"],
base_url="https://api.runware.ai/v1",
)
stream = client.chat.completions.create(
model="minimax:m3.1@flash",
messages=[
{"role": "user", "content": "What is the capital of France?"},
],
stream=True,
stream_options={"include_usage": True},
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
if chunk.usage:
print("\n", chunk.usage)Usage and cost come back with the response. The stream ends with the request's token counts and its cost, so there is no second call to make.
About 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.
- Developer
- MiniMax
- Released
- 20 Oct, 2026
- Input
- Text, Image, Video
- Context window
- 1M tokens
- Max output
- 524K tokens
- API
- OpenAI Chat Completions, Anthropic Messages
Already on another provider?
Code that uses the OpenAI SDK moves over with three changes: the base URL, the API key and the model ID. Moving production traffic? We'll help you plan the switch.
More LLMs on Runware
Same key, same endpoint, same per-token billing. Switching models means changing one ID.
Start on demand. Scale on dedicated.
Call your first model in minutes, or tell us about your workload and we will size dedicated capacity for it.