baseURL at Verlon and swap the API key.
Chat models
This table is auto-generated from the Verlon model registry on every sync — see the live registry for pricing, benchmarks, and deprecation dates.
Other modalities
No non-chat models.Quickstart
First time? Create a gate and grab an API key — the examples below need a
GATE_ID and VERLON_API_KEY.claude-sonnet-4-6 for claude-opus-4-8, claude-haiku-4-5-20251001, or any other ID.
SDK compatibility
Verlon exposes an Anthropic-compatible endpoint. The official Anthropic SDK works unchanged — swap two lines and every model in the table above becomes callable through the SDK you already know.Configuration — just two lines
Specifying your gate
Verlon supports three ways to point a request at a gate:- Using gateId (Recommended)
- Using model field
- Using a default header
Requires
@ts-ignore in TypeScript, but the clearest intent.Streaming
Identical behavior to the Anthropic SDK —stream: true returns an async iterable of MessageStreamEvent objects.
Language coverage
What’s supported
Streaming
Streaming
Full support for
stream: true, identical semantics to Anthropic’s SDK.Tool use
Tool use
Fully supported. Verlon translates across providers if your gate routes to a non-Claude model.
Vision
Vision
Image inputs in messages work with any vision-capable model.
System messages + all message types
System messages + all message types
System prompts, user, assistant, and tool_result blocks all pass through.
Standard parameters
Standard parameters
temperature, max_tokens, top_p, top_k, stop_sequences, and the rest — all passed through.Usage + cost tracking
Usage + cost tracking
Standard
response.usage with token counts, plus Verlon’s cost field with per-call dollar amount.Migrating an existing Anthropic app
1
Update client initialization
Swap
baseURL + apiKey. Two lines.2
Add a gate reference
Pass
gateId (or set the default header). max_tokens, messages, and everything else stay the same.3
Test in development
Verify requests appear in the Verlon dashboard and cost tracking works.
4
Deploy
Ship. If anything breaks, revert the two-line diff — takes 30 seconds.
How it works
- You send an Anthropic-format request to
https://api.verlon.ai/v1/messages - Verlon receives — validates the gate, applies routing rules
- Verlon routes to whichever model your gate points at (Claude, GPT, Gemini, Mistral, or anything else in the registry)
- The provider responds in its native format
- Verlon normalizes back to Anthropic format
- You receive a standard Anthropic response with an added
costfield
Errors
Errors come back Anthropic-shaped —{ "type": "error", "error": { "type", "message" } } — so the Anthropic SDK’s error classes work unchanged.
FAQ
Do I need to change my request code?
Do I need to change my request code?
No. Change
baseURL + apiKey in the client. The messages.create calls stay identical.Can I still call Anthropic directly?
Can I still call Anthropic directly?
Yes. Revert
baseURL + apiKey to Anthropic values and you’re back on their API.Can I route a GPT or Gemini model through the Anthropic SDK?
Can I route a GPT or Gemini model through the Anthropic SDK?
Yes — that’s the point. Configure your gate to route to any model in the registry and your Anthropic SDK code stays the same.
Do I need the Verlon SDK?
Do I need the Verlon SDK?
No. This whole guide uses only the Anthropic SDK.
Full non-chat model list
This provider is chat-only — see the table above.Related
- OpenAI · Google · Mistral
- Verlon SDK reference — full-feature native SDK for new projects
- Gates — set up routing rules and model configuration
- Bring your own key — use your own Anthropic account for provider costs
- Anthropic’s official docs ↗

