Multi-key routing
Select eligible keys by load or remaining budget. RPM, TPM, and cooldowns determine which keys can receive a request.
RPM / TPM / local budgetsOPEN-SOURCE API INFRASTRUCTURE
Route requests across API keys. Manage model access, usage, and billing in one workspace. Use your existing OpenAI and Anthropic SDKs, for DeepSeek models too.
MIT licensed · Self-hostable
SUPPORTED APIS
Illustrative data. Other limits assumed available. Budgets are local caps, not provider balances. No API calls.
INTEGRATION
Set your RelayPine key and the provider's base URL. Requests and responses keep their original format.
Assign model access and a request limit to your application.
Choose the endpoint for your OpenAI or Anthropic SDK.
Check token usage, request latency, and wallet charges.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.RELAYPINE_API_KEY,
baseURL: "https://relaypine.com/openai/v1",
});
const response = await client.responses.create({
model: "MODEL_ID",
input: "Hello from RelayPine",
});Set RELAYPINE_API_KEY to a key created in the console. Replace MODEL_ID with an enabled model ID from Models & rates.
GATEWAY CONTROLS
Configure upstream connections and application permissions separately. Inspect usage at the request level.
Select eligible keys by load or remaining budget. RPM, TPM, and cooldowns determine which keys can receive a request.
RPM / TPM / local budgetsRecord input, output, and cached tokens for each request. Track charges and balance changes in the wallet ledger.
Request logs / usage / ledgerSet application model permissions and rate limits. Connect the official OpenAI, Anthropic and DeepSeek APIs or compatible hosts, with an optional SOCKS5 proxy per upstream key.
Model permissions / per-key proxySOURCE CODE
RelayPine is open source under the MIT license. Review the implementation, deploy an instance, or contribute on GitHub.
View on GitHubMIT LICENSE GITHUBSign in with an email verification code to create a workspace.
New workspaces start with a $0.00 balance. An administrator adds credit before requests run.