Prerequisites

Before you begin, you’ll need:
  1. A Bluma account (sign up here)
  2. An API key (create one here)
  3. A command line tool like curl or 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

  1. Log in to your Bluma dashboard
  2. Navigate to API Keys
  3. Click Create API Key
  4. Choose Test environment for development
  5. Copy and save your API key (it’s only shown once!)
Never commit your API key to version control or share it publicly. Store it as an environment variable.

Step 2: Explore Available Templates

Let’s see what video templates are available:

Step 3: Generate Your First Video

Now let’s create a video using the consumerclub-discord-zoomed template:
Test Mode: Videos generated with test API keys are watermarked and don’t consume credits. Perfect for development!

Step 4: Check Video Status

Video generation is asynchronous. Check the status using the id from the response:

Step 5: Download Your Video

Once the status is completed, get a signed download URL:
The 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

Make sure your API key is correct and included in the Authorization header as Bearer YOUR_API_KEY.
Check your credit balance at /v1/credits/balance. Upgrade your plan or purchase more credits.
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: