v2.41.0 v2.40.0

pydantic/pydantic-aiSep 8, 2026 → Sep 5, 20260 days between releases

Generating AI comparison

Analyzing what changed between v2.41.0 and v2.40.0. This page updates automatically — usually within a minute.

The Two Releases

v2.41.0

v2.41.0 (2026-09-07)

Sep 8, 2026· 1 month ago

This release introduces a direct image generation API and a new `openai-codex` provider for subscription authentication. It also deprecates `fallback_model` in favor of `fallback_subagent_model` for `ImageGeneration` and `XSearch`, alongside bug fixes for Anthropic usage reporting and Bedrock error handling.

Full release notes
v2.40.0

v2.40.0 (2026-09-04)

Sep 5, 2026· 2 months ago

This release adds robust support for real-time interactions, including barge-in handling, asynchronous background price updates, and new event-driven capabilities. It also introduces several utility methods for managing sessions and models more effectively.

Full release notes