---
description: >-
  Fetch top 5 bounties from superteam earn with the help of Vercel AI and Vity
  Toolkit in less than 15 lines
---

# Quick Start - Vercel AI

In this guide you'll learn how to implement and use Vity Toolkit with VercelAI in just a few lines of code. For the purpose of this example, we'll create an assistant that can fetch top 5 bounties from [Superteam Earn](../tools/superteam-earn).

### Fetch top 5 bounties from Superteam Earn <a href="#transfer-tokens-to-another-wallet-on-solana" id="transfer-tokens-to-another-wallet-on-solana"></a>

In this example, we will use Vercel AI to fetch top 5 bounties from Superteam Earn using Vity Toolkit.

{% stepper %}
{% step %}
#### Install the package.

```bash
npm install vity-toolkit ai @ai-sdk/openai
```
{% endstep %}

{% step %}
#### Initialize Vity Toolkit.

```typescript
import { openai } from "@ai-sdk/openai";
import { generateText } from "ai";
import { App, VercelAIToolkit } from "vity-toolkit";

const toolKit = new VercelAIToolkit();
```
{% endstep %}

{% step %}
#### Get the required tools.

```typescript
const tools = toolKit.getTools({ apps: [App.EARN] });
```
{% endstep %}

{% step %}
#### Define the Agent.

```typescript
const { text } = await generateText({
    model: openai("gpt-4o"),
    tools,
    maxSteps: 5,
    prompt: "What is top 5 bounties in superteam earn?",
});
```
{% endstep %}

{% step %}
#### Execute the Agent.

```typescript
console.log(text);
```
{% endstep %}
{% endstepper %}

{% embed url="https://github.com/apneduniya/vity-toolkit/blob/main/code-samples/agent/vercel.ts" %}
Full code
{% endembed %}



