Transform Any Media File in Seconds
FFmpeg API turns complex video and audio processing into simple HTTP requests. Convert formats, resize videos, extract audio, add watermarks, create GIFs, and run any FFmpeg operation—without managing servers, installing software, or learning complex command-line syntax.
Instant Processing
Upload, process, download. Get results in seconds, not minutes.
No Infrastructure
Skip server setup, FFmpeg installation, and scaling headaches.
Developer-First
RESTful API designed for modern applications and workflows.
Quick Example: Convert GIF to MP4
Here’s how simple it is to convert a GIF to MP4 using JavaScript:
// 1. Get upload URL
const fileRes = await fetch('https://api.ffmpeg-api.com/file', {
method: 'POST',
headers: {
'Authorization': 'Basic YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({ file_name: 'input.gif' })
});
const { file, upload } = await fileRes.json();
// 2. Upload your GIF
await fetch(upload.url, {
method: 'PUT',
body: gifFile
});
// 3. Convert to MP4
const processRes = await fetch('https://api.ffmpeg-api.com/ffmpeg/process', {
method: 'POST',
headers: {
'Authorization': 'Basic YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
task: {
inputs: [{ file_path: file.file_path }],
outputs: [{ file: 'output.mp4' }]
}
})
});
const result = await processRes.json();
// Download your MP4 from result[0].download_url
How It Works
Upload Files
Get secure upload URLs for your media files
Process
Send processing tasks with FFmpeg options
Download
Get download URLs for processed files
Integrate
Build powerful media features in your app
What You Can Build
🎬 Video Processing
- • Convert between formats (MP4, WebM, AVI, MOV)
- • Resize and crop videos
- • Add watermarks and overlays
- • Create thumbnails and previews
- • Adjust bitrate and quality
🎵 Audio Processing
- • Extract audio from videos
- • Convert audio formats (MP3, WAV, AAC)
- • Normalize audio levels
- • Trim and split audio files
- • Mix multiple audio tracks
Core Endpoints Overview
Essential API Endpoints
POST /file
Get secure upload URL for your files
POST /ffmpeg/process
Process files with FFmpeg commands
POST /directory
Create workspace for organizing files (optional)
Authentication Required: All endpoints use Basic Auth with your API key. Get yours from the Dashboard.
Ready to Start?
🚀 Quick Start
Complete workflow in 5 minutes. Upload, process, download.
📖 Code Examples
Ready-to-use code in JavaScript, Python, and more.
🔗 Integrations
Build no-code video workflows with SmythOS or n8n.
📚 API Reference
Complete endpoint documentation and specifications.
New to FFmpeg API? Start with our Quick Start Guide for a complete walkthrough, or jump into Examples to see real code in action.