Slideshow Maker Image to Video
Editor
Back to Editor

API Documentation

Integrate QuickReel's video generation engine into your own application using our client-side messaging interface.

Client-Side API Only (No cURL)

QuickReel runs entirely in the browser using HTML5 Canvas and MediaRecorder APIs. It does not have a backend server. Therefore, you cannot use cURL, Postman, or Python requests to generate videos.

To use this API, you must embed the app in an <iframe> and communicate via JavaScript postMessage.

Browser Console Demo

You can test this right now! Open your browser's Developer Console (F12) on this page (or any page), paste the code below, and watch it generate a file download.

console-demo.js

// 1. Create and embed the iframe
const iframe = document.createElement('iframe');
iframe.src = window.location.origin; // Loads the current app
iframe.style.display = 'none'; 
document.body.appendChild(iframe);

// 2. Wait for the app to load
iframe.onload = () => {
  console.log("QuickReel engine loaded...");
  
  // 3. Send generation request
  iframe.contentWindow.postMessage({
    type: 'GENERATE_VIDEO',
    payload: {
      images: [
        'https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=800&q=80',
        'https://images.unsplash.com/photo-1472214103451-9374bd1c798e?w=800&q=80',
        'https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=800&q=80'
      ],
      config: {
        interval: 1.5,
        transition: 'FADE',
        imageFit: 'cover',
        fps: 30
      },
      format: 'webm'
    }
  }, '*');
};

// 4. Listen for the result
window.addEventListener('message', (event) => {
  if (event.data.type === 'VIDEO_GENERATED') {
    const { blob, url } = event.data.payload;
    
    console.log('✅ Video generated successfully!', blob.size, 'bytes');
    
    // Download the video automatically
    const a = document.createElement('a');
    a.href = url;
    a.download = 'api-generated-video.webm';
    document.body.appendChild(a);
    a.click();
    
    // Cleanup
    setTimeout(() => {
        document.body.removeChild(iframe); 
        URL.revokeObjectURL(url);
    }, 1000);
  } 
  
  if (event.data.type === 'VIDEO_ERROR') {
    console.error('❌ Generation failed:', event.data.error);
    document.body.removeChild(iframe);
  }
});
                    

Request Payload

Message Structure

type
'GENERATE_VIDEO'
payload
Object containing generation parameters

Video Config

Property Type Description
interval number Seconds per slide (e.g. 1.5)
transition string 'NONE' | 'FADE' | 'SLIDE_LEFT' | 'ZOOM_IN'
width number Video width in px
height number Video height in px
imageFit string 'contain' | 'cover'