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

# AI SDK

> Use the official Phaseo provider for the Vercel AI SDK.

Phaseo ships an official Vercel AI SDK provider in the `@phaseo/ai-sdk-provider` package.

## Install

```bash theme={null}
npm install @phaseo/ai-sdk-provider ai
```

## Basic usage

```ts theme={null}
import { phaseo } from "@phaseo/ai-sdk-provider";
import { generateText } from "ai";

const result = await generateText({
	model: phaseo("openai/gpt-4o"),
	prompt: "Summarize this in one sentence.",
});
```

## Notes

* Use model ids from the [Models endpoint](../../api-reference/endpoint/models.mdx).
* The provider supports the AI SDK primitives for text, images, audio, and embeddings.
