Getting Started

How to get started with Pydantic-AI

1

Sign up for Pydantic AI Gateway

Register at gateway.pydantic.dev to access the managed service.

2

Install Pydantic AI Python package

Install the package and import the Agent class in your Python environment.

3

Create an agent instance

Instantiate an agent by specifying a model provider, for example: Agent('openai:gpt-5.2').