Music Generation
Generate music from text prompts
Music Generation API
The Music Generation API allows you to create original music tracks from text prompts. Powered by advanced AI models, it can generate various musical styles, instrumentation, and moods.
Overview
Create AI-generated music by providing text prompts that describe the style, mood, and instrumentation you want. The API handles the request asynchronously:
- Submit a generation request with your prompt
- Receive a task ID for tracking
- Check the status until completion
- Download the generated music file
The OpenAPI playground above allows you to test music generation. Provide a detailed prompt describing the music you want to create.
Base URL
Request Format
Parameters
Detailed description of the music you want to generate
Comma-separated list of genre tags
Title for the generated track
Model version to use
Response Format
Unique identifier for the generation task
Estimated time in seconds until completion
Checking Generation Status
Once you have a task_id
, you can check the status of the music generation:
Status Response Format
Status codes:
queued
: Task is in the queueprocessing
: Music is being generatedcompleted
: Generation is completefailed
: Generation failed
Prompt Tips
Example Prompts
Limitations
- Generated tracks are typically 1-2 minutes in length
- Specific artist names should be used as inspiration only, not direct copying
- Vocals are generated in a fictional language
- Maximum of 50 active generations per account at once
Authorizations
Enter your API key prefixed with 'Bearer '
Response
Successful response
Was this page helpful?