---
title: "Change one base_url. Ship every model."
description: "Native OpenAI, Anthropic and Gemini protocol support: keep the official SDKs you already use, change one base_url, and every model in the catalog is yours."
canonical: https://pirouter.ai/sdk
last-updated: 2026-08-24
---

# Change one base_url. Ship every model.

> Native OpenAI, Anthropic and Gemini protocol support: keep the official SDKs you already use, change one base_url, and every model in the catalog is yours.

PiRouter speaks the OpenAI, Anthropic and Gemini protocols natively — the official SDKs, and every framework built on them, work out of the box. No wrapper library to learn, nothing new to install.

## Your stack already supports us

Point the client at our endpoint and pass any model slug from the catalog. That is the whole migration.

## Works with the whole ecosystem

If it speaks any of the three protocols — frameworks, agents, IDE tools — it can talk to PiRouter.

### OpenAI SDK

Python, TypeScript, .NET, Java — set base_url and api_key, done.

### Anthropic SDK

Native protocol forwarding — point the official SDK at our endpoint and it just works.

### Gemini SDK

The official Google GenAI SDK works unchanged over our native Gemini protocol support.

### Vercel AI SDK

Plug in via createOpenAI({ baseURL }) and stream straight into your UI.

### pi agent

The open-source coding agent — point its model provider at our endpoint and go.

### Any HTTP client

It is just HTTPS and JSON. If it can POST, it can route.

---

HTML version: https://pirouter.ai/sdk · Machine-readable index: https://pirouter.ai/llms.txt
