Skip to content

List Models

GET/api/models

List all enabled models. Public endpoint — no authentication required.

Query Parameters

ParameterTypeDescription
vendorstringFilter by vendor (e.g. OpenAI, Anthropic)
typestringFilter by type: llm, vision, image, video, audio, embedding
orderstringSort: 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"