## List supported models

`models.list(ModelListParams**kwargs)  -> ModelListResponse`

**get** `/api/v1/models`

Lists the models currently available to the caller through the responses endpoint: hosted models, harnesses and inference stacks. Pass `type=hosted` for the hosted models alone: what the caller's key grants, minus the `-direct` ids, which are omitted rather than listed under the public name they serve. The catalogue only supplies the `display_name` when it carries the model. An approved inference provider key receives the provider catalog representation instead.

### Parameters

- `x_organization_id: Optional[str]`

- `type: Optional[Literal["hosted"]]`

  Narrows the list to the hosted models the caller's key grants, leaving out harnesses and stacks. A `-direct` id is omitted rather than listed under the public name it serves, and a granted model the catalogue does not carry is still listed, without a `display_name`.

  - `"hosted"`

### Returns

- `class ModelListResponse: …`

  - `object: Literal["list"]`

    - `"list"`

  - `data: List[Data]`

    - `id: str`

      Model identifier accepted by the responses endpoint.

    - `created: int`

      Unix timestamp when the model was created.

    - `object: Literal["model"]`

      - `"model"`

    - `owned_by: str`

      Organization that owns the model.

    - `display_name: Optional[str]`

      Human-readable name, when the model is one the platform catalogues.

    - `shutdown_date: Optional[str]`

      Date when the model will be shut down, if announced.

### Example

```python
import os
from adaption import Adaption

client = Adaption(
    api_key=os.environ.get("ADAPTION_API_KEY"),  # This is the default and can be omitted
)
models = client.models.list()
print(models.object)
```

#### Response

```json
{
  "object": "list",
  "data": [
    {
      "id": "qwen3.5-397b",
      "created": 1750000000,
      "object": "model",
      "owned_by": "platform",
      "display_name": "Qwen 3.5 397B",
      "shutdown_date": null
    }
  ]
}
```
