skip to content
superbot.gg

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_…).

Operation id listModels in Gateway.

Response 200

Every model this key can name.

application/json: ModelList.

  • object string required

    One of list.

  • data array of Model required
    12 fields
    • id string required
    • object string required

      One of model.

    • created integer required
    • owned_by string required
    • lane string
    • tier string
    • available boolean
    • reason string
    • min_plan string
    • auto boolean
    • context_window integer
    • context_length integer

Errors

StatusCodeWhat to change
401unauthorized

Send a live caller key or session as Authorization: Bearer … or x-api-key. No key yet: create one at /account/api, or sign a user in at /auth.md.

403insufficient_scope

The key lacks the scope in required_scopes; mint a key that holds it.

view .mdopenapi
Request

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())
Response

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"