List models
Part of Gateway, 7 operations. The overview covers keys, scopes and errors.
GET /v1/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.
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 required12 fields
idstring requiredobjectstring requiredOne of
model.createdinteger requiredowned_bystring requiredlanestringtierstringavailablebooleanreasonstringmin_planstringautobooleancontext_windowintegercontext_lengthinteger
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
}
]
}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.