GET /api/v1/models

Returns all models available through configured providers, including capabilities and pricing.

Headers

HeaderRequiredDescription
AuthorizationYesBearer ens_your_api_key

Response

{
  "models": {
    "claude-sonnet-4-20250514": {
      "name": "claude-sonnet-4-20250514",
      "providers": ["anthropic"],
      "pricing": {
        "input_per_mtok": "3.00",
        "output_per_mtok": "15.00",
        "cached_per_mtok": "0.30",
        "cache_write_per_mtok": "3.75"
      },
      "context_window": 1000000,
      "max_output_tokens": 64000,
      "capabilities": {
        "vision": true,
        "caching": true,
        "streaming": true
      }
    },
    "gpt-5": {
      "name": "gpt-5",
      "providers": ["openai"],
      "pricing": {
        "input_per_mtok": "1.25",
        "output_per_mtok": "10.00",
        "cached_per_mtok": "0.125"
      },
      "context_window": 400000,
      "max_output_tokens": 200000,
      "capabilities": {
        "vision": true,
        "caching": true,
        "streaming": true
      }
    }
  }
}
Model availability depends on which providers are configured with API keys. The response reflects the actual provider YAML configurations. Keys can have per-key model restrictions.