🚀 OpenAI Relay API

Secure, scalable, and monetizable OpenAI API integration

Get Started Free Login to Dashboard

Already have an account? Sign in here

Why Choose Our API?

🔐

Secure & Protected

Your API keys remain hidden. We handle all authentication and security.

💰

Flexible Pricing

Pay-as-you-go with credits or choose subscription plans. No hidden fees.

⚡

Fast & Reliable

Low latency, high availability. Built for production workloads.

📊

Usage Analytics

Track every request, monitor costs, and optimize your usage.

🔄

Rate Limiting

Automatic rate limiting to prevent abuse and control costs.

🛠️

Easy Integration

Simple REST API. Works with any programming language.

Simple, Transparent Pricing

Starter

$9.99/mo
  • 10,000 Credits/month
  • 100 Requests/hour
  • 1,000 Requests/day
  • Email Support
  • Basic Analytics
Subscribe

Enterprise

$99.99/mo
  • 200,000 Credits/month
  • 2,000 Requests/hour
  • 20,000 Requests/day
  • 24/7 Support
  • Custom Features
Subscribe

Quick Start Guide

1. Get Your API Key

Sign up and purchase credits to receive your unique API key.

2. Make Your First Request

curl -X POST https://yourdomain.com/api/relay.php \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [
      {"role": "user", "content": "Hello, world!"}
    ]
  }'
            

JavaScript Example

const response = await fetch('https://yourdomain.com/api/relay.php', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': 'your_api_key_here'
  },
  body: JSON.stringify({
    model: 'gpt-3.5-turbo',
    messages: [
      {role: 'user', content: 'Hello, world!'}
    ]
  })
});

const data = await response.json();
console.log(data.choices[0].message.content);

// Check remaining credits
const creditsRemaining = response.headers.get('X-Credits-Remaining');
console.log('Credits remaining:', creditsRemaining);
            

Python Example

import requests

response = requests.post(
    'https://yourdomain.com/api/relay.php',
    headers={
        'Content-Type': 'application/json',
        'X-API-Key': 'your_api_key_here'
    },
    json={
        'model': 'gpt-3.5-turbo',
        'messages': [
            {'role': 'user', 'content': 'Hello, world!'}
        ]
    }
)

data = response.json()
print(data['choices'][0]['message']['content'])

# Check remaining credits
print(f"Credits remaining: {response.headers['X-Credits-Remaining']}")