MiniMax Music API

The model's architecture supports musical pattern recognition and generation across multiple genres including classical, pop, rock, and electronic music

Get API Key
Product

Features

Its API streamlines audio processing workflows by abstracting complex music synthesis operations into high-level function calls.

Generate Music by Prompt

With MiniMax, you can effortlessly create music tracks based on detailed descriptive prompts.
AI/ML API
API Serenade
Play buttonPause button
0:00
0:00
https://od.lk/s/Ml8yMzIwMDQ5MDdf/output.mp3

Dual-stream architecture

Dual-stream synthesis architecture supporting simultaneous vocal and instrumental generation

Reference-based

Reference-based learning system for style transfer and pattern extraction

Multi-genre support

Multi-genre support spanning classical, pop, rock, electronic, and additional musical domains

Get API Key

How It Works

Content Creation Generate unique background music for social media content, YouTube videos, and other digital platforms while avoiding copyright issues.
Inspired by Beatles
Yesterday's Dreams
Play buttonPause button
0:00
0:00
https://od.lk/s/Ml8yMzIwMDQ5MDhf/output%20%281%29.mp3

Media soundtrack generation

Integration with film and video production workflows enables rapid creation of custom soundtracks that match specific scene moods and timing requirements.

Virtual Artist Vocal Synthesis

Generate complete vocal performances from text input, allowing producers to create virtual artist content with controllable style and emotional characteristics.

Style transfer

Transform existing musical pieces into different genres while maintaining core melodic elements, enabling creative reinterpretation of classical works into modern styles.

Get API Key

API Endpoints

Generate music with prompt and reference

Reference-based learning extracts musical patterns and style elements from input audio to generate new content with similar characteristics.

import requests
def main():
    url = "https://api.aimlapi.com/v2/generate/audio"
    payload = {
        "model": "minimax-music",
        "prompt": "## Fast and Limitless. In the heart of the code, where dreams collide, FALs the name, taking tech for a ride. Generative media, blazing the trail, Fast inference power, we'll never fail.##",
        "reference_audio_url": "https://cdn.aimlapi.com/squirrel/files/zebra/WzNbqH7vR20MNTOD1Ec7k_output.mp3",
    }
    headers = {"Authorization": "Bearer <YOUR_API_KEY>", "Content-Type": "application/json"}
    response = requests.post(url, json=payload, headers=headers)
    print("Generation:", response.json())
if __name__ == "__main__":
    main()
import requests
def main():
    url = "https://api.aimlapi.com/v2/generate/audio"
    params = {
        "generation_id": "<YOUR_GENERATION_ID>",
    }
    headers = {"Authorization": "Bearer <YOUR_API_KEY>", "Content-Type": "application/json"}
    response = requests.get(url, params=params, headers=headers)
    print("Generation:", response.json())
if __name__ == "__main__":
    main()

To get the generated audio

This reference-based system forms the core of Music-01's ability to understand and reproduce musical styles while maintaining creative flexibility and output quality.

Get API Key

Ready to get started? Get Your API Key Now!

Get API Key