==> call the api
The models behind llm
GET /v1/llm/models
OpenAI's model list. Informational: whatever model a request names, llm answers. A personal access token only, for an account the model is open to (modelApi in /v1/me); a few calls in flight per account at most (429 beyond). The answer streams back as the model writes it.
Needs a personal access token: Authorization: Bearer <token>.
Answer
200 Success.
Refusals
Each answers { "error": "...", "code"?: "..." } with its status.
| status | when |
|---|---|
401 | No valid token. |
403 | This model is not open to the account, or the call did not come with a token. |
413 | The body is too large for this model. |
429 | Too many calls in flight for this account. |
503 | The model is not running. |
Example
curl 'https://api.clusterstuck.sh/v1/llm/models' \
-H 'Authorization: Bearer <your token>'