List models

https://api.theb.ai/v1/models

https://api.baizhi.ai/v1/models

Lists the currently available models, and provides basic information about each one.

Request

GET
/v1/models
curl https://api.theb.ai/v1/models \
# curl https://api.baizhi.ai/v1/models \
  -H "Authorization: Bearer $API_KEY"

Response

{
  "object": "list",
  "data": [
    {
      "id": "model-0",
      "name": "Model 0",
      "family": "image",
      "desc": "Example model 0",
      "params": [...],
      "pricing": 0
    },
    {
      "id": "model-1",
      "name": "Model 1",
      "family": "chat",
      "desc": "Example model 1",
      "params": [...],
      "input_pricing": 0,
      "output_pricing": 0
    }
  ]
}