Introduction
The MoneyPrinter API is a REST API for automated video generation. It provides endpoints for creating video generation jobs, monitoring their progress, and managing background music uploads.Base URL
The API server runs locally on:/api.
Authentication
Currently, the API does not require authentication. All endpoints are publicly accessible on the local server.Request Format
The API accepts JSON request bodies for POST endpoints:multipart/form-data:
Response Format
All API responses follow a consistent JSON structure with astatus field:
Success Response
Error Response
HTTP Status Codes
The API uses standard HTTP status codes:200- Success400- Bad Request (missing required fields, invalid input)404- Not Found (job or resource doesn’t exist)500- Internal Server Error
Job-Based Workflow
Video generation is asynchronous and follows a job-based workflow:- Submit a job via
POST /api/generate- Returns ajobId - Poll job status via
GET /api/jobs/:id- Check state (queued, running, completed, failed) - Stream events via
GET /api/jobs/:id/events- Get real-time progress updates - Cancel if needed via
POST /api/jobs/:id/cancel- Request job cancellation - Retrieve result from the
resultPathfield when state iscompleted