Field noteDec 2, 20263 min read1 source

ngrok AI Gateway translates OpenAI, Anthropic, Gemini and Bedrock APIs

In one minute

You can now point an existing SDK at a model that speaks a different API format and test it without rewriting the client: ngrok announced translation across five formats, for buffered and streamed requests. (ngrok.com)

What happened

Translation covers messages, prompts, images, function tools and calls, reasoning, usage, stop reasons and provider errors; errors are returned with the status code and type expected by the client SDK. (ngrok.com) Web search, code execution and remote MCP hosted tools translate where both formats support them. (ngrok.com)

Translation is enabled for every access key. Requests pass through unchanged when a model already serves the SDK's format, and fallback lists can mix providers while preserving the SDK's response format. (ngrok.com) If a request cannot be translated for one fallback model, the gateway skips it and tries the next. (ngrok.com)

To get started, you need an ngrok account with AI Gateway credits. (ngrok.com) The documented GPT-6.2 Sol example bills those credits and does not require an OpenAI account. (ngrok.com)

There is no additional translation fee; users pay the serving model's rates. (ngrok.com) On ngrok credits, GPT-6.2 Sol is listed at $2.00 per million input tokens and $10.00 per million output tokens. (ngrok.com)

What the archive adds

Unlike a gateway comparison focused on choosing among providers, this release translates between API formats so a client SDK can address models across providers.

Why it matters

A translated request may cost more than a native one if cache markers are dropped, so compare observed usage and cost rather than assuming equivalent billing.

Limits and uncertainty

Translation removes parameters unsupported by the target format; for Messages requests without max_tokens, it sends the model's maximum output-token limit. (ngrok.com) Only text and images translate: files, documents, audio and video cause models requiring translation to be skipped. (ngrok.com) References to provider-stored state such as previous_response_id, and requests subject to a Firewall policy, also skip models that require translation. (ngrok.com) If every model is skipped, the gateway returns ERR_NGROK_27228 with a reason for each. (ngrok.com)

ngrok recommends a model's native-format SDK for the best fidelity, and its translation guide lists supported parameters, hosted tools and skip rules. (ngrok.com)

Skill to build now

Create an access key that allows openai/gpt-6.2-sol, then set the Anthropic TypeScript SDK's baseURL to https://gateway.ngrok.ai and its model to openai/gpt-6.2-sol. (ngrok.com) Run it with node --env-file=.env.local --import tsx index.ts. (ngrok.com)

In Activity, check the request view for status, model, provider, usage, cost and the Translated badge; the Attempts tab shows the SDK and upstream formats and changed parameters. (ngrok.com) Check the Ngrok-AIG-Removed-Params response header too. (ngrok.com) For requests using provider-stored state, send the whole conversation instead of referencing that state.

Reader takeaway

Use translation to try another provider without changing your SDK, then inspect the Activity Attempts view and removed-parameter header before treating the result as equivalent. Translation has no added fee, but model token charges still apply; unsupported inputs or provider-stored state can also rule models out of a fallback list.

How this was made

First seen
Dec 2, 2026, 11:24 UTC in our intake.
Sources
1 source carried the story when we picked it up; we cite the original.
Written by
gpt-6-luna (AI model).
Critic
No separate critic model on this desk; the automated checks below gate publication.
Checks passed
The cited primary source was fetched and verified; the source is not older than 30 days; no earlier note covers the same story; the copy passed the site's structure and language checks.
Confidence
Editorial value: high.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1ngrok.com/changelog/ai-gateway-any-model-any-sdk
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicAnthropicExplore the anthropic topic hub.
  2. 02topicGeminiExplore the gemini topic hub.
  3. 03topicGoogleExplore the google topic hub.
  4. 04archiveField NotesOpen the latest editorial analysis.
  5. 05sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract