Skip to main content

Endpoint

Returns a list of available models. Mini-SGLang currently serves a single model specified at server startup.

Request

No request parameters required.

Response Format

string
Always “list” for model list responses.
array
Array of model objects. Each model object contains:
string
The model identifier (typically the model path).
string
Always “model” for model objects.
integer
Unix timestamp of when the model was created/loaded.
string
Always “mini-sglang”.
string
The root model path.

Examples

List Models with curl

Example Response

Using Python OpenAI Client

Using Python Requests

Notes

  • Mini-SGLang currently supports serving one model at a time
  • The model ID matches the model path specified when starting the server
  • Use the model ID from this endpoint when making requests to /v1/chat/completions