Automatically route to the cheapest or best provider. Switch providers without changing your code.
Built for developers who want to monetize AI access. Full billing, no third-party payment required.
5-hour credit windows with automatic reset via Redis TTL. Zero cron jobs. Fair usage built in automatically.
Aliases like biran/cheap auto-select the best provider. No code changes needed.
Drop-in replacement for OpenAI API. Works with LangChain, LlamaIndex, Vercel AI, any SDK — zero code changes.
User bot: /start, /buy, /apikey. Admin bot: /orders, /confirm. No web dashboard needed to manage users.
Full streaming support for chat completions. Real-time responses, fully compatible with OpenAI streaming spec.
Per-user, per-plan rate limits via Redis. Configurable per tier. Prevents abuse and ensures fair resource sharing.
Three steps to start selling AI API access
Send /start to the bot, choose a plan, make payment. Admin confirms via bot. Done in minutes.
Bot generates and sends the API key right away. Users can create multiple keys with custom names.
Use with any OpenAI-compatible SDK. Credits reset every 5 hours. Monitor usage with /usage command.
/v1/chat/completions
Prices load
from GET /public/plans on biran-web (WEB_PORT, default 8080). Set window.BIRAN_WEB_URL to override.
Fully OpenAI-compatible. Just change the base URL.
/v1/chat/completions
/v1/messages
/v1/models
Use Biran Gateway as your AI backend in OpenClaw — just point the base URL and you're set.
Add Biran as a provider in ~/.openclaw/openclaw.json under models.providers.
Add model aliases under agents.defaults so OpenClaw can use them.
Quick answers to common questions about Biran Gateway.
biran/cheap, biran/smart, biran/best for automatic routing.