---
title: 'Enterprise AI Gateway: Unified Access to Major AI Models'
description: 'The Pydantic AI Gateway provides enterprise-grade secure & scalable single API key interface to manage models from OpenAI, Google, Anthropic, Groq, AWS, & others'
canonical: https://pydantic.dev/ai-gateway
last-reviewed: '2026-07-13'
---

> Markdown version of [Pydantic AI Gateway](https://pydantic.dev/ai-gateway) — the canonical HTML page.
>
> Site index: [/llms.txt](https://pydantic.dev/llms.txt)

---

# Pydantic AI Gateway

Enterprise-ready AI model routing (that developers love). One key for all your models with real-time monitoring and budget control that works. Free to get started.

Get started: https://logfire.pydantic.dev · Docs: https://pydantic.dev/docs/ai/overview/gateway/ · [Book a call](https://portal.usepylon.com/pydantic/forms/demorequest)

## Start with one line of code

```python
from pydantic_ai import Agent

agent = Agent(
    'gateway/openai:gpt-5',
    instructions='Be concise, reply with one sentence.'
)

result = agent.run_sync('Hello World')
print(result.output)
```

You can access multiple models with the same API key. To use different models, change the model string `gateway/<api_format>:<model_name>` to other models offered by the supported providers.

## Available providers

| Provider         | Available? | Built-in?     | BYOK? | Model families provided |
| ---------------- | ---------- | ------------- | ----- | ----------------------- |
| Anthropic        | Yes        | Yes           | Yes   | Claude                  |
| AWS Bedrock      | Yes        | Yes           | Yes   | Nova, Claude, etc.      |
| Google Vertex    | Yes        | Yes           | Yes   | Gemini, Claude          |
| Groq             | Yes        | Yes           | Yes   | Open source models      |
| OpenAI           | Yes        | Yes           | Yes   | GPT                     |
| Chat & Responses | Yes        | No            | Yes   | Any compatible provider |
| Azure            | Yes        | Yes (US only) | Yes   | GPT                     |

BYOK = Bring Your Own Key.

## What is the Pydantic AI Gateway?

Pydantic AI Gateway gives you cost control and intelligent routing without the abstraction overhead. Unlike traditional AI gateways that wrap providers in a universal schema, PAIG passes requests through in their native format. When providers like OpenAI, Anthropic, or Google ship new features, you can use them immediately.

Use the cloud dashboard through [Pydantic Logfire](https://pydantic.dev/logfire), or self-host for enterprise. Start with BYOK or use our built-in providers for single-key access to all models. PAIG comes with smart routing defaults you can fully customize. Use with [Pydantic AI](https://pydantic.dev/pydantic-ai) for one-line integration, or point any existing provider SDK at the gateway — your code stays the same.

## Why use Pydantic AI Gateway?

- **One key, multiple models** — connect to models on OpenAI, Anthropic, Google, Groq, and AWS Bedrock with one API key. Access multiple providers instantly without swapping credentials.
- **Flexible spend control** — set limits on your terms. Choose your level of control (project, user, or API key) and your timeframe (daily, weekly, monthly, or total).
- **No schema translation** — requests flow in each provider's native format. New model features are accessible as soon as providers release them.
- **OpenTelemetry traces for full visibility** — log every request through [Pydantic Logfire](https://pydantic.dev/logfire) or any OTel backend. A centralized audit trail where no API usage can hide.
- **Self-hosting available immediately** — deploy to your Cloudflare account, or run on-premises with consulting support (sales@pydantic.dev). Control the data and the infrastructure.
- **Enterprise without the wait** — SSO with OIDC, granular permissions, and flexible deployment, ready now (not a roadmap promise).

## Gateway pricing

- Bring your own provider credentials (BYOK): free on every plan, no markup.
- Built-in providers: 5% markup on Personal and Team, 3% on Growth.

Full pricing: https://pydantic.dev/pricing (markdown: https://pydantic.dev/pricing.md)

## Get started

- Sign up (via Logfire dashboard): https://logfire.pydantic.dev
- Documentation: https://pydantic.dev/docs/ai/overview/gateway/
- Book a call: https://portal.usepylon.com/pydantic/forms/demorequest

## Related

- [Pydantic AI](https://pydantic.dev/pydantic-ai) — type-safe Python agent framework with one-line Gateway integration ([markdown](https://pydantic.dev/pydantic-ai.md))
- [Pydantic Logfire](https://pydantic.dev/logfire) — observability, cost tracking, and the Gateway dashboard ([markdown](https://pydantic.dev/logfire.md))
- [AI Gateway section index](https://pydantic.dev/ai-gateway/llms.txt)
