Pydantic AI (gateway)
Route Pydantic AI model calls through the Respan gateway to use 1000+ models from different providers. Only your RESPAN_API_KEY is needed.
Setup
Anthropic provider
If you use Pydantic AI’s Anthropic provider, point it at the Anthropic-compatible Respan gateway route and keep using the Respan key as the runtime secret.
Python
Switch models
Change the model string or RESPAN_MODEL value to another gateway model ID. The openai: prefix uses the Responses API, which serves OpenAI models only. Use the openai-chat: prefix for Claude, Gemini, and other providers so Pydantic AI calls Chat Completions.
See the full model list.