Skip to main content
OpenAIChatModel speaks Chat Completions, which is what every OpenAI-compatible provider in Pydantic AI uses. The OPENAI_BASE_URL and OPENAI_API_KEY environment variables are the alternative to passing base_url and api_key.

Privacy

Use a catalog ID, not an OpenAI name. For attested hardware use a :confidential variant; GET /v1/models lists their :confidential IDs. Encrypted needs client-side encryption and extra headers, which these frameworks do not add. See Privacy Levels.

Framework Integrations

The shared pattern.

OpenAI Compatibility

What differs.

Privacy Levels

The four levels.