# Vercel AI SDK

> Используйте OpenAI-совместимый провайдер AI SDK.


```js test
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
import { generateText } from 'ai';

const notholy = createOpenAICompatible({ name: 'notholy', baseURL: 'https://api.notholy.com/v1', apiKey: process.env.NOTHOLY_API_KEY });
const { text } = await generateText({ model: notholy('notholy-specter'), prompt: 'What is a KEV entry?' });
console.log(text);
```

`streamText` и инструменты работают так же.

## Что дальше

- [Стриминг](/ru/guides/streaming)
