---
type: "post"
id: "ngrok-ai-gateway-translates-openai-anthropic-gemini-and-db9f78"
slug: "ngrok-ai-gateway-translates-openai-anthropic-gemini-and-db9f78"
title: "ngrok AI Gateway translates OpenAI, Anthropic, Gemini and Bedrock APIs"
description: "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."
retrieval_nugget: "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."
published_at: "2026-12-02"
updated_at: "2026-12-02"
record_date: "2026-12-02"
date_kind: "published_at"
topics: ["anthropic","gemini","google"]
entities: ["ngrok","ngrok AI Gateway","OpenAI","Anthropic","Google","Amazon Bedrock"]
related_patterns: ["agent-protocols-become-interoperability-layer"]
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://ngrok.com/changelog/ai-gateway-any-model-any-sdk"
source_urls: ["https://ngrok.com/changelog/ai-gateway-any-model-any-sdk"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-12-02T11:24:40.310Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":null,"editorial_value":"high","human_review":"selective"}
citations: [{"claim":"","quotes":["Canonical topic: ngrok AI Gateway adds API translation across model providers. 1 accepted source item(s)."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Canonical%20topic%3A%20ngrok%20AI%20Gateway%20adds%20API%20translation%20across%20model%20providers.%201%20accepted%20source%20item%28s%29.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"Web search, code execution and remote MCP hosted tools translate where both formats support them.","quotes":["Errors come back with the status code and error type your SDK expects, so its retries behave the way they do for a native request."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Errors%20come%20back%20with%20the%20status%20code%20and%20error%20type%20your%20SDK%20expects%2C%20so%20its%20retries%20behave%20the%20way%20they%20do%20for%20a%20native%20request.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"","quotes":["Some hosted tools translate too: web search, code execution, and remote MCP servers, between the formats that have them."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Some%20hosted%20tools%20translate%20too%3A%20web%20search%2C%20code%20execution%2C%20and%20remote%20MCP%20servers%2C%20between%20the%20formats%20that%20have%20them.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"If a request cannot be translated for one fallback model, the gateway skips it and tries the next.","quotes":["What it costs Translation is on for every access key.","When a model serves your SDK’s format, the gateway passes your request through unchanged.","Fallbacks can cross providers now Fallback models get the same treatment. One list can mix Claude, GPT, and Gemini models, and whichever one answers, your SDK gets a response in its own format."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=What%20it%20costs%20Translation%20is%20on%20for%20every%20access%20key.&text=When%20a%20model%20serves%20your%20SDK%E2%80%99s%20format%2C%20the%20gateway%20passes%20your%20request%20through%20unchanged.&text=Fallbacks%20can%20cross%20providers%20now%20Fallback%20models%20get%20the%20same%20treatment.%20One%20list%20can%20mix%20Claude%2C%20GPT%2C%20and%20Gemini%20models%2C%20and%20whichever%20one%20answers%2C%20your%20SDK%20gets%20a%20response%20in%20its%20own%20format.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"","quotes":["If it can’t translate the request for one model, it skips that model and tries the next."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=If%20it%20can%E2%80%99t%20translate%20the%20request%20for%20one%20model%2C%20it%20skips%20that%20model%20and%20tries%20the%20next.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"The documented GPT-6.2 Sol example bills those credits and does not require an OpenAI account.","quotes":["Get started You need an ngrok account with AI Gateway credits."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Get%20started%20You%20need%20an%20ngrok%20account%20with%20AI%20Gateway%20credits.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"","quotes":["GPT-6.2 Sol bills to your ngrok credits, so you don’t need an OpenAI account."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=GPT%2D6.2%20Sol%20bills%20to%20your%20ngrok%20credits%2C%20so%20you%20don%E2%80%99t%20need%20an%20OpenAI%20account.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"On ngrok credits, GPT-6.2 Sol is listed at $2.00 per million input tokens and $10.00 per million output tokens.","quotes":["You pay the rates of the model that served the request, and translation adds no fee."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=You%20pay%20the%20rates%20of%20the%20model%20that%20served%20the%20request%2C%20and%20translation%20adds%20no%20fee.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"","quotes":["GPT-6.2 Sol costs $2.00 per million input tokens and $10.00 per million output tokens on your ngrok credits."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=GPT%2D6.2%20Sol%20costs%20%242.00%20per%20million%20input%20tokens%20and%20%2410.00%20per%20million%20output%20tokens%20on%20your%20ngrok%20credits.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"Only text and images translate: files, documents, audio and video cause models requiring translation to be skipped.","quotes":["A parameter the target format has no place for, such as frequency_penalty or cache_control , gets removed.","If you don’t set one, the gateway sends the model’s maximum output tokens, so set your own limit if lengths matter."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=A%20parameter%20the%20target%20format%20has%20no%20place%20for%2C%20such%20as%20frequency_penalty%20or%20cache_control%20%2C%20gets%20removed.&text=If%20you%20don%E2%80%99t%20set%20one%2C%20the%20gateway%20sends%20the%20model%E2%80%99s%20maximum%20output%20tokens%2C%20so%20set%20your%20own%20limit%20if%20lengths%20matter.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"References to provider-stored state such as previousresponseid, and requests subject to a Firewall policy, also skip models that require translation.","quotes":["Only text and images translate. A request with files, documents, audio, or video skips models that need translation."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Only%20text%20and%20images%20translate.%20A%20request%20with%20files%2C%20documents%2C%20audio%2C%20or%20video%20skips%20models%20that%20need%20translation.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"If every model is skipped, the gateway returns ERRNGROK27228 with a reason for each.","quotes":["Requests that point at state a provider stores, such as previous_response_id in the Responses API, skip models that need translation.","If a Firewall policy applies to the request, the gateway skips models that need translation."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Requests%20that%20point%20at%20state%20a%20provider%20stores%2C%20such%20as%20previous_response_id%20in%20the%20Responses%20API%2C%20skip%20models%20that%20need%20translation.&text=If%20a%20Firewall%20policy%20applies%20to%20the%20request%2C%20the%20gateway%20skips%20models%20that%20need%20translation.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"","quotes":["If the gateway skips every model in a request, it returns ERR_NGROK_27228 with the reason for each one."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=If%20the%20gateway%20skips%20every%20model%20in%20a%20request%2C%20it%20returns%20ERR_NGROK_27228%20with%20the%20reason%20for%20each%20one.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"","quotes":["The translation guide lists every translated parameter, hosted tool, and skip rule."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=The%20translation%20guide%20lists%20every%20translated%20parameter%2C%20hosted%20tool%2C%20and%20skip%20rule.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"Run it with node --env-file=.env.local --import tsx index.ts.","quotes":["Create an access key that allows openai/gpt-6.2-sol ."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Create%20an%20access%20key%20that%20allows%20openai%2Fgpt%2D6.2%2Dsol%20.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"","quotes":["stop_reason ); Run it Run the example from your project directory: node --env-file=.env.local --import tsx index.ts The first line names the OpenAI model that answered."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=stop_reason%20%29%3B%20Run%20it%20Run%20the%20example%20from%20your%20project%20directory%3A%20node%20%2D%2Denv%2Dfile%3D.env.local%20%2D%2Dimport%20tsx%20index.ts%20The%20first%20line%20names%20the%20OpenAI%20model%20that%20answered.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"Check the Ngrok-AIG-Removed-Params response header too.","quotes":["Check the request in Activity Open Activity and select the request. It shows the status, model, provider, token usage, and cost, plus a Translated badge.","On the Attempts tab, the attempt’s Translation row shows the format your SDK sent and the format the gateway used upstream. Changed parameters lists anything the gateway removed or adjusted on the way."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Check%20the%20request%20in%20Activity%20Open%20Activity%20and%20select%20the%20request.%20It%20shows%20the%20status%2C%20model%2C%20provider%2C%20token%20usage%2C%20and%20cost%2C%20plus%20a%20Translated%20badge.&text=On%20the%20Attempts%20tab%2C%20the%20attempt%E2%80%99s%20Translation%20row%20shows%20the%20format%20your%20SDK%20sent%20and%20the%20format%20the%20gateway%20used%20upstream.%20Changed%20parameters%20lists%20anything%20the%20gateway%20removed%20or%20adjusted%20on%20the%20way.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"},{"claim":"For requests using provider-stored state, send the whole conversation instead of referencing that state.","quotes":["The gateway lists each removed or changed parameter in the Ngrok-AIG-Removed-Params response header."],"cite_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=The%20gateway%20lists%20each%20removed%20or%20changed%20parameter%20in%20the%20Ngrok%2DAIG%2DRemoved%2DParams%20response%20header.","source_url":"https://ngrok.com/changelog/ai-gateway-any-model-any-sdk","publisher":"ngrok.com"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:ngrok-ai-gateway-translates-openai-anthropic-gemini-and-db9f78"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/ngrok-ai-gateway-translates-openai-anthropic-gemini-and-db9f78/","markdown":"https://newruntime.com/posts/ngrok-ai-gateway-translates-openai-anthropic-gemini-and-db9f78.md","json":"https://newruntime.com/posts/ngrok-ai-gateway-translates-openai-anthropic-gemini-and-db9f78.json"}
markdown_url: "https://newruntime.com/posts/ngrok-ai-gateway-translates-openai-anthropic-gemini-and-db9f78.md"
---

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

## Retrieval answer

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.

## Summary

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](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Canonical%20topic%3A%20ngrok%20AI%20Gateway%20adds%20API%20translation%20across%20model%20providers.%201%20accepted%20source%20item%28s%29.))

## 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](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Errors%20come%20back%20with%20the%20status%20code%20and%20error%20type%20your%20SDK%20expects%2C%20so%20its%20retries%20behave%20the%20way%20they%20do%20for%20a%20native%20request.)) Web search, code execution and remote MCP hosted tools translate where both formats support them. ([ngrok.com](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Some%20hosted%20tools%20translate%20too%3A%20web%20search%2C%20code%20execution%2C%20and%20remote%20MCP%20servers%2C%20between%20the%20formats%20that%20have%20them.))

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](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=What%20it%20costs%20Translation%20is%20on%20for%20every%20access%20key.&text=When%20a%20model%20serves%20your%20SDK%E2%80%99s%20format%2C%20the%20gateway%20passes%20your%20request%20through%20unchanged.&text=Fallbacks%20can%20cross%20providers%20now%20Fallback%20models%20get%20the%20same%20treatment.%20One%20list%20can%20mix%20Claude%2C%20GPT%2C%20and%20Gemini%20models%2C%20and%20whichever%20one%20answers%2C%20your%20SDK%20gets%20a%20response%20in%20its%20own%20format.)) If a request cannot be translated for one fallback model, the gateway skips it and tries the next. ([ngrok.com](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=If%20it%20can%E2%80%99t%20translate%20the%20request%20for%20one%20model%2C%20it%20skips%20that%20model%20and%20tries%20the%20next.))

To get started, you need an ngrok account with AI Gateway credits. ([ngrok.com](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Get%20started%20You%20need%20an%20ngrok%20account%20with%20AI%20Gateway%20credits.)) The documented GPT-6.2 Sol example bills those credits and does not require an OpenAI account. ([ngrok.com](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=GPT%2D6.2%20Sol%20bills%20to%20your%20ngrok%20credits%2C%20so%20you%20don%E2%80%99t%20need%20an%20OpenAI%20account.))

There is no additional translation fee; users pay the serving model's rates. ([ngrok.com](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=You%20pay%20the%20rates%20of%20the%20model%20that%20served%20the%20request%2C%20and%20translation%20adds%20no%20fee.)) 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](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=GPT%2D6.2%20Sol%20costs%20%242.00%20per%20million%20input%20tokens%20and%20%2410.00%20per%20million%20output%20tokens%20on%20your%20ngrok%20credits.))

## 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](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=A%20parameter%20the%20target%20format%20has%20no%20place%20for%2C%20such%20as%20frequency_penalty%20or%20cache_control%20%2C%20gets%20removed.&text=If%20you%20don%E2%80%99t%20set%20one%2C%20the%20gateway%20sends%20the%20model%E2%80%99s%20maximum%20output%20tokens%2C%20so%20set%20your%20own%20limit%20if%20lengths%20matter.)) Only text and images translate: files, documents, audio and video cause models requiring translation to be skipped. ([ngrok.com](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Only%20text%20and%20images%20translate.%20A%20request%20with%20files%2C%20documents%2C%20audio%2C%20or%20video%20skips%20models%20that%20need%20translation.)) 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](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Requests%20that%20point%20at%20state%20a%20provider%20stores%2C%20such%20as%20previous_response_id%20in%20the%20Responses%20API%2C%20skip%20models%20that%20need%20translation.&text=If%20a%20Firewall%20policy%20applies%20to%20the%20request%2C%20the%20gateway%20skips%20models%20that%20need%20translation.)) If every model is skipped, the gateway returns `ERR_NGROK_27228` with a reason for each. ([ngrok.com](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=If%20the%20gateway%20skips%20every%20model%20in%20a%20request%2C%20it%20returns%20ERR_NGROK_27228%20with%20the%20reason%20for%20each%20one.))

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](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=The%20translation%20guide%20lists%20every%20translated%20parameter%2C%20hosted%20tool%2C%20and%20skip%20rule.))

## 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](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Create%20an%20access%20key%20that%20allows%20openai%2Fgpt%2D6.2%2Dsol%20.)) Run it with `node --env-file=.env.local --import tsx index.ts`. ([ngrok.com](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=stop_reason%20%29%3B%20Run%20it%20Run%20the%20example%20from%20your%20project%20directory%3A%20node%20%2D%2Denv%2Dfile%3D.env.local%20%2D%2Dimport%20tsx%20index.ts%20The%20first%20line%20names%20the%20OpenAI%20model%20that%20answered.))

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](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=Check%20the%20request%20in%20Activity%20Open%20Activity%20and%20select%20the%20request.%20It%20shows%20the%20status%2C%20model%2C%20provider%2C%20token%20usage%2C%20and%20cost%2C%20plus%20a%20Translated%20badge.&text=On%20the%20Attempts%20tab%2C%20the%20attempt%E2%80%99s%20Translation%20row%20shows%20the%20format%20your%20SDK%20sent%20and%20the%20format%20the%20gateway%20used%20upstream.%20Changed%20parameters%20lists%20anything%20the%20gateway%20removed%20or%20adjusted%20on%20the%20way.)) Check the `Ngrok-AIG-Removed-Params` response header too. ([ngrok.com](https://ngrok.com/changelog/ai-gateway-any-model-any-sdk#:~:text=The%20gateway%20lists%20each%20removed%20or%20changed%20parameter%20in%20the%20Ngrok%2DAIG%2DRemoved%2DParams%20response%20header.)) 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.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Anthropic](https://newruntime.com/topics/anthropic.md): Explore the anthropic topic hub.
- topic hub: [Gemini](https://newruntime.com/topics/gemini.md): Explore the gemini topic hub.
- topic hub: [Google](https://newruntime.com/topics/google.md): Explore the google topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
