llmrelay
// gateway vs relay

llmrelay vs Vercel AI Gateway

Vercel's zero-markup promise is real and worth respecting. It also means you pay exactly Anthropic list price. We resell at half of it.

Claude Opus 4.7, per million tokens

Vercel AI Gateway
$5.00 / $25.00
zero markup, incl. BYOK
Anthropic direct
$5.00 / $25.00
baseline list
llmrelay
$2.50 / $12.50
50% off list

Read from the Vercel AI Gateway model page for anthropic/claude-opus-4.7 and the gateway pricing docs on 26 July 2026.

Zero markup is not the same as cheap

This is the whole comparison. "Zero markup" answers the question "is the gateway taking a cut?" It doesn't answer "am I paying less than list?" Vercel's honest answer to the second question is no, and they don't claim otherwise.

Our answer is $2.50 per million input tokens on the same model ID, because we buy upstream capacity in bulk and resell at half of official list rather than passing list through unchanged.

What Vercel bills separately

Tokens are clean. Some surrounding features are metered per request, which matters at volume:

Run 10 million requests a month with allowlist and ZDR on and that's $2,000 in request fees on top of tokens. Small at low volume, real at scale. Note also that Vercel describes its rates as mirroring upstream providers, so they move whenever the provider moves — the $5.00 is a reflection, not a commitment.

Where Vercel AI Gateway is the right choice

That last one is a genuinely good deal: if your company already negotiated Anthropic pricing, BYOK through Vercel adds no token markup at all.

Where llmrelay wins

If you don't have negotiated Anthropic pricing — which describes most indie developers and small teams — BYOK gives you nothing and you're on list. Halving that is worth more than SDK ergonomics.

The AI SDK works fine against us, incidentally. It speaks OpenAI-compatible, so you keep the SDK and change the base URL.

Migration

// Before (Vercel AI Gateway)
import { gateway } from '@ai-sdk/gateway';
const model = gateway('anthropic/claude-opus-4.7');

// After (llmrelay, same AI SDK)
import { createOpenAI } from '@ai-sdk/openai';
const llmrelay = createOpenAI({
  baseURL: 'https://api.llmrelay.dev/v1',
  apiKey: process.env.LLMRELAY_API_KEY,
});
const model = llmrelay('claude-opus-4-7');

A note on token counts

Anthropic states that Claude 4.7 and later use a newer tokenizer producing roughly 30% more tokens for the same text. Same rate card everywhere, more tokens per document than 4.6-era estimates. Build cost models on 4.7 tokenization.

Keep the AI SDK. Halve the token bill.

One base URL change and the same code runs at $2.50/M instead of $5.00/M on Opus 4.7. New accounts start with free credit.

Get API key →