Pydantic AI 2.41 adds Codex subscription auth and a direct image generation API
Pydantic
Pydantic AI v2.41.0 (Sep 8) adds an openai-codex provider that authenticates with a ChatGPT/Codex subscription instead of an API key, plus a direct ImageGenerator API for image generation without a fallback subagent model. It also reports and prices Anthropic native web searches in RequestUsage, and snaps Gemini thinking levels to the nearest supported value.
Why it matters
Reusing a Codex subscription as an agent backend undercuts API-key pricing for prototype and hobby agent workloads.
Importance: 2/5
Minor framework release with a genuinely new auth mode (Codex subscription)
Sources
official
Pydantic AI v2.41.0 release notes