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.
Bearer token obtained from the authenticate endpoint.
Response
List of available model keys. Pass any of these as the model parameter when sending a message.
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"
}