Models
GET /v1/models
GET
https://api.topbilling.in/v1/modelsscope models:readLists the models your key can use, in the shape of the endpoint family you ask with.
Authentication
Send your key as Authorization: Bearer tb_… or x-api-key: tb_…. See Authentication.
Parameters
limitinteger (query)Maximum entries to return, up to 1000.
Request
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["TB_API_KEY"], base_url="https://api.topbilling.in/v1")
for model in client.models.list():
print(model.id)
Response
{
"object": "list",
"data": [
{
"id": "<model-id>",
"object": "model",
"owned_by": "topbilling",
"display_name": "...",
"context_window": 128000,
"max_output_tokens": 8192,
"capabilities": ["chat", "streaming", "tool_calling"]
}
],
"has_more": false
}
capabilities lists what the model can do, for example chat, streaming, tool_calling, vision, reasoning or embeddings.
Retrieve a model
curl https://api.topbilling.in/v1/models/<model-id> -H "Authorization: Bearer $TB_API_KEY"
Returns one entry, or 404 model_not_found.