Transform your story ideas into professional cinematic sketches with AI-generated black and white artwork.
CinemaSketch is an AI-powered application that converts text prompts into complete cinematic storyboards featuring professional black and white sketches. Using advanced AI models, it generates detailed scene descriptions and creates atmospheric artwork perfect for film pre-production, creative writing, or visual storytelling.
- AI-Powered Story Generation: Advanced LLM creates detailed scene descriptions from your prompts
- Professional Cinematic Sketches: High-quality black and white artwork generated using NVIDIA Sana model
- Fast Processing: Complete storyboards with 3-5 scenes generated in under a minute
- User Authentication: Secure sign-in/sign-up with Clerk
- Real-time Processing: Live updates on storyboard generation progress
- Cost-Effective: Professional sketches starting at $0.12-0.20 per complete set
- Responsive Design: Works seamlessly on desktop and mobile devices
- Frontend: Next.js 15, React 19, TypeScript
- Styling: Tailwind CSS, shadcn/ui components
- Backend: Convex (real-time database and functions)
- Authentication: Clerk
- AI Services:
- Text Generation: AI/ML API (GPT-5-nano-2025-08-07)
- Image Generation: NVIDIA Sana Sprint 1.6B via Replicate
- Deployment: Vercel + Convex Cloud
- Node.js 18+
- npm or yarn
- Convex account
- Clerk account
- AI/ML API key
- Replicate API key
-
Clone the repository
git clone https://github.com/yourusername/cinemasketch.git cd cinemasketch -
Install dependencies
npm install
-
Set up environment variables
Create
.env.local:# Database - Development NEXT_PUBLIC_CONVEX_URL=your-dev-convex-url # Authentication NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your-clerk-publishable-key CLERK_SECRET_KEY=your-clerk-secret-key # AI Services (also set in Convex environment) AIMLAPI_KEY=your-aiml-api-key REPLICATE_API_TOKEN=your-replicate-token # Convex Deployment CONVEX_DEPLOYMENT=dev:your-convex-dev-deployment
-
Deploy Convex functions
npx convex dev
-
Set Convex environment variables
npx convex env set AIMLAPI_KEY your-aiml-api-key npx convex env set REPLICATE_API_TOKEN your-replicate-token
-
Start development server
npm run dev
- Create a Clerk application
- Configure the domain in
convex/auth.config.ts - Add your Clerk keys to environment variables
The application uses these main tables:
users- User profiles and settingsstoryboards- Main storyboard recordsscenes- Individual scene data and imagesstoryboard_queue- Processing queue for image generation
- Text Generation: Uses AI/ML API with GPT-5-nano model for story structure
- Image Generation: Uses NVIDIA Sana Sprint 1.6B via Replicate for sketch creation
-
Deploy to Vercel
vercel --prod
-
Set production environment variables in Vercel:
NEXT_PUBLIC_CONVEX_URL=your-prod-convex-url NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your-clerk-key CLERK_SECRET_KEY=your-clerk-secret
-
Deploy Convex to production
npx convex deploy --prod
-
Set production Convex environment variables
npx convex env set AIMLAPI_KEY your-key --prod npx convex env set REPLICATE_API_TOKEN your-token --prod
- Sign Up/Sign In: Create an account or sign in with existing credentials
- Create Story: Enter a detailed story prompt (minimum 20 characters)
- Generate: Click "Create CinemaSketch" to start the AI generation process
- View Results: Watch real-time progress and view completed cinematic sketches
- Manage: Access your previous storyboards from the sidebar
- "A detective investigates mysterious disappearances in a neon-lit cyberpunk city"
- "A robot making coffee in a modern kitchen while learning about human emotions"
- "Two astronauts discover an ancient alien artifact on Mars during a routine mission"
cinemasketch/
├── convex/ # Convex backend functions
│ ├── schema.ts # Database schema
│ ├── storyboards.ts # Storyboard CRUD operations
│ ├── scenes.ts # Scene management
│ ├── storyboardWorkflow.ts # AI story generation
│ ├── storyboardProcessor.ts # Image generation
│ └── auth.config.ts # Authentication configuration
├── src/
│ ├── app/ # Next.js app router
│ ├── components/ # React components
│ │ ├── ui/ # shadcn/ui components
│ │ ├── StoryCreator.tsx
│ │ ├── StoryboardViewer.tsx
│ │ └── AppLayout.tsx
│ └── lib/ # Utilities
├── public/ # Static assets
└── README.md
- Environment variables are properly isolated
- API keys are stored securely in Convex environment
- User authentication handled by Clerk
- No sensitive data exposed to client-side
- Story Generation: ~3-5 seconds using GPT-5-nano
- Image Generation: ~15-20 seconds per scene using NVIDIA Sana
- Complete Storyboard: ~60-90 seconds for 3-5 scenes
- Real-time Updates: Instant progress tracking via Convex
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Convex for the real-time backend platform
- Clerk for authentication services
- AI/ML API for text generation
- Replicate for NVIDIA Sana image generation
- shadcn/ui for beautiful UI components
For support, please open an issue in the GitHub repository or contact the development team.
Built with ❤️ for creative storytellers and filmmakers.