API Documentation

Integrate DC's AI Music Generator into your applications and workflows.

Getting Started with our API

Authentication

All API requests require authentication using your API key. Include your key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Base URL

All API endpoints are available at:

https://api.aimusicgenerator.com/v1

API Rate Limits

  • Starter Plan: 100 requests/hour
  • Pro Plan: 1,000 requests/hour
  • Studio Plan: Unlimited requests

API Endpoints

POST /music/generate

Generate a new music track with AI

{ "style": "electronic", "tempo": "medium", "mood": "uplifting", "duration": 180, "key": "C" }
POST /songs/write

Generate song lyrics with AI

{ "theme": "love", "genre": "pop", "style": "verse-chorus-bridge", "language": "english" }
POST /voices/clone

Clone a voice from audio sample

{ "audio_url": "https://...", "name": "my_voice", "gender": "neutral" }
GET /status/{track_id}

Get the status of a generation request

Returns: status, progress, url (when ready)

Code Examples

Python Example

import requests

api_key = "your_api_key"
headers = ["Authorization: Bearer your_api_key"]

response = requests.post(
  "https://api.aimusicgenerator.com/v1/music/generate",
  headers=headers,
  json=["style: electronic", "tempo: fast"]
)

result = response.json()
print(result["id"])

Need Help with the API?

Check out our developer documentation or contact our developer support team.

Contact Developer Support