Pay with credits (no Anthropic account)
You can use Claude models without your own Anthropic account. ngrok.ai supplies the Anthropic credentials and bills the model cost to your credits.Create an access key and add credits
Follow the quickstart to create an access key and purchase credits in app.ngrok.ai.
The gateway supports both the Anthropic Messages API (
/v1/messages) and OpenAI-compatible Chat Completions.Bring your own Anthropic key
Want requests billed to your own Anthropic account instead of through credits? Store your Anthropic key once—the gateway attaches it for you on every request.Create an access key
Follow the quickstart to create an access key in app.ngrok.ai if you don’t have one yet.
Add your Anthropic key
Add a provider key for Anthropic.
ngrok stores it encrypted, so it never has to live in your application or get shared around—and you can reuse it across as many access keys as you need.
Route to it with a configuration
Create an access key configuration with an Anthropic routing rule set to Bring your own API key, then assign it to your access key.
Explicit provider routing
Available models
Browse the model catalog for the full list of Claude models you can call through the gateway.Parameters the gateway removes
The gateway removes these fields before it sends a request to Anthropic, and lists them in theNgrok-AIG-Removed-Params response header:
speedon every Claude model. Fast mode isn’t available through the gateway, so a request with"speed": "fast"runs and bills at standard speed.temperature,top_p, andtop_kon the models that reject them: the Claude Fable models, Claude Opus 4.7 and later, Claude Sonnet 5 and later, and Claude Haiku 5.5.reasoning_efforton Chat Completions requests to every Claude model. To set the effort level, send an Anthropic Messages request to/v1/messageswithoutput_config, which the gateway forwards.
Fable 5.2
Claude Fable 5.2 (claude-fable-5-2) has a 1M-token context window, up to 128K output tokens, and always uses adaptive thinking.
It takes text, image, and file input.
Effort is the main control for this model, so call it with the Messages API.
The gateway removes reasoning_effort from Chat Completions requests.
Anthropic returns a 400 error for some Claude Fable 5.2 requests that Claude Fable 5.1 accepts, and the gateway passes the error through.
Anthropic rejects a request that:
- Forces tool use with
tool_choice. - Sets
thinkingtoenabledordisabled. - Uses the
computer_20251124tool instead ofcomputer_toolset_20260801. - Edits the system prompt, the tools, or an earlier message, and then sends back a Claude Fable 5.2 thinking block.