---
title: "AI Twitter Bio Generator"
description: "Generate your Twitter bio with OpenAI GPT-3 API (text-davinci-003) and Vercel Edge Functions with streaming."
url: "https://vercel.com/templates/next.js/twitter-bio"
links:
  repository: "https://github.com/Nutlope/twitterbio"
  demo: "https://www.twitterbio.io"
  deploy: "https://vercel.com/new/clone?demo-title=AI+Twitter+Bio+Generator&demo-description=Generate+your+Twitter+bio+with+OpenAI+GPT-3+API+%28text-davinci-003%29+and+Vercel+Edge+Functions+with+streaming.&demo-url=https%3A%2F%2Fwww.twitterbio.io&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F2I7NoGPw25Em00dQYxMdJg%2Fba571bc9c9334611ebe4c67973029c26%2Fscreenshot.png&project-name=AI+Twitter+Bio+Generator&repository-name=twitter-bio&repository-url=https%3A%2F%2Fgithub.com%2FNutlope%2Ftwitterbio&from=templates&skippable-integrations=1&env=OPENAI_API_KEY&envDescription=Get+your+API+key+from+Openai.com&envLink=https%3A%2F%2Fbeta.openai.com%2Faccount%2Fapi-keys"
---

# AI Twitter Bio Generator

Generate your Twitter bio with OpenAI GPT-3 API (text-davinci-003) and Vercel Edge Functions with streaming.

# [twitterbio.io](https://www.twitterbio.io/)

This project generates Twitter (X) bios for you using Together AI.

[![Twitter Bio Generator](https://github.com/Nutlope/twitterbio/blob/main/public/screenshot.png?raw=true)](https://www.twitterbio.io)

## How it works

This project uses both [Qwen 3.5 9B](https://api.together.xyz/playground/chat/Qwen/Qwen3.5-9B) and [GPT OSS 20B](https://api.together.xyz/playground/chat/openai/gpt-oss-20b) with streaming to generate a Twitter bio. It constructs a prompt based on the form and user input, sends it to the [Together.ai](https://togetherai.link/) API, then streams the response back to the application. Qwen 3.5 9B has thinking disabled for fast direct responses. GPT OSS 20B is a reasoning model that thinks before responding, shown with a "Thinking..." indicator.

If you'd like to see how I built an older version of this app with GPT 3.5, check out the [video](https://youtu.be/JcE-1xzQTE0) or [blog post](https://vercel.com/blog/gpt-3-app-next-js-vercel-edge-functions).

## Running Locally

1. Create a `.env` file, make an account at [Together.ai](https://togetherai.link/), and add your API key under `TOGETHER_API_KEY`
2. Run the application with `npm run dev` and it will be available at `http://localhost:3000`.

## One-Click Deploy

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Nutlope/twitterbio&env=TOGETHER_API_KEY&project-name=twitter-bio-generator&repo-name=twitterbio)

## Related Templates

### [Alt Text Generator](https://vercel.com/templates/next.js/ai-alt-text-generator)

Generate descriptions for your images using AI.

### [Dall-E 2 AI Art Generator](https://vercel.com/templates/next.js/dall-e)

Dall-E 2 frontend using Upstash for message queue + Redis.

### [AI Photo Restorer](https://vercel.com/templates/next.js/ai-photo-restorer)

An AI Face Photo Restorer built on Next.js and Replicate.

---

## 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.
