Skip to main content
Requesty is a unified gateway for 300+ AI models. Access OpenAI, Anthropic, Google, and more through a single API endpoint with built-in optimization, caching, and cost tracking.

Quick Start

1

Create Your Account

Sign up for free at app.requesty.ai to get instant access to the platform.
2

Generate API Key

Navigate to API Keys and create your first API key with one click.
3

Update Your Code

Change your base URL to https://router.requesty.ai/v1 and start routing through Requesty.

Platform Walkthrough

Integration Examples

  • OpenAI SDK
  • Anthropic SDK
  • REST API
Drop-in replacement for OpenAI - just change the base URL and API key.

Using the OpenAI SDK

The easiest way to get started is using the OpenAI SDK with Requestyโ€™s endpoint:
import os
import openai

requesty_api_key = "YOUR_REQUESTY_API_KEY"  # Safely load your API key

try:
    # Initialize OpenAI client
    client = openai.OpenAI(
        api_key=requesty_api_key,
        base_url="https://router.requesty.ai/v1",
        default_headers: {
          "HTTP-Referer": "<YOUR_SITE_URL>", # Optional
          "X-Title": "<YOUR_SITE_NAME>", # Optional
        },
    )

    # Example request
    response = client.chat.completions.create(
        model="openai/gpt-4o",
        messages=[{"role": "user", "content": "Hello, who are you?"}]
    )

    # Check if the response is successful
    if not response.choices:
        raise Exception("No response choices found.")

    # Print the result
    print(response.choices[0].message.content)

except openai.OpenAIError as e:
    print(f"OpenAI API error: {e}")

except Exception as e:
    print(f"An unexpected error occurred: {e}")
The HTTP-Referer and X-Title headers help with analytics and improve your appโ€™s discoverability in our platform.

Why Choose Requesty?

80% Cost Savings

Intelligent caching and routing automatically reduce your AI costs

300+ Models

Access all major providers through one unified API

Zero Downtime

Automatic failover ensures your app stays online

Real-time Analytics

Monitor usage, costs, and performance in one dashboard

Smart Routing

Automatically route to the best model for each request

Enterprise Ready

SOC2 compliant with RBAC, SSO, and audit logs

Next Steps