> ## Documentation Index
> Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction to AI Gateway

> TrueFoundry AI Gateway: A unified interface for accessing 1000+ LLMs with enterprise-grade security, observability, and governance.

TrueFoundry AI Gateway is the proxy layer that sits between your applications and the LLM providers and MCP Servers. It is an enterprise-grade platform that enables users to access 1000+ LLMs using a unified interface while taking care of observability and governance.

![TrueFoundry AI Gateway architecture diagram showing the AI Gateway as a proxy between applications and multiple LLM providers](https://mintcdn.com/truefoundry/yOHcIuJN9I1uqUfe/images/new-ai-copy.png?fit=max\&auto=format\&n=yOHcIuJN9I1uqUfe\&q=85\&s=60d0d6629a9d197ac25041b8f708a80b)

## Key Features

> [card] [Unified API for 1000+ LLMs](https://www.truefoundry.com/docs/ai-gateway/chat-completions-overview.md)
>
> One endpoint with an OpenAI-compatible schema for every provider.

> [card] [Multimodal & Audio APIs](https://www.truefoundry.com/docs/ai-gateway/intro-to-llm-gateway.md#supported-apis)
>
> Chat, embeddings, images, audio, rerank, and realtime APIs.

> [card] [Native SDK Compatibility](https://www.truefoundry.com/docs/ai-gateway/native-sdk-support.md)
>
> Drop-in support for OpenAI, Anthropic, and other provider SDKs.

> [card] [Load Balancing & Fallbacks](https://www.truefoundry.com/docs/ai-gateway/virtual-model.md)
>
> Route across models by weight, latency, or priority with automatic retries.

> [card] [Semantic Caching](https://www.truefoundry.com/docs/ai-gateway/caching.md)
>
> Cut cost and latency on repeat requests.

> [card] [Batch APIs](https://www.truefoundry.com/docs/ai-gateway/batch-predictions-with-truefoundry-llm-gateway.md)
>
> Run large workloads asynchronously at batch pricing.

> [card] [Access Control & API Keys](https://www.truefoundry.com/docs/ai-gateway/gateway-access-control.md)
>
> RBAC and scoped keys for users, teams, and applications.

> [card] [Rate Limiting](https://www.truefoundry.com/docs/ai-gateway/ratelimiting-v2.md)
>
> Per-user, per-model, and per-application throttles.

> [card] [Budgets & Cost Tracking](https://www.truefoundry.com/docs/ai-gateway/budget-limiting-v2.md)
>
> Enforce spend limits and attribute cost across teams.

> [card] [Guardrails](https://www.truefoundry.com/docs/ai-gateway/guardrails-overview.md)
>
> PII, prompt injection, content moderation, and custom policies.

> [card] [Observability & Logs](https://www.truefoundry.com/docs/ai-gateway/analytics.md)
>
> OpenTelemetry-compliant metrics, traces, and request logs.

> [card] [Prompt Management](https://www.truefoundry.com/docs/ai-gateway/prompt-management.md)
>
> Versioned prompts with a built-in playground.

> [card] [MCP Registry](https://www.truefoundry.com/docs/ai-gateway/mcp/mcp-server-getting-started.md)
>
> Host, publish, and discover MCP servers in one place.

> [card] [Centralized MCP Auth](https://www.truefoundry.com/docs/ai-gateway/mcp/mcp-gateway-auth-security.md)
>
> One API key to reach every MCP server and tool.

> [card] [Virtual MCP Servers](https://www.truefoundry.com/docs/ai-gateway/mcp/virtual-mcp-server.md)
>
> Combine tools from multiple MCP servers into one.

> [card] [Agent Registry](https://www.truefoundry.com/docs/agent-platform/agent-governance/agent-registry.md)
>
> Build, publish, and share AI agents natively on TrueFoundry.

> [card] [Skills Registry](https://www.truefoundry.com/docs/ai-gateway/skills/skills-registry.md)
>
> Versioned, reusable `SKILL.md` instructions for agents and IDEs.

> [card] [Flexible Deployment](https://www.truefoundry.com/docs/ai-gateway/modes-of-deployment.md)
>
> SaaS, hybrid, or fully self-hosted in your own VPC.

## Supported Model Providers

We integrate with 1000+ LLMs through the following providers.

> [!TIP]
>
> If you don't see the provider you need, there is a high change it will just work as self-hosted models or OpenAI provider. Please reach out to us at [support@truefoundry.com](mailto:support@truefoundry.com), and we will be happy to guide you.

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/google-cloud.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=25807e29af12a440d623fd3cc9d3ae17)

Gemini & Vertex AI

[Open](https://www.truefoundry.com/docs/ai-gateway/google-vertex.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/gemini.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=33bee1af4d489121df362d63fcac9a50)

Google Gemini

[Open](https://www.truefoundry.com/docs/ai-gateway/google-gemini.md)

![](https://mintcdn.com/truefoundry/Gz1oIDir71gvjrms/images/icons/providers/aws-bedrock.png?fit=max\&auto=format\&n=Gz1oIDir71gvjrms\&q=85\&s=bdcff23e63d37dfeea8a5ae18d01fd74)

AWS Bedrock

[Open](https://www.truefoundry.com/docs/ai-gateway/aws-bedrock.md)

![](https://mintcdn.com/truefoundry/oiwHhqABnSveYTkb/images/icons/providers/aws-sagemaker.png?fit=max\&auto=format\&n=oiwHhqABnSveYTkb\&q=85\&s=f73ffd64f9df4ebce1435372094f13fa)

AWS SageMaker

[Open](https://www.truefoundry.com/docs/ai-gateway/aws-sagemaker.md)

![](https://mintcdn.com/truefoundry/oiwHhqABnSveYTkb/images/icons/providers/azure.png?fit=max\&auto=format\&n=oiwHhqABnSveYTkb\&q=85\&s=bb4b757efff43ff3f2a30f381d62225f)

Azure OpenAI

[Open](https://www.truefoundry.com/docs/ai-gateway/azure-openai.md)

![](https://mintcdn.com/truefoundry/oiwHhqABnSveYTkb/images/icons/providers/azure.png?fit=max\&auto=format\&n=oiwHhqABnSveYTkb\&q=85\&s=bb4b757efff43ff3f2a30f381d62225f)

Azure AI Foundry

[Open](https://www.truefoundry.com/docs/ai-gateway/azure-ai-foundry.md)

![](https://mintcdn.com/truefoundry/oiwHhqABnSveYTkb/images/icons/providers/azure.png?fit=max\&auto=format\&n=oiwHhqABnSveYTkb\&q=85\&s=bb4b757efff43ff3f2a30f381d62225f)

Microsoft Foundry

[Open](https://www.truefoundry.com/docs/ai-gateway/microsoft-foundry.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/openai.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=98da0e59209be520d64dfe3b9aae850f)

OpenAI

[Open](https://www.truefoundry.com/docs/ai-gateway/openai.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/cohere.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=4f0823a80febe1942469d0b5b1d07f65)

Cohere

[Open](https://www.truefoundry.com/docs/ai-gateway/cohere.md)

![](https://mintcdn.com/truefoundry/dyy-Z7qDj9dX7c8U/images/icons/providers/databricks.png?fit=max\&auto=format\&n=dyy-Z7qDj9dX7c8U\&q=85\&s=f62284d12af9af157d3551a4d8044753)

Databricks

[Open](https://www.truefoundry.com/docs/ai-gateway/databricks-models.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/ai21.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=00c6f6cf551fb469091e464a683c253f)

AI21

[Open](https://www.truefoundry.com/docs/ai-gateway/ai21.md)

![](https://mintcdn.com/truefoundry/XirRMhE8jQDLvD0q/images/icons/providers/anthropic.png?fit=max\&auto=format\&n=XirRMhE8jQDLvD0q\&q=85\&s=bd6d231c7f6feb74a90c99b4ffdf6315)

Anthropic

[Open](https://www.truefoundry.com/docs/ai-gateway/anthropic.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/together-ai.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=9a773a3f1d6a5e894942b3eee73494ff)

Together AI

[Open](https://www.truefoundry.com/docs/ai-gateway/together-ai.md)

![](https://mintcdn.com/truefoundry/tWzL9A-jI-Yv3tJ2/images/icons/providers/xai.png?fit=max\&auto=format\&n=tWzL9A-jI-Yv3tJ2\&q=85\&s=180c7079f831b443ed5cdba85c591aba)

xAI

[Open](https://www.truefoundry.com/docs/ai-gateway/xai.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/deepinfra.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=4bf8be7983aef1c007ec4cba5345df14)

DeepInfra

[Open](https://www.truefoundry.com/docs/ai-gateway/deepinfra.md)

![](https://mintcdn.com/truefoundry/XirRMhE8jQDLvD0q/images/icons/providers/perplexity.png?fit=max\&auto=format\&n=XirRMhE8jQDLvD0q\&q=85\&s=33e6d3163813f90f5e9bb5ec08e1a8e5)

Perplexity AI

[Open](https://www.truefoundry.com/docs/ai-gateway/perplexity-ai.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/mistral.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=c64f2ae6750e43b710909fc7d8c73234)

Mistral AI

[Open](https://www.truefoundry.com/docs/ai-gateway/mistral.md)

![](https://mintcdn.com/truefoundry/wmOHxWBrtmrVmyuM/images/icons/providers/cloudera.png?fit=max\&auto=format\&n=wmOHxWBrtmrVmyuM\&q=85\&s=bdc95f72c447c059543177bb665c6070)

Cloudera

[Open](https://www.truefoundry.com/docs/ai-gateway/cloudera.md)

![](https://mintcdn.com/truefoundry/tWzL9A-jI-Yv3tJ2/images/icons/providers/groq.png?fit=max\&auto=format\&n=tWzL9A-jI-Yv3tJ2\&q=85\&s=99e9eb2c88338e3efa33df7c1e089e9c)

Groq

[Open](https://www.truefoundry.com/docs/ai-gateway/groq.md)

![](https://mintcdn.com/truefoundry/R6uqxCrys2ymf1P8/images/icons/providers/elevenlabs.png?fit=max\&auto=format\&n=R6uqxCrys2ymf1P8\&q=85\&s=67253976bd11b527836621bd81bfee11)

ElevenLabs

[Open](https://www.truefoundry.com/docs/ai-gateway/elevenlabs.md)

![](https://mintcdn.com/truefoundry/wmOHxWBrtmrVmyuM/images/icons/providers/deepgram.png?fit=max\&auto=format\&n=wmOHxWBrtmrVmyuM\&q=85\&s=5aa07844ad19d88e8b2a23a285478d5c)

Deepgram

[Open](https://www.truefoundry.com/docs/ai-gateway/deepgram.md)

![](https://mintcdn.com/truefoundry/wmOHxWBrtmrVmyuM/images/icons/providers/cartesia.png?fit=max\&auto=format\&n=wmOHxWBrtmrVmyuM\&q=85\&s=cd12df29c2c0d61c59f34fdfe72910bc)

Cartesia

[Open](https://www.truefoundry.com/docs/ai-gateway/cartesia.md)

![](https://mintcdn.com/truefoundry/oIFnJyI-ZzSWsWNI/images/icons/providers/smallest-ai.png?fit=max\&auto=format\&n=oIFnJyI-ZzSWsWNI\&q=85\&s=54a2731d604843630164e40304f670fb)

Smallest AI

[Open](https://www.truefoundry.com/docs/ai-gateway/smallest-ai.md)

![](https://mintcdn.com/truefoundry/dyy-Z7qDj9dX7c8U/images/icons/providers/snowflake.png?fit=max\&auto=format\&n=dyy-Z7qDj9dX7c8U\&q=85\&s=21fc143c00f3cd83db41a64f930a2ac8)

Snowflake Cortex

[Open](https://www.truefoundry.com/docs/ai-gateway/snowflake-cortex.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/truefoundry.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=f5a5487c91af05d2263a4a221b22e84c)

Self Hosted

[Open](https://www.truefoundry.com/docs/ai-gateway/self-hosted-models.md)

![](https://mintcdn.com/truefoundry/XirRMhE8jQDLvD0q/images/icons/providers/openrouter.png?fit=max\&auto=format\&n=XirRMhE8jQDLvD0q\&q=85\&s=6c61f9907f09358ce4eeacb0e8653d39)

OpenRouter

[Open](https://www.truefoundry.com/docs/ai-gateway/openrouter.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/sambanova.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=27305e20a1e374cd3425bbf5d3294801)

SambaNova

[Open](https://www.truefoundry.com/docs/ai-gateway/sambanova.md)

![](https://mintcdn.com/truefoundry/Dqv6EuojzzZM8xZV/images/icons/providers/cerebras.png?fit=max\&auto=format\&n=Dqv6EuojzzZM8xZV\&q=85\&s=f440faf7f84ae9a89d79eb30c598895a)

Cerebras

[Open](https://www.truefoundry.com/docs/ai-gateway/cerebras.md)

## Supported APIs

The following accordions summarize provider support for each gateway endpoint. Each section links to the full guide for that API (same order as **Supported APIs** in the sidebar).

> [!NOTE]
>
> Legend:
>
> * **✅** Supported by provider and TrueFoundry
> * &#x20;Provided by provider, but not supported by TrueFoundry
> * &#x20;Provider does not support this feature

> [accordion] Chat Completion (/chat/completions)
>
> **Documentation:** [Chat Completions API](https://www.truefoundry.com/docs/ai-gateway/chat-completions-overview.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/chat/chat-completions.md)
>
> | Provider | Stream | Non Stream | Tools | JSON Mode | Schema Mode | Prompt Caching | Reasoning | Structured Output |
> | - | - | - | - | - | - | - | - | - |
> | OpenAI | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
> | Azure OpenAI | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
> | Anthropic | ✅ | ✅ | ✅ | | ✅ | ✅ | ✅ | |
> | Bedrock | ✅ | ✅ | ✅ | | ✅ | ✅ | ✅ | |
> | Vertex | ✅ | ✅ | ✅ | | ✅ | ✅ | ✅ | |
> | Cohere | ✅ | ✅ | ✅ | ✅ | ✅ | | ✅ | |
> | Gemini | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
> | Groq | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
> | AI21 | ✅ | ✅ | | ✅ | | | | |
> | Cerebras | ✅ | ✅ | | ✅ | | | ✅ | |
> | Wafer | ✅ | ✅ | ✅ | | | | | |
> | Fireworks AI | ✅ | ✅ | ✅ | ✅ | ✅ | | ✅ | |
> | SambaNova | ✅ | ✅ | | ✅ | | | ✅ | |
> | Perplexity-AI | ✅ | ✅ | ✅ | ✅ | | | ✅ | ✅ |
> | Together-AI | ✅ | ✅ | ✅ | ✅ | | ✅ | ✅ | ✅ |
> | xAI | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
> | DeepInfra | ✅ | ✅ | ✅ | ✅ | | ✅ | ✅ | |

> [accordion] Embedding (/embeddings)
>
> **Documentation:** [Embeddings API](https://www.truefoundry.com/docs/ai-gateway/embed.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/embeddings/generate-embeddings.md)
>
> | Provider | String | List of String |
> | - | - | - |
> | OpenAI | ✅ | ✅ |
> | Azure OpenAI | ✅ | ✅ |
> | Anthropic | | |
> | Bedrock | ✅ | ✅ |
> | Vertex | ✅ | ✅ |
> | Cohere | ✅ | ✅ |
> | Gemini | | |
> | Groq | | |
> | SambaNova | | |
> | Together-AI | ✅ | ✅ |
> | Fireworks AI | ✅ | ✅ |
> | xAI | | |
> | DeepInfra | | |

> [accordion] Batch (/batches)
>
> **Documentation:** [Batch API](https://www.truefoundry.com/docs/ai-gateway/batch-predictions-with-truefoundry-llm-gateway.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/batch/create-batch.md)
>
> | Provider | Batch |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | ✅ |
> | Microsoft Foundry | ✅ |
> | Anthropic | ✅ |
> | Bedrock | ✅ |
> | Vertex | ✅ |
> | Cohere | |
> | Gemini | |
> | Groq | |
> | Cerebras | |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |
>
> Anthropic batches use Anthropic's native `/v1/messages/batches` API; see [Anthropic Message Batches](https://www.truefoundry.com/docs/ai-gateway/batch-predictions-with-truefoundry-llm-gateway.md#anthropic-message-batches).

> [accordion] Fine Tune
>
> **Documentation:** [Finetune API](https://www.truefoundry.com/docs/ai-gateway/finetune.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/fine-tuning/create-fine-tuning-job.md)
>
> | Provider | Fine Tune |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | ✅ |
> | Microsoft Foundry | ✅ |
> | Anthropic | |
> | Bedrock | |
> | Vertex | ✅ |
> | Cohere | |
> | Gemini | |
> | Groq | |
> | Cerebras | |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |

> [accordion] Model Response (/responses)
>
> **Documentation:** [Responses API](https://www.truefoundry.com/docs/ai-gateway/responses-api.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/responses/model-responses.md)
>
> | Provider | Model Response |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | ✅ |
> | Microsoft Foundry | ✅ |
> | Anthropic | |
> | Bedrock | |
> | Vertex | |
> | Cohere | |
> | Gemini | |
> | Groq | |
> | Cerebras | |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |
> | OpenRouter | ✅ |
> | Databricks | ✅ |
> | Perplexity-AI | ✅ |
> | Baseten | ✅ |

> [accordion] Image Generation (/images/generations)
>
> **Documentation:** [Image Generation API](https://www.truefoundry.com/docs/ai-gateway/image-generation.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/image/generate-images.md)
>
> | Provider | Generate |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | ✅ |
> | Microsoft Foundry | ✅ |
> | Bedrock | ✅ |
> | Vertex | ✅ |
> | Anthropic | |
> | Cohere | |
> | Gemini | |
> | Groq | |
> | Together-AI | |
> | xAI | ✅ |
> | DeepInfra | |

> [accordion] Image Edit (/images/edits)
>
> **Documentation:** [Image Edit API](https://www.truefoundry.com/docs/ai-gateway/image-edit.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/image/edit-images.md)
>
> | Provider | Edit |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | ✅ |
> | Microsoft Foundry | ✅ |
> | Bedrock | ✅ |
> | Vertex | ✅ |
> | Anthropic | |
> | Cohere | |
> | Gemini | |
> | Groq | |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |

> [accordion] Image Variation (/images/variations)
>
> **Documentation:** [Image Variation API](https://www.truefoundry.com/docs/ai-gateway/image-variation.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/image/create-image-variation.md)
>
> | Provider | Variation |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | |
> | Bedrock | ✅ |
> | Vertex | |
> | Anthropic | |
> | Cohere | |
> | Gemini | |
> | Groq | |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |

> [accordion] Video Generation (/videos-proxy)
>
> **Documentation:** [Video Generation API](https://www.truefoundry.com/docs/ai-gateway/video-generation.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/video/generate-video.md)
>
> Video generation is supported for Google Vertex AI, Google Gemini, and self-hosted ComfyUI models through provider-native video requests.

> [accordion] Text To Speech
>
> **Documentation:** [Text to Speech API](https://www.truefoundry.com/docs/ai-gateway/text-to-speech.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/audio/generate-speech.md)
>
> | Provider | Text To Speech |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | ✅ |
> | Azure AI Foundry | ✅ |
> | Microsoft Foundry | ✅ |
> | Anthropic | |
> | Bedrock | |
> | Vertex | ✅ |
> | Cohere | |
> | Gemini | ✅ |
> | Groq | ✅ |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |
> | DeepGram | ✅ |
> | Cartesia | ✅ |
> | ElevenLabs | ✅ |
> | Resemble AI | ✅ |
> | Smallest AI | ✅ |

> [accordion] Audio Translation
>
> **Documentation:** [Audio Translation API](https://www.truefoundry.com/docs/ai-gateway/audio-translation.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/audio/translate-audio.md)
>
> | Provider | Translation |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | ✅ |
> | Azure AI Foundry | ✅ |
> | Microsoft Foundry | ✅ |
> | Anthropic | |
> | Bedrock | |
> | Vertex | |
> | Cohere | |
> | Gemini | |
> | Groq | ✅ |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |

> [accordion] Speech to Text
>
> **Documentation:** [Speech to Text API](https://www.truefoundry.com/docs/ai-gateway/audio-transcription.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/audio/transcribe-audio.md)
>
> | Provider | Transcription |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | ✅ |
> | Azure AI Foundry | ✅ |
> | Microsoft Foundry | ✅ |
> | Anthropic | |
> | Bedrock | |
> | Vertex | |
> | Cohere | |
> | Gemini | |
> | Groq | ✅ |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |
> | DeepGram | ✅ |
> | Cartesia | ✅ |
> | ElevenLabs | ✅ |
> | Smallest AI | ✅ |

> [accordion] Live / Realtime API
>
> **Documentation:** [Live / Realtime API](https://www.truefoundry.com/docs/ai-gateway/live-api.md)
>
> | Provider | Live / Realtime API |
> | - | - |
> | Gemini | ✅ |
> | Vertex | ✅ |
> | OpenAI | ✅ |
> | Azure AI Foundry | ✅ |
> | Microsoft Foundry | ✅ |
> | AWS Bedrock (Nova Sonic) | ✅ ([HTTP/2 EventStream](https://www.truefoundry.com/docs/ai-gateway/live-api-nova-sonic.md) at `/live/{account}/bedrock`, not WebSocket) |

> [accordion] Files (/files)
>
> **Documentation:** [Files API](https://www.truefoundry.com/docs/ai-gateway/file-endpoints.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/files/upload-file.md)
>
> | Provider | Files |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | ✅ |
> | Microsoft Foundry | ✅ |
> | Anthropic | ✅ |
> | Bedrock | ✅ |
> | Vertex | ✅ |
> | Cohere | |
> | Gemini | |
> | Groq | ✅ |
> | Cerebras | |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |

> [accordion] Rerank (/rerank)
>
> **Documentation:** [Rerank API](https://www.truefoundry.com/docs/ai-gateway/rerank.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/rerank/rerank-documents.md)
>
> | Provider | Rerank |
> | - | - |
> | OpenAI | |
> | Azure OpenAI | ✅ |
> | Azure AI Foundry | ✅ |
> | Microsoft Foundry | ✅ |
> | Anthropic | |
> | Bedrock | ✅ |
> | Vertex | |
> | Cohere | ✅ |
> | Gemini | |
> | Groq | |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |

> [accordion] Moderation (/moderations)
>
> **Documentation:** [Moderation API](https://www.truefoundry.com/docs/ai-gateway/moderation.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/moderations/create-moderation.md)
>
> | Provider | Moderation |
> | - | - |
> | OpenAI | ✅ |
> | Azure OpenAI | |
> | Anthropic | |
> | Bedrock | |
> | Vertex | |
> | Cohere | |
> | Gemini | |
> | Groq | |
> | Cerebras | |
> | Together-AI | |
> | xAI | |
> | DeepInfra | |

> [accordion] Compaction API
>
> **Documentation:** [Compaction API](https://www.truefoundry.com/docs/ai-gateway/compaction.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/responses/model-responses-compact.md)
>
> | Provider | Compaction API |
> | - | - |
> | OpenAI | ✅ |

> [accordion] Messages API
>
> **Documentation:** [Messages API](https://www.truefoundry.com/docs/ai-gateway/messages-overview.md) · [API Reference](https://www.truefoundry.com/docs/api-reference/messages/messages.md)
>
> | Provider | Messages API |
> | - | - |
> | Anthropic | ✅ |
> | Databricks | ✅ (Claude Unity Catalog model services) |

> [accordion] Decisions API (/v1/decisions, /v1/systemone)
>
> **Documentation:** [Decisions API](https://www.truefoundry.com/docs/ai-gateway/decisions.md)
>
> | Provider | Example model | Gateway route it speaks natively | Images |
> | - | - | - | - |
> | [OpenAI](https://www.truefoundry.com/docs/ai-gateway/openai.md#decision-openai-decisions) | `gpt-6-luna` | `/v1/decisions` | Yes |
> | [TypeSafe](https://www.truefoundry.com/docs/ai-gateway/typesafe.md) (Jev, Cloudflare Clef) | `jev-1.13.0`, `typesafe/jev`, `@cf/cloudflare/clef` | `/v1/systemone` | Clef only |
> | [OpenRouter](https://www.truefoundry.com/docs/ai-gateway/openrouter.md#decision-system-one) | `typesafe/jev-1.13` | `/v1/systemone` | No |
> | [Perplexity](https://www.truefoundry.com/docs/ai-gateway/perplexity-ai.md#decision-system-one) | `pplx-decider-v1-27b` | `/v1/systemone` | No |
> | [Databricks](https://www.truefoundry.com/docs/ai-gateway/databricks-models.md#decision-system-one) | `databricks-openjev-qwen35-4b`, `system.ai.openjev-qwen35-4b` | `/v1/systemone` | No |
> | [Microsoft Foundry](https://www.truefoundry.com/docs/ai-gateway/microsoft-foundry.md#decision) | `gpt-6-luna`, `Microsoft-Decision-1` | `/v1/decisions` for `gpt-6-luna`, `/v1/systemone` for `Microsoft-Decision-1` | `gpt-6-luna` only |
> | [Self-hosted vLLM](https://www.truefoundry.com/docs/ai-gateway/self-hosted-models.md#decision-system-one) | a Qwen3 / Qwen3.5 checkpoint | `/v1/systemone` | No |

> [accordion] Proxy API (/proxy)
>
> **Documentation:** [Proxy API](https://www.truefoundry.com/docs/ai-gateway/proxy-api.md)
>
> Forward provider-native requests through the AI Gateway while keeping logging, rate limiting, and budget controls. See the guide for setup, headers, and examples by provider.

## Deployment Options

You can run the AI Gateway as fully managed SaaS, keep LLM request–response data in your own object storage while TrueFoundry operates the AI Gateway, or host the AI Gateway plane (and optionally more of the stack) in your cloud or on-prem for stricter data residency and control. Each option differs in who hosts infrastructure, where traffic flows, and pricing tier.

Read the full comparison—including a scenario table, diagrams, and operational notes—in [AI Gateway deployment options](https://www.truefoundry.com/docs/ai-gateway/modes-of-deployment.md). For background on how the AI Gateway fits the platform, see [gateway plane architecture](https://www.truefoundry.com/docs/platform/gateway-plane-architecture.md). To start on managed SaaS, follow the [quick start](https://www.truefoundry.com/docs/ai-gateway/quick-start.md).

## Frequently Asked Questions

> [accordion] What's the performance impact of using the AI Gateway?
>
> The latency overhead is minimal, typically less than 5ms. Our benchmarks show enterprise-grade performance that scales with your needs. Our SaaS offering is hosted in multiple regions across the world to ensure low latency, and high availability. You can also deploy the AI Gateway on-premise, or on any cloud provider in your region which is closer to your users.
>
> ![](https://mintcdn.com/truefoundry/FrY4JbiyZud2He3p/images/081e6057-686a04943a81ee773a3a94dcddff05647776f82f7a2f32d4155d4df0f61f0032-image.png?fit=max\&auto=format\&n=FrY4JbiyZud2He3p\&q=85\&s=c96dc61ac031c4c4dae8edf115f6f0f4)
>
> AI Gateway on the edge, close to your applications for optimal performance.

> [accordion] Can I deploy the AI Gateway on-premise?
>
> Yes, the AI Gateway supports on-premise deployments on any infrastructure or cloud provider, giving you complete control over your AI operations.

> [accordion] How do I integrate my self-hosted models?
>
> You can easily integrate any OpenAI-compatible self-hosted model. Check our [self-hosted models guide](https://www.truefoundry.com/docs/ai-gateway/self-hosted-models.md) for detailed instructions.

> [accordion] Can I use the AI Gateway without the full MLOps platform?
>
> Yes, the AI Gateway can be used as a standalone solution. You can use the full MLOps platform if you're using features like model deployment (traditional models and LLMs), model training, LLM fine-tuning, or training and data processing workflows.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.