What a request costs
A request costs its input tokens at the input rate plus its output tokens, reasoning included, at the output rate. Repeated prompt prefixes that hit the cache are billed at the cached rate.
- Short question, 1,000 input and 1,500 output tokens: about $0.008.
- Code review of one file, 6,000 input and 3,000 output tokens: about $0.021.
- Agent step with repository context, 40,000 input and 4,000 output tokens: about $0.067.
How to spend less
MiniMax M4 runs at maximum reasoning effort by default on MiniMax’s API. On this site the minimax-m4 model starts at medium effort, which already trims output tokens, and you can go lower.
- Pick the effort. Send reasoning_effort: "low" for simple edits and lookups, and "high" or "max" only when the task needs it.
- Cap the output. Set max_tokens. Thinking counts toward it, so leave room for reasoning plus the answer.
- Reuse prefixes. Keep system prompts and long context at the start of the message list so repeated calls hit the cache.