Secure, scalable, and monetizable OpenAI API integration
Already have an account? Sign in here
Your API keys remain hidden. We handle all authentication and security.
Pay-as-you-go with credits or choose subscription plans. No hidden fees.
Low latency, high availability. Built for production workloads.
Track every request, monitor costs, and optimize your usage.
Automatic rate limiting to prevent abuse and control costs.
Simple REST API. Works with any programming language.
Sign up and purchase credits to receive your unique API key.
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!"}
]
}'
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);
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']}")