One API for every model.
Route requests across leading AI models through one compatible endpoint. Keep your client, change the base URL, and manage keys, usage and fallbacks in a single console.
https://api.prbycode.com/v1POST /v1/chat/completionshttps://api.prbycode.com/v1/chat/completions{
"model": "prbycode/model-name",
"messages": [
{ "role": "user", "content": "Hello" }
],
"stream": true
}Popular models
Frontier and fast models behind one key.
Every model speaks the same request shape. Switch by changing a single field.
Why PrByCode
Built like infrastructure, not a marketing page.
One key, every model
Issue scoped keys from the console and point any client at one base URL.
Usage you can audit
Requests, tokens and spend per model and per key, without guessing.
Failures that recover
Retry and fallback chains move a request to a healthy route automatically.
Routing and reliability
A single path, with a fallback behind it.
Configure a default model and an ordered fallback chain. Failed calls retry, unavailable routes are skipped, and every hop is recorded in your logs.
API example
Two lines to change.
Keep the SDK you already depend on.
curl https://api.prbycode.com/v1/chat/completions \
-H "Authorization: Bearer $PRBYCODE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3-flash",
"messages": [{ "role": "user", "content": "Hello" }]
}'PRBYCODE_API_KEYhttps://api.prbycode.com/v1Console
Is the API working, and what is it costing?
Requests, tokens, spend and success rate per period, with the failing requests one click away.
Pricing
Pay for what you use.
Model usage is metered per token. Access periods below cover the console and the rate limits on your keys.
| Access period | Price | Covers | Best for | |
|---|---|---|---|---|
| Daily | $3 / 24 hours | Console, keys, logs and routing | Focused access for short sessions and evaluation. | Details |
| WeeklyMost common | $8 / 7 days | Console, keys, logs and routing | Flexible access for active builds and sprints. | Details |
| Monthly | $22 / 30 days | Console, keys, logs and routing | Consistent access for regular development. | Details |
| Yearly | $199 / 365 days | Console, keys, logs and routing | Long-term access at the lowest daily cost. | Details |
Quickstart
Your first routed request in three steps.
No SDK migration and no new request shape.
- 1Create an API key
Generate a key in the console and store it as an environment variable.
- 2Copy the endpoint
Point your client at
https://api.prbycode.com/v1. - 3Send a request
Keep the request shape you already use and pick any model ID from the catalog.