# Mistral Large 4 API

https://getmegabrain.com/models/mistralai/mistral-large-4-0 · prices from the live MegaBrain catalogue

> Mistral Large 4 is a frontier multimodal (text and image input) model from Mistral AI built for reasoning, coding, and agentic workloads. It offers a 1M-token context window with up...

| | |
|---|---|
| Model ID | `mistralai/mistral-large-4-0` |
| Provider | Mistral |
| Context window | 1,048,576 tokens |
| Input tokens | $0.84 per 1M tokens |
| Output tokens | $2.52 per 1M tokens |
| Cache read | $0.08 per 1M tokens |
| Accepts | Text and Images |
| Produces | Text |
| Max output tokens | 262,144 |

## Call it

```python
from openai import OpenAI

client = OpenAI(base_url="https://getmegabrain.com/api/gateway/v1", api_key="YOUR_MEGABRAIN_KEY")
reply = client.chat.completions.create(
    model="mistralai/mistral-large-4-0",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)
```

## FAQ

**How much does the Mistral Large 4 API cost?**

$0.84 per 1M input tokens and $2.52 per 1M output tokens, charged from a prepaid US-dollar balance for the tokens actually used. There is no subscription.

**What is the context window of Mistral Large 4?**

1,048,576 tokens (1M), with up to 262,144 tokens in one reply.

**How do I call Mistral Large 4 through the API?**

Send an OpenAI-compatible request to https://getmegabrain.com/api/gateway/v1/chat/completions with "model": "mistralai/mistral-large-4-0" and your MegaBrain API key as a Bearer token. The official OpenAI SDKs, LangChain and any client with a base URL setting work; the same key also reaches image and video models.

**What input does Mistral Large 4 accept?**

It accepts Text and Images and produces Text.

**Can I try Mistral Large 4 before paying?**

Sign-up is free and open to everyone. Adding a card (nothing is charged) gives $1.00 of credit to try any model; after that every model is charged from a balance you top up by card.
