Using Mistral Large 4 on Vercel AI Gateway

Implementation guide · Mistral Large · MistralAI

Serverless

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. 1
    Create an account at Vercel AI Gateway and generate an API key.
  2. 2
    Use the Vercel AI Gateway SDK or REST API to call mistral/mistral-large-4 — see the documentation for request format.
  3. 3
    You'll be billed $0.68/1M input, $2.09/1M output tokens. See full pricing.

Code Examples

Install
pip install openai
API key
AI_GATEWAY_API_KEY
Model ID
mistral/mistral-large-4

creator/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

TypePrice (per 1M)
Input tokens$0.68
Output tokens$2.09
Image input$1.00

Capabilities

VisionMultimodalJSON / Tool useStructured OutputsPrompt CachingBatch API

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.

Model Specs

Released2026-10-06
Parameters1.05T (49B active)
Context1.05m
ArchitectureMixture of Experts

Provider

Vercel AI Gateway

Vercel