Overview
The Grant API provides rapid video generation optimized for speed and real-time applications. This endpoint prioritizes quick turnaround times while maintaining good quality, making it perfect for answering quick questions and handling multiple sequential queries. Ideal for social media content, quick demos, and interactive applications.Grant videos generate in 20-30 seconds, ideal for applications requiring immediate video output.
WebSocket Endpoint
Authentication
Include your API key in the WebSocket payload:Request Parameters
Must be set to
"finetuned_live_gen"The content or topic for your video (e.g., “explain integrals”)
Your Knowlify API key for authentication
Code Examples
WebSocket Responses
The WebSocket connection will send real-time updates throughout the video generation process:Progress Updates
Completion Response
Error Response
Response Fields
Download URL for the generated video
URL for the WebVTT subtitle file with synchronized captions
Generation status:
completed, failedGeneration progress as percentage (0-100) - only in progress messages
Human-readable status message - only in progress and error messages
Error code for debugging - only in error messages
