Sign inSign up

san8888/emaki-video-starter

By san8888

•Updated 26 days ago

One-page Seedance 2.5 AI video generator on the emaki.ai API

Image
0

245

san8888/emaki-video-starter repository overview

⁠Seedance 2.5 AI Video Generator starter

A one-page text-to-video and image-to-video app you can deploy in a minute: a prompt box, an optional first-frame image, aspect ratio, length and resolution, and the finished clip. One file of server code, no dependencies, Node 18+.

Clips come from the API of emaki (emaki.ai), the Japanese-language AI video generator for Seedance 2.5 and Seedance 2.0. The default model is Seedance 2.5⁠; set EMAKI_MODEL=seedance_2 for Seedance 2.0⁠.

日本語での使い方は シーダンス⁠ へ。

⁠Deploy

Deploy with Vercel Deploy on Railway Deploy on Zeabur

Or run the prebuilt image: docker run -p 3000:3000 -e EMAKI_API_KEY=sk-... san8888/emaki-video-starter (amd64 and arm64).

⁠Run it

EMAKI_API_KEY=sk-... node server.js          # http://localhost:3000
VariableWhat it does
EMAKI_API_KEYRequired. Create one at emaki.ai/settings/apikeys⁠. Every clip costs credits on that emaki account, the same price as on the website.
ACCESS_PASSWORDOptional, but set it on a public URL: anyone who can open the page spends your credits. The page asks for it once and remembers it.
EMAKI_MODELDefault seedance_2_5. Others: seedance_2, seedance_2_fast, seedance_2_mini.
PORTPort to listen on. Default 3000.

⁠How it works

  • On Vercel the two routes are serverless functions in api/; everywhere else server.js serves them. Both call lib/emaki.js.
  • POST /api/generate sends {prompt, model, parameters} to https://emaki.ai/api/video/ai and returns the run id.
  • GET /api/status?id= reads https://emaki.ai/api/video/status; the page polls it every 5 seconds until the clip is completed (a few minutes) and plays videoUrl.
  • Paste an https image URL as the first frame for image to video⁠. To sharpen a finished clip there is the AI video upscaler⁠ on emaki⁠.

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:527b08679…

Size

57.9 MB

Last updated

26 days ago

docker pull san8888/emaki-video-starter