Skip to content

Pydantic AI Gateway is Moving to Pydantic Logfire

We're consolidating the AI Gateway into Logfire. This means gateway.pydantic.dev is being deprecated, and the gateway is now managed through your Logfire account.

Why We Made This Change

Moving the gateway into Logfire unlocks a number of improvements:

  • Observability and gateway, side by side. Because the gateway now lives in Logfire, you can instrument your LLM calls and trace them directly, with no context switching between separate products.
  • Tighter integration with features that use the gateway. The LLM Playground and other Logfire features that rely on the gateway are now in the same place, making them easier to discover and use together.
  • Enterprise-grade controls, included. The gateway now inherits Logfire's enterprise features — including SSO, custom roles and permissions, and security group mapping — so teams with existing enterprise setups get those controls automatically.
  • One account, one billing relationship. Rather than managing a separate balance on a separate platform, gateway usage is consolidated into your Logfire account alongside any other plan charges.

Frequently Asked Questions

What happens to my current balance?

Shortly we will roll out the ability to request a refund of your remaining balance, issued to the original payment method you used.

Do I need to create a new account?

Yes, you'll need to sign up at logfire.pydantic.dev if you don't already have an account.

Do I need to pay for Logfire to access the gateway?

No. Every new Logfire account starts on the Personal plan, which is free. You don't need to upgrade your Logfire plan to use the gateway, but you will need to add a credit card on the Personal plan for gateway-related charges.

Do I need to add a credit card?

It depends on your plan:

  • Personal plan (free): Yes, you'll need to add a credit card to use the gateway.
  • Team or Growth plans: No — you already have a card on file from your plan subscription, and that card will be used for gateway charges.

How do I set up the gateway on Logfire?

  1. Go to logfire.pydantic.dev.
  2. Choose a region and create an account.
  3. Add a credit card if you're on the Personal plan.
  4. Go to your organization's Gateway settings and create an API key.
  5. Update your application to use the new API key.

I'm using Pydantic AI — what do I need to change?

If you're using the gateway/ provider prefix (e.g., Agent('gateway/openai:gpt-4o')), you just need to swap your API key for the one generated in Logfire:

export PYDANTIC_AI_GATEWAY_API_KEY="pylf_v..."

Does anything carry over from PAIG Console?

No. This is a clean start — usage history, project settings, and API keys do not transfer. You'll configure everything fresh on Logfire.

Can you do the migration for me?

Not right now, but if you'd like help, email us at engineering@pydantic.dev.

What if I have questions or need help?

Reach out to us at engineering@pydantic.dev and we'll be happy to help you through the transition.