---
title: "No Schema Output Mode with Vercel AI SDK"
description: "A Next.js chatbot using the Vercel AI SDK's streamObject function without an underlying schema (no schema output mode)."
url: "https://vercel.com/templates/next.js/ai-sdk-no-schema"
links:
  repository: "https://github.com/vercel-labs/ai-sdk-preview-no-schema"
  demo: "https://ai-sdk-preview-no-schema.vercel.app/"
  deploy: "https://vercel.com/new/clone?demo-title=No+Schema+Output+Mode+with+Vercel+AI+SDK&demo-description=A+Next.js+chatbot+using+the+Vercel+AI+SDK%27s+streamObject+function+without+an+underlying+schema+%28no+schema+output+mode%29.&demo-url=https%3A%2F%2Fai-sdk-preview-no-schema.vercel.app%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F57i5PFI6CHc6lPPjziGAva%2Ff70e6f1227d560dd88df950dac2287f2%2FUntitled_design__9_.png&project-name=No+Schema+Output+Mode+with+Vercel+AI+SDK&repository-name=ai-sdk-no-schema&repository-url=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fai-sdk-preview-no-schema&from=templates&skippable-integrations=1&env=OPENAI_API_KEY&envDescription=OpenAI+API+Key+Required"
---

# No Schema Output Mode with Vercel AI SDK

A Next.js chatbot using the Vercel AI SDK's streamObject function without an underlying schema (no schema output mode).

# No Schema Structured Data Generation Preview

This preview demonstrates how to use the [Vercel AI SDK](https://sdk.vercel.ai/docs) and the `streamObject` function with the `no-schema` output mode to generate structured data with the AI provider of your choice.

## Deploy your own

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fai-sdk-preview-no-schema&env=OPENAI_API_KEY&envDescription=API%20keys%20needed%20for%20application&envLink=platform.openai.com)

## How to use

Run [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:

```bash
npx create-next-app --example https://github.com/vercel-labs/ai-sdk-preview-no-schema ai-sdk-preview-no-schema-example
```

```bash
yarn create next-app --example https://github.com/vercel-labs/ai-sdk-preview-no-schema ai-sdk-preview-no-schema-example
```

```bash
pnpm create next-app --example https://github.com/vercel-labs/ai-sdk-preview-no-schema ai-sdk-preview-no-schema-example
```

To run the example locally you need to:

1. Sign up for accounts with the AI providers you want to use (e.g., OpenAI, Anthropic).
2. Obtain API keys for each provider.
3. Set the required environment variables as shown in the `.env.example` file, but in a new file called `.env`.
4. `npm install` to install the required dependencies.
5. `npm run dev` to launch the development server.


## Learn More

To learn more about Vercel AI SDK or Next.js take a look at the following resources:

- [Vercel AI SDK docs](https://sdk.vercel.ai/docs)
- [Vercel AI Playground](https://play.vercel.ai)
- [Next.js Documentation](https://nextjs.org/docs)

## Related Templates

### [Chatbot](https://vercel.com/templates/next.js/chatbot)

A full-featured, hackable Next.js AI chatbot built by Vercel

### [Dynamic Model Usage with AI SDK](https://vercel.com/templates/next.js/ai-sdk-feature-flags-edge-config)

A chatbot that allows you to dynamically set the LLM using Vercel AI SDK with Feature Flags and Global Config

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
