Vercel AI Gateway exposes Apex through model ID callstack/apex. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-10-09. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
callstack/apex— see the documentation for request format. - 3
Code Examples
pip install openaiAI_GATEWAY_API_KEYcallstack/apexcreator/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="callstack/apex",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.50 |
| Output tokens | $3.00 |
Capabilities
About Apex
Apex is Callstack's agentic coding model for mobile and web development, generally available since 1 October 2026. It is a Qwen-based model that Callstack post-trained on React and React Native source code, widely used open-source React Native libraries and its own engineering documentation, so it is strongest at React Native, React and Next.js work: building features, debugging, code review, tests, upgrades and migrations, including to the New Architecture. It has a 262,144-token context window and plugs into Claude Code, Cursor, Codex and other tools through OpenAI- and Anthropic-compatible endpoints.