---
title: "Discussion on \"Add AI video generation to a Next.js app: route handlers, spend caps, polling and webhooks\" | Hashnode"
description: "Discussion on \"Add AI video generation to a Next.js app: route handlers, spend caps, polling and webhooks\". Keep the key on the server, stop strangers from draining your balance, and show the finished clip without a long-running request."
url: "https://hashnode.com/posts/nextjs-ai-video-generation-api/6aec6c630e5f5f7c5dcf03de"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Add AI video generation to a Next.js app: route handlers, spend caps, polling and webhooks](https://revana.hashnode.dev/nextjs-ai-video-generation-api?utm_source=hashnode&utm_medium=feed)

Keep the key on the server, stop strangers from draining your balance, and show the finished clip without a long-running request.

Nov 5 · 10 min read · revana.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#ai](https://hashnode.com/tag/ai)
-   [#video](https://hashnode.com/tag/video)

## Written by

[Revana](https://hashnode.com/@revana)

@revana

  
[View profile](https://hashnode.com/@revana)

One API key for every AI video and image model. revana.si

Revana is one API for AI video and image generation: Seedance, Veo, Kling, Nano Banana and more behind one key, with the cheapest route first and no charge for failed generations. Built by Arib Khan. https://revana.si

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
