Drop-in OpenAI replacement with smart provider routing, automatic failover, rate limiting, and a beautiful dashboard. Self-host on Vercel for free.
import OpenAI from 'openai'
const client = new OpenAI({
apiKey: 'afr_your_key_here', // Get this from the dashboard
baseURL: 'https://api.aeferalow.my.id/v1', // ← only change needed
})
const response = await client.chat.completions.create({
model: 'gpt-4o-mini',
messages: [{ role: 'user', content: 'Hello!' }],
stream: true,
})
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? '')
}Round-robin, random, or priority routing with circuit breaker. Auto-failover to next provider instantly.
Full streaming response support. Works with any OpenAI SDK — zero config changes needed.
API keys hashed with SHA-256. Provider keys never exposed. Full audit trail on every request.
Real-time token usage, request history, quota tracking, and visual analytics charts.
Per-key and per-IP rate limits. Anti-spam and anti-flood protection built in at the gateway.
Drop-in replacement for the OpenAI API. Change one URL and you're done. No SDK changes.
Deploy your AI API Gateway in under 5 minutes.