Last refreshed 2026-10-16. Next refresh: weekly.
Why use Beam on Vercel AI Gateway?
Vercel AI Gateway offers Beam with pay-as-you-go pricing at $1.30/1M input tokens. Vercel AI Gateway is a unified AI proxy providing a single OpenAI-compatible API endpoint to 275+ models from 25+ providers including Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, xAI, Alibaba, Amazon, ByteDance, Cohere, MiniMax, MoonshotAI, KwaiPilot, Black Forest Labs, Recraft, Voyage AI, NVIDIA, and more.
Setup recipe
Python + curlpip install openaiexport AI_GATEWAY_API_KEY=...import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],reflection/beamRequest example
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="reflection/beam",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Gotchas
- Use provider model ID "reflection/beam", not the LLMReference slug "beam".
- creator/model-name e.g. kwaipilot/kat-coder-pro-v2
- The examples expect AI_GATEWAY_API_KEY; rename it only if your application config maps the new variable.
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $1.30 |
| Output tokens | $4.30 |
Capabilities
About Beam
Beam is an open-weight sparse mixture-of-experts language model with 501B total and 23B active parameters, built for coding, reasoning, and long-horizon agentic work and trained from scratch. It is text-only, with a 1M-token context window, up to 128K output tokens, five reasoning effort levels (low to max, default medium), tool calling, and structured outputs, and a June 30, 2026 knowledge cutoff.