Skip to main content

Udio Music Generator

Generate original music compositions using Udio AI with advanced features including flexible lyric types, negative tags for better control, and seed reproduction for consistent results.

Parameters

ParameterTypeRequiredDescription
typestringYesMust be "MUSIC_GENERATOR"
modelstringYesMust be "music-u"
conversationIdstringNoConversation ID for context
promptObjectobjectYesUdio-specific parameters

Prompt Object Parameters

ParameterTypeRequiredDescription
lyrics_typestringYesType of lyrics: "generate", "instrumental", "user"
task_typestringYesType of task, must be "generate_music"
gpt_description_promptstringYesDescribe the style and mood of music
promptstringNoCustom lyrics (when lyrics_type is "user")
make_instrumentalbooleanNoWhether to create instrumental version
titlestringNoSong title
tagsstringNoGenre tags, comma-separated
negative_tagsstringNoTags to avoid, comma-separated
seednumberNoRandom seed (-1 for random)

Interactive API Testing

API Playground

https://api.1min.ai/api/features

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "MUSIC_GENERATOR",
"model": "music-u",
"conversationId": "MUSIC_GENERATOR",
"promptObject": {
"lyrics_type": "generate",
"task_type": "generate_music",
"gpt_description_prompt": "upbeat electronic dance music with energetic beats",
"prompt": "",
"make_instrumental": false,
"title": "",
"tags": "electronic, dance, upbeat",
"negative_tags": "slow, acoustic",
"seed": -1
}
}'

Response Format

Successful requests return:

{}

Example Requests

Electronic Dance Music

{
"type": "MUSIC_GENERATOR",
"model": "music-u",
"promptObject": {
"lyrics_type": "generate",
"task_type": "generate_music",
"gpt_description_prompt": "high-energy electronic dance music with pulsing synths and driving beats",
"tags": "electronic, dance, EDM, synth",
"negative_tags": "acoustic, slow",
"make_instrumental": false
}
}

Custom Lyrics Folk Song

{
"type": "MUSIC_GENERATOR",
"model": "music-u",
"promptObject": {
"lyrics_type": "user",
"task_type": "generate_music",
"gpt_description_prompt": "gentle folk song with acoustic guitar and soft vocals",
"prompt": "Walking down the winding road\nCarrying my heavy load\nSunshine breaks through cloudy skies\nHope is dancing in my eyes",
"tags": "folk, acoustic, gentle",
"title": "Winding Road"
}
}

Instrumental Jazz

{
"type": "MUSIC_GENERATOR",
"model": "music-u",
"promptObject": {
"lyrics_type": "instrumental",
"task_type": "generate_music",
"gpt_description_prompt": "smooth jazz with saxophone, piano, and walking bass line",
"tags": "jazz, smooth, instrumental, saxophone",
"negative_tags": "vocals, rock",
"make_instrumental": true
}
}