Pydantic AI (gateway)
Pydantic AI (gateway)
Route OpenAI-compatible Pydantic AI model calls through the Respan gateway to use 250+ models from different providers. Only your RESPAN_API_KEY is needed — no separate provider keys required.
Setup
Switch models
Change the model string to another OpenAI model ID through the same gateway-backed provider configuration.
Pydantic AI’s openai-chat: prefix is a provider namespace that keeps this setup on Chat Completions. This page avoids showing Claude or Gemini behind that prefix; use the Respan API or OpenAI SDK gateway pages for provider-neutral Claude and Gemini examples.
See the full model list.