Skip to content

Model catalog

MiniMax-M4 API pricing and integration

MiniMax-M4 on ProxyStacks Relay — input $0.960, output $3.72 per 1M tokens. Pay as you go from the same balance as every other model. Supports a 1,000,000-token context window, native reasoning tokens, and prompt cache hit billing ($0.06/1M) across OpenAI Chat Completions, Responses, and Anthropic Messages endpoints.

minimax-m41M-context reasoning & coding flagship1,000,000 tokensStreaming
Published model pricingUSD / 1M
Input
$0.960
Output
$3.72
Cache hit
$0.060
Cache write · 5m TTL
—
Cache write · 1h TTL
—

Connect this model

Set RELAY_API_KEY in your environment. Install openai or anthropic for the corresponding Python example. Keep secrets out of source control.

openai-example.py
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["RELAY_API_KEY"],
    base_url="https://proxystacks.com/v1",
)
response = client.chat.completions.create(
    model="minimax-m4",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Model questions

What is the exact API model ID and endpoint for MiniMax-M4?

Pass model="minimax-m4" to https://proxystacks.com/v1 (OpenAI-compatible Chat Completions / Responses) or https://proxystacks.com/anthropic (Anthropic Messages for Claude Code).

Does this model support streaming?

Supported

What is the context window?

1,000,000 tokens

How is cached usage billed?

Cache reads and writes are separate billing items. The rate card above lists USD per 1M tokens; actual cache usage depends on the upstream model and request.

When do off-peak prices apply?

No off-peak rates are configured for this model.

Specs

Context window
1,000,000 tokens
Streaming
Supported

All models