Daily News · 1 min read

Pydantic AI Updates: September 8, 2026

1. Pydantic AI v2.41.0 Adds a Direct Image Generation API and a Codex Auth Provider

Pydantic AI shipped v2.41.0 with a new ImageGenerator class that exposes image generation directly rather than only through an agent tool call, plus an OpenAI-Codex provider that lets developers authenticate with existing ChatGPT or Codex subscription credentials instead of a separate API key. The release deprecates fallback_model on ImageGeneration and XSearch in favor of fallback_subagent_model, so existing configurations will need updating. Fixes cover three provider-specific gaps: Anthropic native web searches now surface in RequestUsage.details and count toward cost calculations, botocore transport errors in BedrockConverseModel are wrapped in ModelAPIError for consistent handling, and Gemini thinking levels snap to the nearest supported value instead of failing. Source