Referência da API

List models

Return the model this stack accepts.

GET/v1/models

Lists what you may pass as model. A stack exposes exactly one model — the one its plan is built for — so this endpoint exists mostly for SDK compatibility and health checks, not for choosing between options.

Request

curl "https://api.trystac.com/v1/models" \
  -H "Authorization: Bearer $STAC_API_KEY"

Takes no parameters.

Response

200 OKjson
{
  "object": "list",
  "data": [
    {
      "id": "your-stack-model",
      "object": "model",
      "created": 1769000000,
      "owned_by": "stac",
      "context_window": 131072,
      "capabilities": ["chat", "tools", "json_mode", "vision"]
    }
  ]
}
idstringOpcional

Value to pass as model in a completion request — though the field is ignored either way. See Core concepts.

context_windowintegerOpcional

Total tokens the model accepts, prompt plus completion. Set per stack, not fixed platform-wide — it can change if your plan's underlying infrastructure is resized.

capabilitiesstring[]Opcional

Features this model supports. vision means it accepts image input directly in chat (see OCR via chat); it's independent of the dedicated dedicated extraction endpoints, which run OCR regardless of whether the model itself is multimodal.

chattoolsjson_modevision