Menu

Building an AI rap video workflow with scene previews and recoverable jobs
📰

Building an AI rap video workflow with scene previews and recoverable jobs

DEV Community: typescript·lucas white·3 days ago
#FfgXdTpC
#devtotypescript#devto#dev#task#scene
Reading 0:00
15s threshold

A ten-second rap video sounds like a small job: take a portrait, generate a performance, return an MP4.

A request can time out after the provider has already accepted the job. The video might then finish after the user closes the tab. And before any of that, there is a simpler problem: the generated scene might have the wrong face.

I'm building RapVideo, a web app that turns one or two portraits into short rap performances. Its main workflow has two generation steps, with a scene review between them. The application uses React and TanStack Start, runs on Cloudflare Workers, and keeps task state in D1. Generated media goes into R2.

The prompts are only one part of the implementation. Much of the code deals with what happens after a request leaves the server.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.