List Models
GET
/api/modelsList all enabled models. Public endpoint — no authentication required.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
vendor | string | Filter by vendor (e.g. OpenAI, Anthropic) |
type | string | Filter by type: llm, vision, image, video, audio, embedding |
order | string | Sort: most-popular, newest, name |
Response
Returns an array of model objects with pricing info.
json
{
"code": 0,
"data": [
{
"id": "model_01abc...",
"name": "openai/gpt-4o",
"display_name": "GPT-4o",
"vendor": "OpenAI",
"type": "llm",
"context_length": 128000,
"capability_tags": ["chat", "vision", "tools", "json_mode"],
"model_card": {
"prompt_token_price": "0.0000025",
"completion_token_price": "0.000010"
}
}
]
}Example
bash
# List all LLM models
curl "https://api.sandbase.ai/api/models?type=llm&order=most-popular"
# List image generation models
curl "https://api.sandbase.ai/api/models?type=image"
# List models by vendor
curl "https://api.sandbase.ai/api/models?vendor=Anthropic"
