Pydantic AI Gateway
Introducing enterprise-ready AI model routing (that developers love)
One key for all your models with real-time monitoring and budget control that works.
No credit card required
Intelligent AI Workflows without the middleware bloat
Start with a few lines of code
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? Bring Your Own Key | Model families provided |
|---|---|---|---|---|
| Yes | Yes | Yes | Claude | |
| Yes | Yes | Yes | Nova, Claude, etc... | |
| Yes | Yes | Yes | Gemini, Claude | |
| Yes | Yes | Yes | Open Source models | |
| Yes | Yes | Yes | GPT | |
| Yes | No | Yes | Any compatible provider | |
| Soon... | No | Yes | GPT |
Provider
Model families
Cost control for AI Models, Native APIs underneath
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.
The core is open source (AGPL-3.0) with a cloud dashboard (SaaS), 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 for one-line integration or point any existing provider SDK at the gateway, your code stays the same.
Unified access to LLM providers
One key for every model
One API key to access multiple providers - OpenAI, Anthropic, Google, etc
Enterprise Ready
SSO, granular permissions, and self-hosting options
Cost Control
Set spending limits per user, project, or API key
Pydantic Integration
Built-in Pydantic AI support with Logfire observability
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. Pick 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 they are released by providers.
Send OpenTelemetry traces for full visibility
Log every request through Pydantic Logfire or any OTel backend. Create a centralized audit trail where no API usage can hide.
Self-hosting available immediately
Deploy to your Cloudflare account, or run on-premises with our consulting support. control the data and the infrastructure.
Enterprise without the wait
SSO with OIDC, granular permissions, and flexible deployment—ready now (not a roadmap promise).
No credit card required
Free while in Beta
Zero margin on built-in provider inference (we’ll eat the card fee for now)
Free for BYO key
Full pricing coming soon