- Create an API key
- Install an SDK (optional)
- Generate your first asset
1. Create your account
- Visit the Magic Hour Developer Hub and sign in.
- Click
Create API Key
. - Name the key, then click
Create key
. - Copy the API key and save it.
2. Install SDK (Optional)
SDKs reduce boilerplate. Skip to the Step 3 if you’re not planning on using our SDKs.
3. Generate your first asset
The
.generate
function is only available in the following SDKs:- Python SDK v0.36.0 or later.
- Node SDK v0.37.0 or later.
🎉 Congratulations! You have successfully created an image and a video on Magic Hour!
Next Steps
- Explore the API Reference: Learn how to generate and edit videos and images programmatically. API Reference →
- Use the Web App: Try more tools and experiment interactively at magichour.ai.
- Handle Results at Scale: Set up webhooks to process results async and avoid polling.
- Join the Community: Get help, share projects, and see what others are building in Discord.
- Stay Updated: Check out the Changelog for new products and API updates.
Prefer fast iteration inside your editor? Install this documentation as an MCP server to get
contextual help while integrating the Magic Hour API. Learn more.