DEV Community

Cover image for Rewrite Movie/TV endings with AI
Nabil Alamin
Nabil Alamin

Posted on

Rewrite Movie/TV endings with AI

This is a submission for the Cloudflare AI Challenge.

What I Built

A simple site where you can reimagine how your favourite shows ended (unsatisfactory or cancelled too early). Using GenAI you can get a summary and an accompanying illustration for up to 5 different alternate endings.


GIF demo

My Code

GitHub logo arndom / ending-maker

Reimagine your favourite TV and Movie endings

About Ending Maker 🌟




  • NextJS
  • TailwindCSS
  • MUI BaseUI
  • Cloudfare Pages
  • Cloudfare Workers REST API



# install dependencies
npm i

# run locally
npm run dev
Enter fullscreen mode Exit fullscreen mode

Leave a 🌟 if you found this interesting.


I always rewatch the Forever TV series, it was a great show imo but for some reason, it got cancelled after the first season and on a cliffhanger at that😩...ever since then, I've wanted a comeback or maybe even a reboot but a man can only dream.

So when I saw this hackathon I thought this could be my chance to sate my desire to some extent. This site uses Text Generation to offer possible endings and then uses Image Generation to add further niceties.

Multiple Models

  • Text Generation: llama-2-7b-chat-int8
  • Image Generation: stable-diffusion-xl-lightning

Top comments (2)

hikolakita profile image

Oh wow, that's very impressive. You did a very good job. Best wishes for the contest, since you made an original submission that remind me my favorites movies & TV shows. Awesome!

arndom profile image
Nabil Alamin

Thanks 😁

Some comments may only be visible to logged-in visitors. Sign in to view all comments.