# Music Generator

To access hyunGPT's music generator and start making music with AI, use the `/music-generator` commands. We have two models: a simple version and a premium one.

The simple version allows for users to generate up to five second of decent-quality music. This is accessible via the `/music-generator simple` command. Here's how to use it:

1. Type `/music-generator simple` in the chat box and select the command.
2. In the `prompt` option, type what you want the music to sound like. For example, you could type "funky synth solo"!

Then, press enter. Processing usually completes under 10-15 seconds, but it depends on wait times. After it's complete, you should have something like this!

<figure><img src="https://4104538128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHDPRXkfREszhmwdGobaz%2Fuploads%2FCfeiR1hdJffoZMDswhIG%2Fimage.png?alt=media&#x26;token=ff69a73f-dd6d-4a89-b844-6d71f6be7399" alt=""><figcaption></figcaption></figure>

{% file src="<https://4104538128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHDPRXkfREszhmwdGobaz%2Fuploads%2FRqB4jpZRjky9wJna8kxb%2Fmusic.wav?alt=media&token=30c9a6fa-b0e6-4ac0-8845-873c12bf98c5>" %}

The premium model for music generation is able to generate up to thirty seconds of stunningly high-quality audio. To use it, you can use the `/music-generator premium` command...

1. Type `/music-generator premium` into the message box and select the command
2. For the `prompt` parameter, type what you would like the music to sound like. For example, you could type "funky synth solo"!
3. By default, it will generate eight seconds of music. You can change this with the `duration` parameter. E.g. duration: 30
4. Press enter! Your music should be generated within half a minute, but it depends on the current demand.

You should have something like this!

<figure><img src="https://4104538128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHDPRXkfREszhmwdGobaz%2Fuploads%2FCK8JYdr2WnZXFmlqvnVJ%2Fimage.png?alt=media&#x26;token=9cee01b2-1b8e-4203-93bf-4d7aa4b13b00" alt=""><figcaption></figcaption></figure>

{% file src="<https://4104538128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHDPRXkfREszhmwdGobaz%2Fuploads%2FjTOpVVkKOyMhwjaRzg19%2Fmusic.wav?alt=media&token=4cde6087-00af-403e-862f-64db1c56ceeb>" %}
