> ## Documentation Index
> Fetch the complete documentation index at: https://docs.venice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# MiniMax M4 API

> MiniMax M4 API on Venice: 1M context, $1.00 input and $3.88 output per 1M tokens. Anonymized access without your identity. Pricing, specs and code examples.



## MiniMax M4 API

MiniMax M4 is a large language model by MiniMax, available on the Venice API as `minimax-m4`. The provider of this model may retain prompt data (though it is anonymized by Venice). For sensitive content, use a private model.

MiniMax M4 is a 2.74T-parameter (66B active) natively multimodal flagship model from MiniMax for long-horizon coding, agentic workflows, and complex reasoning, with a 1M-token context window, text, image, and video input, and tunable thinking depth from low to max (high by default).

### MiniMax M4 API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `minimax-m4` | Standard | Anonymized | $1.00 / $3.88 per 1M |

### MiniMax M4 specifications

| Spec | Value |
| - | - |
| Provider | MiniMax |
| Released | Dec 3, 2026 |
| Privacy | Anonymized |
| Status | Stable |
| Context window | 1M tokens |
| Max output | 128K tokens |
| Reasoning effort | low, medium, high, xhigh, max |
| [Live speed and uptime](https://docs.venice.ai/models/methodology.md#machine-readable-data) | [https://metrics.venice.ai/v1/models/minimax-m4.json](https://metrics.venice.ai/v1/models/minimax-m4.json), refreshed every 5 minutes |

### How to use the MiniMax M4 API

Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "minimax-m4"` and your API key.

```bash theme={"system"}
curl https://api.venice.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m4",
    "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
    "reasoning_effort": "high"
  }'
```

### Related models

* [Hy4 API](https://docs.venice.ai/models/hy4.md): $1.04 / $3.13 per 1M
* [Amazon Ergo 1.0 API](https://docs.venice.ai/models/amazon-ergo-1-0.md): $1.00 / $3.00 per 1M
* [Abliterated Large Flash API](https://docs.venice.ai/models/abliterated-large-flash.md): $1.25 / $2.50 per 1M
* [GPT-6.1 Terra API](https://docs.venice.ai/models/gpt-6-1-terra.md): $1.00 / $5.00 per 1M


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.