product image

AI Script Writer

$19

Type a topic, get a ready-to-record short-video script

Stop staring at a blank page. Type a topic - get a punchy 30-second script.

In this hands-on project you build a small Python tool that asks an AI to write short-video scripts for you: a hook in the first second, a few quick beats, and a strong ending line. It uses Google Gemini’s free tier by default, or your own local AI with Ollama.

What you’ll build

  • write_script.py: type a topic, get a script saved as a text file
  • Options for tone (fun or serious) and length (30, 45 or 60 seconds)
  • A settings file so you can switch between Gemini and Ollama

What you’ll learn

  • Getting a free Gemini API key and keeping it safe
  • What makes a good short-video script (and the prompt behind it)
  • Using the free tier’s limits wisely, and what to do when you hit them
  • Running the same tool fully offline with Ollama

What you get

  • A 12-lesson step-by-step course with real screenshots
  • The finished tool, a settings template, two example scripts and a README

You need: Windows or Mac, an internet connection (or Ollama), a free Google account, and the free lessons What is the terminal?, What is Python? and What is an API? (links inside).

Time: about 25 minutes.