Pydantic Logfire AI Gateway

One key and native APIs for routing and budgeting across AI providers

Intermediate API
Screenshot of Pydantic Logfire AI Gateway, One key and native APIs for routing and budgeting across AI providers

What is Pydantic Logfire AI Gateway?

Pydantic Logfire AI Gateway is an analytics tool. Pydantic AI Gateway routes requests to OpenAI, Anthropic, Google, Groq, Bedrock and Azure through one API key, keeping native provider formats while adding spend limits and OpenTelemetry tracing via Logfire.

Pydantic AI Gateway is a model routing layer from the team behind Pydantic and Pydantic Logfire. It gives developers a single API key for models from OpenAI, Anthropic, Google Vertex, Groq, AWS Bedrock and Azure, with spend limits and request monitoring built in. Teams that already hold provider credentials can bring their own keys instead of using the built-in providers. The main design choice is that requests pass through in each provider's native format rather than being translated into a universal schema. When a provider ships a new feature, it can be used straight away, because the gateway does not need to add support first. A generic Chat and Responses option also covers any compatible provider that is not on the built-in list. In practice, a developer using the Pydantic AI framework changes a model string to the form gateway/api_format:model_name, and switching models means editing that string. Code written against an existing provider SDK can instead be pointed at the gateway, leaving the rest of the application unchanged. Cost control is the other core function. Limits can be set per project, per user or per API key, over daily, weekly, monthly or total periods. Every request can be logged through OpenTelemetry traces to Pydantic Logfire or any other OTel backend, producing a central audit trail of API usage. The dashboard runs in the cloud through Logfire, and enterprises can self-host on their own Cloudflare account or run on-premises with consulting support. SSO with OIDC and granular permissions are listed as available now. It suits engineering teams and platform groups that want governance over multi-provider LLM usage without adopting a heavy abstraction layer. Compared with gateways that normalize every provider into one schema, it trades uniformity for immediate access to provider-specific features. Teams already using Pydantic AI or Logfire will find the integration the most direct, while others rely on the SDK redirect approach.

How do you use Pydantic Logfire AI Gateway?

  1. 1Create an account
    Sign up through the Get started button on the gateway page. The service is described as free to get started.
    Pydantic Logfire AI Gateway — Create an account
  2. 2Read the gateway docs
    Open the documentation to review supported providers, API formats and setup options before wiring anything in.
    Pydantic Logfire AI Gateway — Read the gateway docs
  3. 3Choose keys or built-in providers
    Decide between bringing your own provider credentials, which carry no markup, or using built-in providers for single-key access.
    Pydantic Logfire AI Gateway — Choose keys or built-in providers
  4. 4Point your code at the gateway
    In Pydantic AI, set the model string to gateway/api_format:model_name. Existing provider SDKs can instead be pointed at the gateway.
  5. 5Set budgets and review traces
    Apply spend limits by project, user or API key, then inspect logged requests in Pydantic Logfire or another OTel backend.
    Pydantic Logfire AI Gateway — Set budgets and review traces

Pros and cons

Pros

  • Native request formats mean new provider features are usable as soon as they are releasedAI
  • Spend limits can be scoped by project, user or API key over daily to total periodsAI
  • Bring-your-own-key use carries no markup on any planAI
  • OpenTelemetry tracing feeds Logfire or any OTel backend for a central audit trailAI
  • Self-hosting on Cloudflare or on-premises, plus SSO with OIDC, suits enterprise needsAI

Cons

  • Built-in providers add a 5% markup on Personal and Team plans, and 3% on GrowthAI
  • Azure built-in access is limited to US only, and the generic Chat and Responses option has no built-in providerAI
  • Best fit is the Pydantic AI and Logfire ecosystem, so other stacks need extra SDK redirection workAI
  • On-premises deployment depends on paid consulting support rather than a self-serve installAI
  • No native schema unification means code must still handle differences between provider APIsAI

How much does Pydantic Logfire AI Gateway cost?

Free trial

The page states the gateway is free to get started, but does not describe a time-limited trial.

Learn more

Pricing

Free to get started. Bring-your-own-key use is free on every plan with no markup. Built-in providers add a 5% markup on Personal and Team plans and 3% on Growth. Full plan details are on the pricing page.

Learn more

Support

Documentation is available, and a call can be booked with the team. Enterprise support and consulting for on-premises deployment are offered, with sales reachable by email.

Learn more

Integrations

Supports Anthropic, AWS Bedrock, Google Vertex, Groq, OpenAI and Azure, plus any compatible provider via Chat and Responses. Works with Pydantic AI, existing provider SDKs, and Logfire or any OTel backend.

Learn more

Features

Single API key across providers, native-format pass-through, spend limits by project, user or API key, OpenTelemetry tracing, customizable routing defaults, BYOK, self-hosting on Cloudflare or on-premises, SSO with OIDC and granular permissions.

Learn more

Frequently asked questions about Pydantic Logfire AI Gateway

  • How much does Pydantic Logfire AI Gateway cost?
    Free to get started. Bring-your-own-key use is free on every plan with no markup. Built-in providers add a 5% markup on Personal and Team plans and 3% on Growth. Full plan details are on the pricing page.
  • Does Pydantic Logfire AI Gateway offer a free trial?
    The page states the gateway is free to get started, but does not describe a time-limited trial.
  • Does Pydantic Logfire AI Gateway have an API?
    Yes, Pydantic Logfire AI Gateway offers an API.
  • How do you use Pydantic Logfire AI Gateway?
    The walkthrough on this page covers 5 steps: 1. Create an account 2. Read the gateway docs 3. Choose keys or built-in providers 4. Point your code at the gateway 5. Set budgets and review traces.
  • What platforms does Pydantic Logfire AI Gateway support?
    Pydantic Logfire AI Gateway is available on Web App.
  • What does Pydantic Logfire AI Gateway integrate with?
    Supports Anthropic, AWS Bedrock, Google Vertex, Groq, OpenAI and Azure, plus any compatible provider via Chat and Responses. Works with Pydantic AI, existing provider SDKs, and Logfire or any OTel backend.

Status

StatusActive
Views0
Outbound clicks0
Added10/8/2026

Platforms

Web App

Pricing

FreemiumSubscription

Categories