MiniMax M4 API Pricing and a Coding Cost Example
Estimate MiniMax M4 input, output, and cache costs and see what its million-token context means for coding workflows.
By the buymeatokens team1 min read
Short answer
MiniMax M4 lists $0.80 per million input tokens, $3.10 per million output tokens, and $0.05 per million cache-read tokens.
On this page
MiniMax introduced M4 with a million-token context window, 2.74 trillion total parameters, and 66 billion active parameters per token. Developers can try it through the MiniMax API and MiniMax Code. The API pricing separates fresh input, cached reads, and output. MiniMax M4 announcement
MiniMax M4 token prices
| Usage | Price per million tokens |
|---|---|
| Fresh input | $0.80 |
| Output | $3.10 |
| Cache read | $0.05 |
Check the pricing sheet for cache writes and any tool charges when forecasting your total. MiniMax’s API and subscription products have distinct billing rules. MiniMax API pricing
Estimate a coding session before changing models
Suppose an agent sends 80,000 fresh tokens and generates 12,000 tokens. At the published rates, that comes to $0.1012 across the input and output. If a follow-up reads 60,000 cached tokens, sends 20,000 fresh tokens, and generates 8,000 tokens, the follow-up comes to $0.0438 before cache writes or tool charges. Actual billing depends on the cache usage reported by the platform. Prompt caching explained
Compare cost per merged patch
Choose three issues already resolved by your team and give both M4 and your current model the same checkout and test command. Count all attempts before the tests pass, then ask a reviewer to flag brittle changes and extra files. A cheaper first turn matters less when the agent needs two retries. Track raw token usage and review time alongside the invoice. Track model usage
Frequently asked questions
Are the M4 weights available?
MiniMax announced plans to release weights following evaluations. Check the official announcement for availability and license details before planning a local deployment. MiniMax M4
Do I pay for a million tokens on every request?
The context window is a maximum capacity. Billing follows actual token usage and any applicable ancillary charges.
Can I treat cached input as free?
MiniMax lists $0.05 per million cache-read tokens. Multiply by the cache reads shown in your usage data. Context windows explained