Endpoint

ModRouter’s PydanticAI router combines OpenAI, Anthropic, GenAI, Cohere, and Bedrock route families under the /pydanticai prefix.

OpenAI Provider

Anthropic Provider

Use the PydanticAI Anthropic provider with the base URL ending at /pydanticai if that provider appends /v1/messages internally:

Notes

  • Match the provider class to the route shape: OpenAI provider to OpenAI paths, Anthropic provider to Anthropic paths, and so on.
  • ModRouter routes requests; PydanticAI tools and agent orchestration still run inside your application.
  • Use virtual keys for per-agent or per-environment governance.