> ## Documentation Index
> Fetch the complete documentation index at: https://www.adaline.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Models

# ModelsClient

`adaline.models` lists the models available across your configured providers.

## Access

```typescript theme={null}
import { Adaline } from '@adaline/client';

const adaline = new Adaline();
const models = adaline.models; // ModelsClient
```

The class is also exported directly:

```typescript theme={null}
import { ModelsClient } from '@adaline/client';
```

Types from `@adaline/api`:

```typescript theme={null}
import type { ListModelsResponse } from '@adaline/api';
```

***

## list()

List models, optionally filtered to one provider.

```typescript theme={null}
list(options?: { providerId?: string }): Promise<ListModelsResponse>
```

### Parameters

| Name         | Type     | Required | Description                                                                              |
| ------------ | -------- | -------- | ---------------------------------------------------------------------------------------- |
| `providerId` | `string` | No       | If supplied, only returns models under this provider. Omit to list across all providers. |

### Returns

`Promise<ListModelsResponse>` with `{ data: Model[] }`. Each [`Model`](/docs/reference/api/v2/openapi/list-models) has `id`, `providerId`, `provider`, `model` (model name), and `enabled`.

### Example

```typescript theme={null}
// All models across every provider
const all = await adaline.models.list();

// Only models from a specific provider
const openai = await adaline.models.list({ providerId: 'provider_abc123' });

for (const model of openai.data) {
  console.log(`${model.provider}/${model.model} — enabled=${model.enabled}`);
}
```

***

## See Also

* [Adaline class](/docs/reference/sdk/v2/typescript/classes/adaline)
* [ProvidersClient](/docs/reference/sdk/v2/typescript/classes/providers) — `get()` can return a provider with its models in one call
* API reference: [List models](/docs/reference/api/v2/openapi/list-models)
