Prerequisites
Before you begin, you’ll need:- A Bluma account (sign up here)
- An API key (create one here)
- A command line tool like
curlor an HTTP client
New to APIs? Don’t worry! This guide will walk you through everything step by step.
Step 1: Get Your API Key
- Log in to your Bluma dashboard
- Navigate to API Keys
- Click Create API Key
- Choose Test environment for development
- Copy and save your API key (it’s only shown once!)
Step 2: Explore Available Templates
Let’s see what video templates are available:View Response
View Response
Step 3: Generate Your First Video
Now let’s create a video using theconsumerclub-discord-zoomed template:
View Response
View Response
Step 4: Check Video Status
Video generation is asynchronous. Check the status using theid from the response:
View Response (Processing)
View Response (Processing)
View Response (Completed)
View Response (Completed)
Step 5: Download Your Video
Once the status iscompleted, get a signed download URL:
View Response
View Response
download_url is a temporary signed URL that expires in 1 hour. Download your video before it expires!
Code Examples
Node.js / TypeScript
Python
Next Steps
Set Up Webhooks
Get notified when videos are ready instead of polling
Explore Templates
Learn about all available video templates
Production Setup
Switch from test to production mode
Best Practices
Optimize your integration for reliability and performance
Common Issues
401 Authentication Error
401 Authentication Error
Make sure your API key is correct and included in the
Authorization header as Bearer YOUR_API_KEY.402 Insufficient Credits
402 Insufficient Credits
Check your credit balance at
/v1/credits/balance. Upgrade your plan or purchase more credits.Video generation is taking too long
Video generation is taking too long
Video generation typically takes 2-5 minutes depending on the template. Complex templates with AI generation may take longer. Consider using webhooks instead of polling.
Support
Need help? We’re here:- Email: stephen@getbluma.com