Documentation

Music Generation

Generate original, royalty-free music from text descriptions

Overview

Wubble's music generation feature allows you to create custom, original music from simple text descriptions. Whether you need background music for videos, podcasts, presentations, or full production tracks, Wubble can generate high-quality audio that matches your exact specifications.

What You Can Create

  • Background music for videos and podcasts
  • Custom soundtracks for games and films
  • Branded audio identities
  • Ambient music for spaces and events
  • Production music for commercials

How It Works

Wubble uses advanced AI models trained on millions of songs to understand musical concepts like genre, mood, tempo, and instrumentation. Simply describe what you want in natural language, and Wubble generates original music that matches your description.

Example Prompt

Text Prompttext
"Create upbeat electronic music for a tech product demo. 
Duration: 2 minutes. 
Style: Modern, energetic, with synthesizers and electronic drums. 
Mood: Inspiring and innovative."

The more specific you are with your description, the better the results. Include details about:

  • Genre/Style: Electronic, rock, jazz, classical, hip-hop, etc.
  • Mood/Emotion: Upbeat, melancholic, energetic, calm, dramatic, etc.
  • Instruments: Specific instruments you want to hear
  • Tempo: Fast, slow, moderate, or specific BPM
  • Duration: How long the track should be
  • Use Case: What the music will be used for

Generation Options

Text-to-Music

The simplest way to generate music. Describe what you want in natural language, and Wubble creates it for you.

Style Reference

Upload a reference track or select from our style library to guide the generation. Wubble will create original music with similar characteristics.

Music Extension

Have a short clip you love? Wubble can extend it naturally, maintaining the style and energy while creating new material.

Remixing

Transform existing tracks by changing genre, tempo, or instrumentation while maintaining the core musical ideas.

Advanced Controls

For more precise control over your music generation:

Structure Control

Specify intro, verse, chorus, bridge, and outro sections with durations

Key & Scale

Choose specific keys and scales for your music (C Major, A Minor, etc.)

Tempo Lock

Set exact BPM for precise synchronization

Instrumentation

Specify which instruments to include or exclude

Using the API

Generate music programmatically with our API:

API Example
const response = await fetch('https://prod-backup-backend.wubble.ai/v1/music/songs', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.WUBBLE_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': crypto.randomUUID(),
  },
  body: JSON.stringify({
    prompt:
      'Upbeat electronic music with modern feel, energetic mood, synth leads and electronic drums',
  }),
});

const payload = await response.json();
console.log('Request ID:', payload.data.request_id);
// Poll: GET /v1/requests/:requestId

See the Music API Reference for complete documentation.

Best Practices

  • Be Specific: Detailed prompts yield better results
  • Iterate: Generate multiple variations and refine
  • Use References: Provide style references when possible
  • Consider Context: Describe how the music will be used
  • Test Lengths: Generate shorter versions first to validate direction

Related Topics

Was this page helpful?