Step-by-step
🤖 Hugging Face
Hugging Face
📘 Step-by-step 📘 Hugging Face · Hugging Face↗ Hugging Face · Official sitebeginner 🔄 Life & Business

Try Hugging Face's Free AI Text Generator in Your Browser

Spin up a real AI model on Hugging Face and create product descriptions, captions, and story starters — no coding, no account needed.

Staring at a blank page trying to write a product description, a social media caption, or the opening line of a short story? This guide walks you through using Hugging Face — a public website where thousands of ready-made AI models (think of them as little "brains" that have been trained on huge amounts of text) live and can be tried for free. By the end, you'll have typed a prompt, hit a button, and received AI-written text back, with no sign-up and no code. One honest note up front: the free public models are best for short creative bursts, so don't expect a finished novel in one click — think of them as a brainstorming partner, not a ghostwriter.

💡 Tip: tap a step’s number when you finish it — a green tick appears and your browser remembers how far you got.

✅ Before you start
  • A computer, tablet or phone with a web browser (Chrome, Firefox, Safari or Edge all work).
  • A steady internet connection — the model loads from Hugging Face's servers.
  • No account needed for the steps below, as we're using freely available public models.
  • About 10–15 minutes of free time, mostly waiting a few seconds for the model to "warm up" the first time.
1

Open the Hugging Face website

Open your web browser (like Chrome or Safari) and type huggingface.co into the address bar at the top, then press Enter. This takes you to the Hugging Face homepage. You'll see a clean, modern page, often with a large search bar or a prominent "Explore" button in the middle, and their logo typically in the top-left corner. The site serves as a massive online library for AI models, and you're entering the front door.

You'll know it worked when the page loads, displaying "Hugging Face" clearly at the top, and you can see a large search field, usually labelled "Search models, datasets, and more", near the centre of your screen. If your browser prompts you to "Translate this page", you can safely dismiss it, as it's a browser feature, not part of the website itself.

2

Search for the 'gpt2' text model

Click inside the main search bar, usually near the top or centre of the page, and type gpt2. This is a well-known, beginner-friendly text generation model. After typing, press the Enter key on your keyboard. This will filter the vast library of AI models down to those matching "gpt2", showing you a list of results with the most popular or relevant ones at the top. You're looking for a specific model that's small and quick to run.

If your screen looks different and you can't find a prominent search bar, look for a "Models" link in the top menu, click it, and then use the search bar on that dedicated Models page. If "gpt2" doesn't appear or seems unavailable, try typing distilgpt2 instead, which is a slightly smaller, similar model that's also excellent for free creative text tasks.

You'll know it worked when a list of search results appears, and you can see a model named gpt2 (or GPT-2) among them. Click directly on the gpt2 model name in the search results to open its dedicated page.

3

Locate the Inference Widget on the model page

After clicking the gpt2 model name, you'll land on a new page dedicated to that specific AI model. Scroll slowly downwards through the model's description, which often contains technical details and tags. Keep an eye out for a section titled "Inference Widget" or sometimes "Hosted Inference API". This section usually appears as a grey box containing a text input field, typically labelled "Input", and a button below it that says "Compute" or "Generate". This widget is like a built-in testing area where you can immediately interact with the AI model.

If your screen shows a black panel filled with computer code instead of a simple input box, it means this particular model either doesn't have the free interactive widget enabled or it's hidden. In this case, use your browser's "Back" arrow to return to the search results, and try selecting another gpt2 variation or distilgpt2 from the list, prioritising models with more "downloads" or "likes," as these often have the widget turned on.

You'll know it worked when you clearly see the "Inference Widget" section with a visible text box labelled Input and a clickable button like Compute or Generate below it, ready for you to type in.

4

Type your creative starting text (the prompt)

Click directly into the text box within the "Inference Widget", which should be labelled "Input". This box is where you'll give the AI its starting instruction, known as a prompt – it's just the first sentence or phrase the AI will use to begin its response. For best results with these free models, keep your prompt clear and concise, telling the AI exactly what you want it to write.

💬 Example`Write a short, friendly product description for a hand-poured lavender candle, suitable for an online gift shop.`

You'll know it worked when your typed sentence appears clearly inside the Input box, and the blinking cursor rests at the end. If the widget shows a character count, try to keep your prompt under a few hundred characters, as shorter prompts are usually more effective with these publicly available, free models.

5

Click 'Compute' and await the AI's response

