# Models, usage and limits

> The models a key can use, its quota, and the API's request caps.

Three read-only endpoints describe what your key can do. None of them uses quota.

## Models

`GET /v1/models`

```json
{"models": [
  {"id": "chakra-ts", "kind": "timeseries", "description": "ChakraTS: zero-shot probabilistic time-series forecasting"},
  {"id": "chakra-tab", "kind": "tabular", "description": "ChakraTab: in-context classification and regression on tables"}
]}
```

## Usage

`GET /v1/usage`

```json
{"unit": "series", "used": {"monthly": 120, "total": 4310},
 "quota": {"monthly": null, "total": 100000}, "left": {"monthly": null, "total": 95690},
 "credits": {"used": {"monthly": 0.014, "total": 0.052}, "quota": {"monthly": null, "total": 2.5}, "left": {"monthly": null, "total": 2.448}}}
```

For a key of an organization, every call is counted in `credits` (forecasts too), and `workspace.balance` is the
organization's balance. For a key without an organization, the top level counts forecasts (in series) and `credits` counts
tabular calls. `null` means no cap for that period; see
[Limits](https://yhatlabs.com/models/docs/resources/limits#pricing) for the rates.

## Limits

`GET /v1/limits`

```json
{
  "forecast": {"max_series": 256, "max_points_per_series": 32768, "max_total_points": 8000000,
           "max_horizon": 2048, "max_columns": 256,
           "native_quantile_levels": [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]},
  "tabular": {"max_rows": 200000, "max_columns": 2000, "max_cells_async": 50000000, "max_bytes": 67108864,
          "direct": {"fast": {"rows": 100000, "columns": 100}, "medium": {"rows": 25000, "columns": 100},
                     "pro": {"rows": 25000, "columns": 100}},
          "presets": ["fast", "medium", "pro"], "max_quantiles": 32, "fit_ttl_days": {"default": 30, "max": 365}, ...},
  "pricing": {...}, "rate": {...}, "capabilities": {...}
}
```
