AI Video Editor API for Developers
AI Video Editor API
Edit videos with natural-language instructions through the Magic Hour API.
Free credits on signup
Transparent per-credit pricing
Official SDKs
Asynchronous jobs
Auto-scaling
Trusted by teams at
Everything You Need to Ship AI Video Editor
Build reliable video editing into your product without managing model infrastructure.
Production-Ready Output
Create consistent video editing results through one documented endpoint.
Asynchronous Processing
Submit jobs, poll status, and retrieve outputs without blocking your application.
Fast Integration
Use REST directly or start with official Python, Node.js, Go, and Rust SDKs.
Commercial Workflows
Build customer-facing applications with predictable usage-based pricing.
Integrate in 3 Steps
Add video editing to your application in three steps.
1
Get an API Key
Create a Magic Hour account and copy your key from the Developer dashboard.
2
Submit a Request
Upload any required assets and send the documented video editing request.
3
Retrieve the Result
Poll the project endpoint or use webhooks, then download the completed output.
Code Examples
AI Video Editor in a few lines of code. Install an SDK or use the REST API directly.
from magic_hour import Client
from os import getenv
client = Client(token=getenv("MAGIC_HOUR_API_KEY"))
res = client.v1.ai_video_editor.generate(
assets={"video_file_path": "/path/to/1234.mp4"},
end_seconds=5.0,
style={"prompt": "Change the car color to blue"},
model="ltx-2.5",
name="My Video Editor video",
resolution="480p",
start_seconds=0.0,
wait_for_completion=True,
download_outputs=True,
download_directory="."
)Estimate Your API Costs
Choose your settings and volume to estimate the credits and cost.
API Calculator
How will you use the API?
For projects with recurring generation needs.
≈ 100 videos of 5 seconds each
Estimated monthly usage
27,000 Credits
≈ 100 videos (5 sec each) · $0.0764/sec
Based on your selected model, resolution, and usage volume. Rate assumes you use all included credits.
Best plan for your usage
Business
For teams, agencies, and high-volume content
$99
/ month
Billed monthly
-33%
$99
$66
/ month · $792 billed yearly
Save $396 compared to monthly
70,000 credits per month
Up to 48.6 min of video
Up to 14,000 images
OR
All payment optionsEstimates in USD. Final price and currency shown at checkout.
SDKs for Every Stack
Official open-source SDKs with full TypeScript/type support. Install and start building.
AI Video Editor API Pricing
Subscription plans for standard usage.
Need usage-based billing?
Email us or message us in Intercom for monthly billing with graduated volume discounts.
Built for Builders
See how developers use the AI Video Editor API to power real products.
Video Apps
Add video editing to video apps.
Automated Editing
Automate video editing for automated editing.
Creative Workflows
Create scalable creative workflows with the API.
Try before integrating
Try AI Video Editor Free — No Code Required
Test quality first with the free tool, then plug the same output quality into your app with the API when you are ready.
AI Video Editor API FAQ
Get an API key, follow the AI Video Editor endpoint documentation, submit the required inputs, and retrieve the completed project.
Yes. New accounts receive free credits for testing. Paid plans and usage-based billing support production workloads.
Magic Hour provides official SDKs for Python, Node.js, Go, and Rust, plus direct REST access.