List models
The agent models first (superbot, superbot-omni, superbot-fast), then your linked vendors’ models, your custom endpoints’ ids as custom/<slug>/<id>, then the credits catalog. A key with its own model list lists those names alone. Otherwise each agent model row carries max_output_tokens, top_provider (context_length, max_completion_tokens), pricing (USD per token as decimal strings: prompt, completion, input_cache_read, input_cache_write) and price_book: api for an API key, apps for a run token. In Anthropic’s shape the agent rows carry max_tokens and no price.
Part of Gateway, 9 operations. The overview covers keys, scopes and errors.
GET /v1/models
Any live caller key (Authorization: Bearer sbc_… or x-api-key: sbc_…).
Response 200
Every model this key can name.
objectstring requiredOne of
list.dataarray of Model required16 fields
idstring requiredobjectstring requiredOne of
model.createdinteger requiredowned_bystring requiredlanestringtierstringavailablebooleanreasonstringmin_planstringautobooleancontext_windowintegercontext_lengthintegermax_output_tokensintegerHouse models: the largest
max_tokensa turn is served.top_providerobjectHouse models: the window and the output cap, in OpenRouter's shape.
2 fields
context_lengthinteger requiredmax_completion_tokensinteger required
pricingobjectHouse models: USD per token on your card, as decimal strings in OpenRouter's shape. Fast mode bills 2x.
4 fields
promptstring requiredcompletionstring requiredinput_cache_readstring requiredinput_cache_writestring required
price_bookstringHouse models: the card
pricingis,apifor an API key,appsfor an app or a run token. One ofapi,apps.
Errors
| Status | Code | What to change |
|---|---|---|
| 401 | unauthorized | Send a live caller key or session as |
| 403 | insufficient_scope | The key lacks the scope in |
curl
curl -sS -X GET "https://superbot.gg/v1/models" \
-H "Authorization: Bearer $SUPERBOT_API_KEY"JavaScript
const res = await fetch(`https://superbot.gg/v1/models`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SUPERBOT_API_KEY}`,
},
});
console.log(res.status, await res.json());Python
import os
import requests
res = requests.request(
"GET",
"https://superbot.gg/v1/models",
headers={
"Authorization": f"Bearer {os.environ['SUPERBOT_API_KEY']}",
},
)
print(res.status_code, res.json())200 Every model this key can name.
{
"object": "list",
"data": [
{
"id": "superbot",
"object": "model",
"created": 0,
"owned_by": "your-owned-by",
"lane": "your-lane",
"tier": "your-tier",
"available": true,
"reason": "your-reason",
"min_plan": "your-min-plan",
"auto": true,
"context_window": 0,
"context_length": 0,
"max_output_tokens": 393216,
"top_provider": {
"context_length": 0,
"max_completion_tokens": 0
},
"pricing": {
"prompt": "0.000001",
"completion": "0.000005",
"input_cache_read": "0.00000005",
"input_cache_write": "0.00000125"
},
"price_book": "api"
}
]
}401 Missing, malformed or unknown key. A 401 that carries `x-superbot-error-origin: vendor` is your vendor credential’s refusal, not the gateway’s.
"string"403 The key is revoked.
"string"No operation matches this filter.