Vercel AI Gateway exposes Mercury 2 through model ID inception/mercury-2. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-09-23. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
inception/mercury-2— see the documentation for request format. - 3
Code Examples
Install
pip install openaiAPI key
AI_GATEWAY_API_KEYModel ID
inception/mercury-2creator/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="inception/mercury-2",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.25 |
| Output tokens | $0.75 |
Capabilities
Structured Outputs
About Mercury 2
Inception Labs' Mercury 2 is a commercial-scale diffusion-based language model (dLLM) released February 2026. Unlike autoregressive transformers, Mercury uses a diffusion architecture for faster inference. Designed for code generation, reasoning, and analysis tasks. Proprietary, available via the Inception API.
Model Specs
Released2026-02-20
Context131k