• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
charmaine

charmaine

lumalabs-starter

Public
Like
1
lumalabs-starter
Home
Code
4
backend
2
frontend
4
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
backend
/
README.md
Code
/
backend
/
README.md
Search
7/1/2025
Viewing readonly version of main branch: v20
View latest version
README.md

Backend

Hono-based API server for Luma AI video generation.

API Endpoints

POST /api/generate

Creates a new video generation request.

Request Body:

{ "prompt": "Description of the video to generate", "aspect_ratio": "16:9" // Options: "16:9", "9:16", "4:3", "3:4", "1:1" }

Response:

{ "success": true, "data": { "id": "generation-id", "state": "queued", // ... other generation details } }

GET /api/generation/:id

Gets the status and details of a video generation.

Response:

{ "success": true, "data": { "id": "generation-id", "state": "completed", // "queued", "dreaming", "completed", "failed" "assets": { "video": "https://video-url.mp4", // Available when completed "image": "https://thumbnail-url.jpg", "progress_video": "https://progress-url.mp4" // Available during generation }, // ... other details } }

Environment Variables

  • LUMAAI_API_KEY - Required. Your Luma AI API key

Static File Serving

  • / - Serves the main HTML page
  • /frontend/* - Serves frontend React components and assets
  • /shared/* - Serves shared TypeScript types and utilities
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.