Using Mistral Large 4 on Vercel AI Gateway
Implementation guide · Mistral Large · MistralAI
Vercel AI Gateway exposes Mistral Large 4 through model ID mistral/mistral-large-4. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-10-06. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
mistral/mistral-large-4— see the documentation for request format. - 3
Code Examples
pip install openaiAI_GATEWAY_API_KEYmistral/mistral-large-4creator/model-name e.g. kwaipilot/kat-coder-pro-v2
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],
base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
model="mistral/mistral-large-4",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.68 |
| Output tokens | $2.09 |
| Image input | $1.00 |
Capabilities
About Mistral Large 4
Mistral Large 4 (API id mistral-large-4-0, public preview launched 6 October 2026) is Mistral AI's flagship open-weight multimodal Mixture-of-Experts model: 1.05T total parameters, 49B active, and a 1.6B vision encoder, with a 1M-token context window on first-party docs. It accepts text and image input and returns text. First-party docs list structured outputs, function calling, document QnA, prefix, chat completions, batching, agents/conversations, and built-in tools. Standard API pricing on docs.mistral.ai/inference/pricing is $0.68 / $0.07 cached input / $2.09 output per 1M tokens.