Skip to content

How to build Bio Generator with AI

Published: at 11:00 AM

I have build simple app to generate your bio for any social media target. This app is powered by AI and it’s free to use. Find the code here.

I uses OpenAI gpt-3.5-turbo to generate the bio. It’s very simple to use, just input the personal description and the target social media and the bio will be generated.

We only need small setup the payload, this payload is an object that contains parameters for a request to the OpenAI API.

Notice the OPENAI_API_KEY, you can find it in your OpenAI account.

const payload: OpenAIStreamPayload = {
    model: "gpt-3.5-turbo",
    messages: [{ role: "user", content: prompt }],
    temperature: 0.7,
    top_p: 1,
    frequency_penalty: 0,
    presence_penalty: 0,
    max_tokens: 400,
    stream: true,
    n: 1,
  };

Let’s break down the payload object:

That’s it! With this payload, we can send a request to the OpenAI API and get a bio generated by the GPT-3.5 model. The possibilities are endless, and the results are often surprisingly human-like. Give it a try and see what you can create!

Grab the code

You can grab the code from the Github repository