Melons API
Integrate AI music generation capabilities into your products, providing royalty-free, high-quality audio solutions
Powerful AI Music Generation Capabilities
Real-time Generation
Generate high-quality music works in real-time based on text descriptions and parameter settings, with response times under 200 milliseconds.
Multiple Styles
Support over 50 music styles including pop, rock, jazz, classical, electronic, and more to meet different scenario needs.
Royalty-free
All generated music is royalty-free and can be safely used in commercial projects without copyright concerns.
Easy Integration
Provide RESTful API and SDKs for multiple programming languages, simple integration with comprehensive documentation.
Highly Customizable
Support custom parameters such as duration, mood, instrument combinations, etc., to generate music that matches brand tone.
Intelligent Analysis
AI analyzes content emotion and style, automatically recommending the most suitable music types and parameter settings.
API Documentation
curl -X POST "https://api.melon.com/api/v1/music/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Light pop music, suitable for summer advertisements",
"duration": 30,
"style": "pop",
"mood": "happy",
"tempo": "medium"
}'
const response = await fetch('https://api.melon.com/api/v1/music/generate', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
prompt: 'Light pop music, suitable for summer advertisements',
duration: 30,
style: 'pop',
mood: 'happy',
tempo: 'medium'
})
});
const music = await response.json();
console.log(music.audio_url);
import requests
url = "https://api.melon.com/api/v1/music/generate"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"prompt": "Light pop music, suitable for summer advertisements",
"duration": 30,
"style": "pop",
"mood": "happy",
"tempo": "medium"
}
response = requests.post(url, headers=headers, json=data)
music = response.json()
print(music['audio_url'])
{
"success": true,
"data": {
"id": "music_123456",
"audio_url": "https://cdn.melon.com/music/music_123456.mp3",
"duration": 30,
"style": "pop",
"mood": "happy",
"tempo": "medium",
"created_at": "2024-01-15T10:30:00Z"
}
}
curl -X GET "https://api.melon.com/api/v1/music/styles" \
-H "Authorization: Bearer YOUR_API_KEY"
Apply for API Access
Fill Application
Provide your project information and expected usage scenarios, we will respond within 24 hours.
Technical Integration
Our technical team will work with you to provide API keys and detailed technical documentation.
Start Integration
Use the provided SDK and sample code to quickly integrate AI music generation functionality.
Launch Operations
Monitor API usage and enjoy 7x24 technical support and optimization recommendations.