Music Generation - Generate from text
Generate original music tracks from text descriptions using AI.
Create high-quality music compositions based on your text prompts. Specify genre, mood, instruments, and tempo to get exactly the sound you need. Perfect for video production, game development, podcasts, and multimedia projects.
Tips for effective prompts:
- Include genre: “jazz”, “electronic”, “classical”, “rock”
- Describe mood: “upbeat”, “melancholic”, “energetic”, “peaceful”
- Mention instruments: “piano”, “guitar”, “drums”, “synthesizer”
- Add tempo hints: “slow”, “fast-paced”, “moderate groove”
Authorizations
Your Magnific API key. Required for authentication. Learn how to obtain an API key
Body
Text description of the music you want to generate. Be specific about the style, mood, instruments, tempo, and genre for best results.
Tips for effective prompts:
- Include genre: "jazz", "electronic", "classical", "rock"
- Describe mood: "upbeat", "melancholic", "energetic", "peaceful"
- Mention instruments: "piano", "guitar", "drums", "synthesizer"
- Add tempo hints: "slow", "fast-paced", "moderate groove"
2500"A Blues guitar solo with emotional bends and slides"
Duration of the generated music track in seconds.
Duration limits:
- Minimum: 10 seconds
- Maximum: 240 seconds (4 minutes)
Common durations:
- 30 seconds
- 60 seconds (1 minute)
- 120 seconds (2 minutes)
- 240 seconds (4 minutes)
10 <= x <= 24060
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
Response
OK - The task exists and the status is returned
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED",
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
]
}