Skip to main content
Returns the list of AI models available for chat conversations, along with the current default model. Use these model keys when sending messages via SSE or WebSocket to override the default.
Authorization
string
required
Bearer token obtained from the authenticate endpoint.

Response

models
string[]
required
List of available model keys. Pass any of these as the model parameter when sending a message.
default
string
required
The model used when no model parameter is specified.
curl -X GET https://api.trellis.sh/v1/models \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "models": [
    "claude-sonnet-4-6",
    "claude-opus-4-6",
    "claude-haiku-4-5",
    "gpt-5.2",
    "gpt-5-mini",
    "gemini-3.0-pro",
    "gemini-3.0-flash"
  ],
  "default": "claude-sonnet-4-6"
}