Now, locate the button directly below the Input box within the "Inference Widget", typically labelled Compute or Generate. Click this button. This action sends your prompt to the gpt2 AI model, which then processes your request and starts generating text. For your very first attempt of the day, it might take 10-30 seconds for the model to load onto a free server — this is normal, so don't worry if you see a spinning circle or a "Loading model…" message. Just be patient.

The AI's response will appear in an Output box, usually located immediately below the Input box, once it's finished generating. Read the text slowly to see what the AI has created. If, after about a minute, nothing appears, refresh your browser page and click the Compute button again, as free servers can sometimes time out or be busy.

You'll know it worked when a new block of AI-generated text appears in the Output area, seamlessly continuing from or fulfilling the request of your initial prompt, giving you a new product description or story starter.

6

Refine your prompt for better results

The first AI response is often a good start, but rarely perfect, and that's exactly how these tools are meant to be used! Treat the AI like a creative partner: if the text isn't quite right (e.g., too long, wrong tone, or a little off-topic), simply modify your original prompt and try again. You can add details like "in a warm and cosy tone," "exactly one sentence," or "for busy parents."

To do this, click back into the Input box, carefully edit your existing prompt, and then click the Compute or Generate button once more. Each time you click "Compute," the model starts fresh with your new prompt, so it won't remember previous attempts unless you specifically include parts of the old output in your updated prompt.

💬 Example`Rewrite the lavender candle description in a warm, cosy tone, in exactly one sentence, for busy parents buying a small gift to relax.`

You'll know it worked when a new, different block of text appears in the Output box, reflecting the changes you made to your prompt. You can repeat this "edit and compute" cycle as many times as you like until you find a result you're happy to copy and use.

⚠️ Common mistakes
  • Choosing a very large or advanced model first. Models with big numbers in their names (like 70B or 405B) are powerful but often require paid plans or are too slow on free public servers. The fix is to always start with gpt2 or distilgpt2 for your first few tries, as they are small, fast, and always free to use in the widget.
  • Giving a vague or one-word prompt. Typing just "candle" or "story" doesn't give the AI enough direction, leading to generic or random-sounding text. The fix is to always include a clear verb (e.g., "Write," "Suggest," "Describe") and specific context: say what you want, for whom, and how long.
  • Expecting the model to know current events or exact facts. Free, publicly available models like gpt2 were trained on older text and don't search the live internet. The fix is to use them for creative writing, brainstorming, and drafting — not for up-to-date news, precise prices, or current statistics.
🚀 Try it now

Right now, in the next two minutes: open Hugging Face in your browser, search for gpt2, scroll down to the Inference Widget, and paste in Suggest three short, friendly social media captions for a new coffee shop opening on a quiet suburban street, focused on community. Then click Compute, read what comes back, and pick your favourite line. That's your first AI-assisted creative draft — done.

❓ Quick questions

How long does this take?

About 7 minutes — the guide has 6 steps, and you can tick each one off as you go.

Which tool do I need?

This guide uses Hugging Face Hugging Face — but the approach works very similarly in other AI assistants.

Do I need to prepare anything?
  • A computer, tablet or phone with a web browser (Chrome, Firefox, Safari or Edge all work).
  • A steady internet connection — the model loads from Hugging Face's servers.
  • No account needed for the steps below, as we're using freely available public models.
  • About 10–15 minutes of free time, mostly waiting a few seconds for the model to "warm up" the first time.
What mistakes should I avoid?
  • Choosing a very large or advanced model first. Models with big numbers in their names (like 70B or 405B) are powerful but often require paid plans or are too slow on free public servers. The fix is to always start with gpt2 or distilgpt2 for your first few tries, as they are small, fast, and always free to use in the widget.
  • Giving a vague or one-word prompt. Typing just "candle" or "story" doesn't give the AI enough direction, leading to generic or random-sounding text. The fix is to always include a clear verb (e.g., "Write," "Suggest," "Describe") and specific context: say what you want, for whom, and how long.
  • Expecting the model to know current events or exact facts. Free, publicly available models like gpt2 were trained on older text and don't search the live internet. The fix is to use them for creative writing, brainstorming, and drafting — not for up-to-date news, precise prices, or current statistics.

Keep reading

📬 The week’s AI, in your inbox

One friendly email every Sunday — the 5 stories that mattered, in plain English. No spam, unsubscribe anytime.

Was this helpful?

✦ Original step-by-step guide by AI World HQ's AI editorial team. Written in plain language, reviewed for accuracy.

← Back to all stories