> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Variable: models

> Generated from the public TypeScript API.

```ts theme={null}
const models: object;
```

Pure model-id string helpers.

These helpers only concatenate a provider prefix. They do not create a
provider client, read an API key, perform I/O, validate availability, or
depend on `@ai-sdk/*`. Known ids receive completions, while arbitrary
current or private ids remain accepted.

## Type Declaration

### anthropic()

```ts theme={null}
anthropic(model): ModelId;
```

Prefix an Anthropic model name.

#### Parameters

##### model

\| `string` & `object`
\| [`AnthropicModelId`](../type-aliases/AnthropicModelId)

Known or arbitrary provider-local model name.

#### Returns

[`ModelId`](../type-aliases/ModelId)

An `anthropic/<model>` id.

### deepseek()

```ts theme={null}
deepseek(model): ModelId;
```

Prefix a DeepSeek model name.

#### Parameters

##### model

\| `string` & `object`
\| [`DeepseekModelId`](../type-aliases/DeepseekModelId)

Known or arbitrary provider-local model name.

#### Returns

[`ModelId`](../type-aliases/ModelId)

A `deepseek/<model>` id.

### google()

```ts theme={null}
google(model): ModelId;
```

Prefix a Google model name.

#### Parameters

##### model

\| `string` & `object`
\| [`GoogleModelId`](../type-aliases/GoogleModelId)

Known or arbitrary provider-local model name.

#### Returns

[`ModelId`](../type-aliases/ModelId)

A `google/<model>` id.

### groq()

```ts theme={null}
groq(model): ModelId;
```

Prefix a Groq model name.

#### Parameters

##### model

`string` & `object` | [`GroqModelId`](../type-aliases/GroqModelId)

Known or arbitrary provider-local model name.

#### Returns

[`ModelId`](../type-aliases/ModelId)

A `groq/<model>` id.

### mistral()

```ts theme={null}
mistral(model): ModelId;
```

Prefix a Mistral model name.

#### Parameters

##### model

\| `string` & `object`
\| [`MistralModelId`](../type-aliases/MistralModelId)

Known or arbitrary provider-local model name.

#### Returns

[`ModelId`](../type-aliases/ModelId)

A `mistral/<model>` id.

### openai()

```ts theme={null}
openai(model): ModelId;
```

Prefix an OpenAI model name.

#### Parameters

##### model

\| `string` & `object`
\| [`OpenaiModelId`](../type-aliases/OpenaiModelId)

Known or arbitrary provider-local model name.

#### Returns

[`ModelId`](../type-aliases/ModelId)

An `openai/<model>` id.

### xai()

```ts theme={null}
xai(model): ModelId;
```

Prefix an xAI model name.

#### Parameters

##### model

`string` & `object` | [`XaiModelId`](../type-aliases/XaiModelId)

Known or arbitrary provider-local model name.

#### Returns

[`ModelId`](../type-aliases/ModelId)

An `xai/<model>` id.

## Example

```ts theme={null}
const model = models.anthropic("claude-sonnet-4-5")
// "anthropic/claude-sonnet-4-5"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.