baseURL at Verlon and swap the API key.
Chat models
| Model ID | Type | Context |
|---|---|---|
claude-3-5-sonnet | chat | 200K |
claude-3-5-sonnet-20241022 | chat | 200K |
claude-3-haiku-20250307 | chat | 200K |
claude-3-opus-20250219 | chat | 200K |
claude-haiku-4-5-20251001 | chat | 200K |
claude-opus-4 | chat | 200K |
claude-opus-4-1-20250805 | chat | 200K |
claude-opus-4-20250514 | chat | 200K |
claude-opus-4-5-20251101 | chat | 200K |
claude-opus-4-6 | chat | 1000K |
claude-opus-4-7 | chat | 1000K |
claude-opus-4-8 | chat | 1000K |
claude-sonnet-4 | chat | 200K |
claude-sonnet-4-20250514 | chat | 1000K |
claude-sonnet-4-5-20250929 | chat | 1000K |
claude-sonnet-4-6 | chat | 1000K |
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
Add a gate reference
Pass
gateId (or set the default header). max_tokens, messages, and everything else stay the same.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.
| Status | Meaning | What to check |
|---|---|---|
400 | Invalid request | Malformed body or missing gateId |
401 | Invalid API key | Your VERLON_API_KEY value and the Authorization: Bearer header |
404 | Gate not found | Your GATE_ID — the error message names the offending ID |
429 | Rate limit exceeded | Back off and retry; the body includes reset_at, and every response carries X-RateLimit-* headers |
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 ↗

