Skip to main content
Use Magic Hour’s audio tools to generate music, synthesize speech from text, or create a reusable voice from a reference recording.

AI Voice Generator

Generate speech from text with available voices.

AI Music Generator

Generate a 15–300 second track from a description, with optional lyrics or instrumental output.

AI Voice Cloner

Clone a voice from a reference audio sample.

Music generation

Music costs 1 credit per requested second. Set duration and style.prompt; use style.instrumental: true for music without vocals, or supply style.lyrics for custom lyrics. The create response returns a project ID. Keep it and poll Get Audio Details until the project is complete, then retrieve the result from downloads.

Create and save a track

After setting up your API key and Python SDK, run this example to save a 15-second instrumental track for 15 credits.
Python
If waiting or downloading stops, use Get Audio Details with the printed project ID to retrieve the same track.