Skip to main content
Pydantic AI is a Python agent framework Pydantic docs
Pydantic + Nebius AI docs

Prerequisites

  1. Create an API key to authorize requests to Nebius Token Factory.
  2. Save the API key into a NEBIUS_API_KEY environment variable:
  3. Install the pydantic package:

Create an Agent Application

Simplest application. NEBIUS_API_KEY will be inferred from env variables.
You can use also use the NebiusProvider class:

More Examples

View more examples in our cookbook