- Access 300+ models from OpenAI, Anthropic, Google, Mistral, and many other providers through one API key.
- Get automatic prompt caching on Anthropic models, reducing cost significantly on multi-turn conversations.
- Track and manage your spend in a single location.
- Apply fallback policies, load balancing, and latency routing to keep your agent responsive.
Prerequisites
- Pi installed on your machine. See pi.dev for installation instructions.
- A Requesty API key from the API Keys page.
Configuration
Install Pi
Follow the instructions at pi.dev to download and install Pi on your machine.
Configure the models file
Create or edit the models configuration file at Replace
~/.pi/agent/models.json and add Requesty as a provider:rqsty-sk-.... with your Requesty API key from the API Keys page.The
HTTP-Referer: https://pi.dev header is what enables Requesty’s automatic prompt caching for Pi. When Requesty sees this referer on an Anthropic model, it automatically injects cache-control breakpoints so Pi’s large system prompt and tool definitions are reused across turns — cutting cost by up to 90% on long conversations. Combined with api: "anthropic-messages" (the native Anthropic Messages format), this gives you the best caching behavior. See Auto-Caching for details.Sync models
Run the following command inside Pi to sync the available Requesty models:This pulls the latest model catalog from Requesty so you can select any approved model from your organization.
Selecting a model
After the sync completes, run the/model command inside Pi to choose a model from the list you synced.
You should be able to see both discrete models, e.g. anthropic/claude-opus-4-7 and your custom policies, e.g. policy/opus-europe.