Skip to content

Nutlope/twitterbio

Repository files navigation

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

Twitter Bio Generator

How it works

This project uses both Mixtral 8x7B and Llama 3.1 8B with streaming to generate a Twitter bio. It constructs a prompt based on the form and user input, sends it either to the Together.ai API, then streams the response back to the application.

If you'd like to see how I built an older version of this app with GPT 3.5, check out the video or blog post.

Running Locally

  1. Create a .env file, make an account at Together.ai, 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:

Deploy with Vercel