Switch from OpenAI in 2 lines
If you’re already using the OpenAI SDK, point it at Requesty and you’re done. No SDK changes, no new client to learn.Three steps to your first request
1
Get your API key
Sign up at app.requesty.ai and create a key on the API Keys page. You can start for free: free models need no credit card.Export it so the snippets below just work:
2
Install the SDK
- Python
- TypeScript
- cURL
3
Make your first request
Expected response
Expected response
Requesty returns an OpenAI-compatible response.The
Response body
usage object is returned by default on every non-streaming response. The cost field is Requesty’s USD cost for the call, you don’t need to pass any extra parameter to get it. For streaming, opt in with stream_options: {"include_usage": true} to receive a final usage chunk. See Streaming.The
HTTP-Referer and X-Title headers are optional but recommended. Requesty uses them to tag your requests in analytics. HTTP-Referer identifies your site URL and X-Title gives your app a human-readable name. Both appear in your analytics dashboards so you can filter traffic by origin.4
Make it production-ready (bonus)
Two upgrades turn this from a toy into something you can ship. Neither requires new infra.Add metadata so every request is attributable in analytics. Tag by feature, user, or trace ID to slice spend and latency the way you already think about your product.Route to a policy instead of a single model. Create a Fallback Policy once, then reference it by name. If the primary model errors or times out, Requesty tries the next one. No retry logic in your app.Learn more: Request Metadata · Fallback Policies · Load Balancing · Latency Routing.
Pick a model
Every model lives behind one endpoint. Swapmodel in the request to switch providers. No other code changes, no new SDK, no new auth.
Frontier
Claude Fable & Opus, GPT Astra & Sol. For the hardest tasks.
Fast & cheap
Claude Haiku, GPT Luna, Gemini Flash. Low latency, low cost.
Open source
DeepSeek, Mistral, GLM, Qwen. Served by multiple providers.
What Requesty adds on top
Smart routing
Fallbacks, load balancing, and latency routing across 30+ providers. When one degrades, traffic moves automatically.
Auto-caching
Cut costs up to 80% on repeated prompts with zero configuration.
Usage analytics
Track spend, latency, and errors per key, user, model, or project.
Spend management
Budgets per team, user, and API key, alerts before limits hit, and spend analytics for every dollar.
Bring your own keys
Use your own provider accounts and keep existing pricing.
Guardrails & RBAC
Content filtering, approved-model lists, and role-based access.
Use your favorite harness
Coding agents, desktop agents, and chat platforms connect to Requesty with a base URL and an API key. These are the harnesses teams use most on Requesty. The Requesty CLI sets most of them up in one command.Claude Code
Codex
Cursor
Hermes Agent
OpenCode
Pi
DS Harness
GitHub Copilot
Use your favorite framework
LangChain
Vercel AI SDK
LlamaIndex
Haystack
Pydantic AI
Axios
Requests
Anthropic SDK
Common questions
How is Requesty different from calling providers directly?
How is Requesty different from calling providers directly?
Calling a provider directly gives you one provider’s models, one auth method, and one point of failure. Requesty gives you one endpoint across 600+ models from 30+ providers, with automatic failover, caching, budgets, unified analytics, and one bill.
What does Requesty cost?
What does Requesty cost?
You pay the provider’s token prices, and a 5% service fee is added when you top up credits. Every request shows its exact cost in the analytics dashboard and in the
usage.cost field of the response. See Billing for payment methods and auto top-up.Can I try Requesty for free?
Can I try Requesty for free?
Yes. Free models need no credit card and come with 200 requests per day, with the same routing, logs, and analytics as paid models.
Should I use a bare model name or provider/model?
Should I use a bare model name or provider/model?
A bare name like
deepseek-v4.1-flash is a Managed Policy: Requesty picks the best provider on every request and fails over when one degrades. Use provider/model, like deepseek/deepseek-v4.1-flash, to pin one provider, or policy/your-policy to use a routing policy you created.Is my data used for training?
Is my data used for training?
No. Requesty is a pass-through gateway and does not train on your requests or responses. Each model’s retention and training policy is shown in the Model Library, and Data Privacy covers what Requesty stores.
Can I keep my data in the EU?
Can I keep my data in the EU?
Yes. Use
https://router.eu.requesty.ai/v1 so Requesty processes and stores your traffic in Frankfurt, and use EU-hosted models (for example @eu variants) so inference stays in the EU too. See EU Routing.Which Anthropic SDK endpoint do I use?
Which Anthropic SDK endpoint do I use?
Point the Anthropic SDK at
https://router.requesty.ai/anthropic/v1/messages. See the Anthropic Agent SDKs guide for code samples.Next steps
Inference APIs
Chat completions, embeddings, audio, images, and model listing endpoints.
Management APIs
Programmatically manage API keys, groups, members, and organization settings.
Use with Claude Code
Point Claude Code at Requesty for unified billing and routing.
Configure routing
Set up fallbacks, load balancing, and latency-aware routing.
EU Routing
Keep processing, storage, and inference in the EU with the Frankfurt endpoint and EU-hosted models.
Join the community
Ask questions, share builds, and meet the team on Discord.