MiniMax’s flagship M4 reasoning and multimodal model, released on December 3, 2026 for long-horizon coding, complex multi-step execution, and multimodal workflows. Supports a 1M-token context window, up to 262,144 output tokens, text and image input, tool calling, and prompt caching across OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. Thinking is always enabled and cannot be disabled; depth is controlled via reasoning_effort across low, medium, high, xhigh, and max (default: max).
This model is available to accounts that have topped up. Top up and you can call it right away. Go to billing
Replace the ONEHOP_KEY placeholder with your API key. Create one →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="minimax/minimax-m4",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)
base_url: https://api.onehop.ai/v1
Google Vertex AIStatus: Not supported—
OpenAI ImagesStatus: Not supported—
OpenAI SoraStatus: Not supported—
OpenAI EmbeddingsStatus: Not supported—
OpenAI Audio Speech (TTS)Status: Not supported—
OpenAI Audio Transcription (STT)Status: Not supported—
MiniMax M4 API Pricing and Gateway Access | OneHop