# Use Kyma with the Vercel AI SDK

Markdown version of https://kymaapi.com/for/vercel-ai-sdk, for agents and crawlers. Same content as the HTML page.

- Generated: 2026-10-18T19:28:44.910Z
- HTML page: https://kymaapi.com/for/vercel-ai-sdk
- Model catalog: https://kymaapi.com/models.md
- Pricing: https://kymaapi.com/pricing.md

Vercel AI SDK

Official Kyma provider, active open models, streaming support, and a working Next.js starter.

- [Read Setup Guide](https://docs.kymaapi.com/guides/vercel-ai-sdk)
- [Quickstart](https://docs.kymaapi.com/quickstart)

## Official Kyma provider

Use `@kyma-api/ai-sdk` with the Vercel AI SDK. No custom wrapper code needed.

## Streaming-ready starter

The repo includes a Next.js chatbot starter using `streamText` and `useChat`.

## One API, active models

Use Kyma aliases or active model IDs through one endpoint with Kyma routing and failover.

## Quick path

```
npm install @kyma-api/ai-sdk ai

import { generateText } from "ai";
import { kyma } from "@kyma-api/ai-sdk";

const { text } = await generateText({
  model: kyma("best"),
  prompt: "Explain retrieval-augmented generation in one paragraph.",
});
```

## What to use

**Best default:** `best` → `qwen-3.6-plus`

**Code-focused:** `code` → `qwen-3-coder`

**Fast path:** `fast` → `gemini-3.5-flash-lite`

**Agent/tool use:** `agent` → `kimi-k2.6`

**Long context:** `long-context` → `gemini-3-flash`

## Build on a working path

Start with the official guide, validate with the Next.js starter, then adapt for your app.

- [Docs Guide](https://docs.kymaapi.com/guides/vercel-ai-sdk)
- [Read the tutorial](https://kymaapi.com/blog/build-chatbot-nextjs-kyma)

## Explore more

- [qwen-3.6-plus](https://kymaapi.com/models/qwen-3.6-plus)
- [qwen-3-coder](https://kymaapi.com/models/qwen-3-coder)
- [qwen-3-32b](https://kymaapi.com/models/qwen-3-32b)
- [kimi-k2.6](https://kymaapi.com/models/kimi-k2.6)
- [gemini-3-flash](https://kymaapi.com/models/gemini-3-flash)
- [All models](https://kymaapi.com/models)
- [Compare models](https://kymaapi.com/compare)
- [Live model rankings](https://kymaapi.com/rankings)
- [Vercel AI SDK setup guide](https://docs.kymaapi.com/guides/vercel-ai-sdk)
