Skip to main content

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.
Every SDK and framework that speaks OpenAI (LangChain, Vercel AI SDK, LlamaIndex, Haystack, Pydantic AI) works with Requesty out of the box. Same for the Anthropic SDK against /anthropic/v1/messages.

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

3

Make your first request

Requesty returns an OpenAI-compatible response.
Response body
The 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.
gpt-6-luna is a bare model name, so Requesty picks the best provider for it on every request and fails over if one degrades (a Managed Policy). Use provider/model, for example openai/gpt-6-luna, to pin a single provider.
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. Swap model 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

Also on Requesty: Claude Cowork and OpenClaw for desktop agents, and Open WebUI, LibreChat, and Langdock for chat.

Use your favorite framework

LangChain

Vercel AI SDK

LlamaIndex

Haystack

Pydantic AI

Axios

Requests

Anthropic SDK

Common questions

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.
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.
Yes. Free models need no credit card and come with 200 requests per day, with the same routing, logs, and analytics as paid models.
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.
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.
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.
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.
Last modified on October 12, 2026