Integrate the MP4 to GIF converter into your applications using URL parameters. Works from any domain with full CORS support!
| Parameter | Aliases | Description | Example |
|---|---|---|---|
video |
mp4, url, video_url, videourl, src | Video URL to convert | video=https://example.com/video.mp4 |
quality |
q | Quality level (1-6) | quality=6 (lossless) |
start |
start_time, starttime | Start time in seconds | start=10.5 |
duration |
length, time | Duration in seconds | duration=5 |
fps |
framerate | Frame rate override | fps=24 |
autoConvert |
auto, convert, autoconvert | Auto-start conversion | autoConvert=true |
// Method 1: Direct redirect
function convertVideo(videoUrl, options = {}) {
const baseURL = 'https://fal-vid-to-vid-lg.loomyloo.app/';
const params = new URLSearchParams({
video: videoUrl,
quality: options.quality || 4,
duration: options.duration || 5,
autoConvert: 'true'
});
window.open(baseURL + '?' + params.toString(), '_blank');
}
// Method 2: Generate link for user
function getConverterLink(videoUrl, options = {}) {
return window.generateConverterURL('https://fal-vid-to-vid-lg.loomyloo.app/', {
video_url: videoUrl,
quality: options.quality || 4,
start_time: options.start || 0,
duration: options.duration || 5,
fps: options.fps || 15,
auto_convert: true
});
}
// React component example
const VideoToGifButton = ({ videoUrl, quality = 4 }) => {
const handleConvert = () => {
const converterURL = `https://fal-vid-to-vid-lg.loomyloo.app/?video=${encodeURIComponent(videoUrl)}&quality=${quality}&autoConvert=true`;
window.open(converterURL, '_blank');
};
return (
<button onClick={handleConvert}>
Convert to GIF
</button>
);
};
For programmatic access, use the REST API endpoint:
POST /api/proxy/mp4-to-gif Content-Type: application/json CORS: โ All origins, methods, headers allowed
{
"video_url": "https://example.com/video.mp4",
"fps": 15,
"max_width": 720,
"start_time": 0,
"duration": 5,
"quality": "high"
}
{
"success": true,
"gif_data": "data:image/gif;base64,R0lGODlh...",
"gif_url": "data:image/gif;base64,R0lGODlh...",
"size_kb": 1234,
"settings": {
"width": 720,
"fps": 15,
"duration": 5,
"start_time": 0
}
}
Convert gameplay recordings to shareable GIFs
Quick GIF creation for social sharing
Export segments as high-quality GIFs
Use this in your browser console to generate test URLs:
// Test URL generation (BASE_URL is already defined)
const testURL = window.generateConverterURL(window.BASE_URL, {
video_url: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
quality: 4,
start_time: 10,
duration: 5,
fps: 20,
auto_convert: true
});
console.log('Test URL:', testURL);
window.open(testURL, '_blank');
// Or use the quick test function
testConverterIntegration();
| Level | Name | Max Width | FPS | Best For |
|---|---|---|---|---|
1 |
Low | 320px | 8 FPS | Small files, quick sharing |
2 |
Medium | 480px | 12 FPS | Standard web GIFs |
3 |
High | 720px | 15 FPS | HD quality GIFs |
4 |
Very High | 1080px | 20 FPS | Full HD presentations |
5 |
Ultra | 1440px | 25 FPS | Professional workflows |
6 |
Lossless | Original | 30 FPS | Maximum quality |
Your MP4 to GIF converter is now ready for integration from any domain!
Try Live Converter Live API Docs