AI-powered video processing service
Description: Upload a video for processing.
Headers: Content-Type: multipart/form-data
Request Body:
video (file) - The video file to upload.Response:
{
"videoId": "UUID",
"transcript": "Extracted text from video",
"videoUrl": "URL to the uploaded video"
}
Description: Generate short clips from an uploaded video.
Headers: Content-Type: application/json
Request Body:
videoId (string) - ID of the uploaded video.numShorts (number) - Number of shorts to generate.videoUrl (string) - URL of the uploaded video.Response:
{
"videoId": "UUID",
"shorts": ["URL to short clip"],
"message": "All shorts generated successfully"
}
Description: Generate engaging thumbnails from a video.
Headers: Content-Type: multipart/form-data
Request Body:
video (file) - The video file.numThumbnails (number) - Number of thumbnails (1-3).Response:
{
"videoId": "UUID",
"thumbnails": ["URL to thumbnail images"],
"message": "All thumbnails generated successfully"
}
Description: Generate viral-optimized reels with catchy titles from an uploaded video.
Headers: Content-Type: application/json
Request Body:
videoId (string) - ID of the uploaded video.videoUrl (string) - URL of the uploaded video.numReels (number) - Number of viral reels to generate (max 5).Response:
{
"videoId": "UUID",
"reels": [
{
"url": "URL to reel clip",
"title": "Catchy viral-worthy title",
"description": "Brief description of content",
"hashtags": ["tag1", "tag2", "tag3"],
"viralScore": 8.5
}
],
"message": "All viral reels generated successfully",
"aiInsights": "Brief analysis of viral potential"
}
Description: Generate subtitle files (SRT and VTT) from a video with optional styled video.
Headers: Content-Type: multipart/form-data
Request Body:
video (file) - The video file to generate subtitles for.generateStyledVideo (string) - Set to 'true' to generate a video with styled subtitles.Response:
{
"videoId": "UUID",
"subtitles": {
"srt": "URL to SRT subtitle file",
"vtt": "URL to VTT subtitle file",
"styledVideo": "URL to video with styled subtitles (if requested)"
},
"message": "Subtitles generated successfully"
}
Description: Enhance and optimize an image thumbnail for better visual appeal.
Headers: Content-Type: multipart/form-data
Request Body:
image (file) - The image file to enhance (JPG/PNG recommended).Enhancements Applied:
Response:
{
"success": true,
"enhancedImageUrl": "URL to the enhanced thumbnail image"
}
Error Response:
{
"error": "Error message",
"details": "Additional error details if available"
}
Description: Generate trending hashtags based on video subtitles.
Headers: Content-Type: multipart/form-data
Request Body:
subtitles (file) - The subtitle file (SRT or VTT).platforms (string, optional) - Comma-separated list of platforms (default: "youtube,tiktok,instagram").hashtagCount (number, optional) - Number of hashtags to generate (default: 15, min: 5, max: 30).Response:
{
"videoId": "UUID",
"hashtags": ["#trending", "#viral", "#shorts"],
"analysis": "AI insights on hashtag relevance",
"message": "Hashtags generated successfully"
}
Error Response:
{
"error": "No subtitle file provided",
"suggestion": "Please upload an SRT or VTT file containing the video transcript"
}
Description: Check system health and resource usage.
Headers: None required
Request Body: None
Response: HTML dashboard showing:
Description: Get server information.
Headers: None required
Request Body: None
Response:
{
"name": "ShortReelX v2",
"version": "2.0.0",
"description": "AI-powered video processing service",
"nodeVersion": "v16.x.x",
"platform": "linux",
"uptime": 12345.67,
"startTime": "2025-03-23T12:34:56.789Z"
}
Description: Secure endpoint to gracefully shut down the server (admin only).
Headers: x-admin-token: [admin token]
Request Body: None
Response:
{
"message": "Server shutting down gracefully"
}