API reference

Models

GET /v1/models and GET /v1/models/{id}

List models#

endpoint
GET https://api.stardustllm.xyz/v1/models

Returns every model you can call. No API key is needed. The catalog changes as models are added, so read it instead of hard-coding ids.

response (shortened)
{
  "object": "list",
  "data": [
    {
      "id": "glm-5.3-flash-free",
      "object": "model",
      "name": "GLM-5.3-Flash Free",
      "vendor": "Z.ai",
      "context_length": 200000,
      "max_output": 32000,
      "input_modalities": ["text", "image", "video"],
      "pricing": { "input": 0, "output": 0 },
      "free": true,
      "tools": false,
      "reasoning": true,
      "open_weight": false,
      "original": { "id": "z-ai/glm-5.3-flash", "context_length": 1048576 }
    }
  ]
}

Fields#

FieldDescription
idThe value to send as model.
context_lengthMaximum tokens of input + output.
max_outputMaximum tokens in one answer.
input_modalitiesWhat the model accepts, e.g. text, image.
pricingUSD per 1M tokens for input and output. Discounted models also show list_input, list_output and discount_percent.
freetrue for free models (need 5,000 ENERGY held, spend nothing).
tools, reasoningWhether the model supports tool calls and reasoning.
open_weightWhether the model's weights are public.
originalFor free variants: the original model id and its full context length.

Model profile#

endpoint
GET https://api.stardustllm.xyz/v1/models/{id}

Adds the description, release date, the model a free variant is based_on, free_min_energy, cache pricing and the providers serving it. The same data is shown on each model page of the catalog.