MCPcopy Index your code
hub / github.com/SunoAI-API/Suno-API / generate_music

Function generate_music

utils.py:46–50  ·  view source on GitHub ↗
(data, token)

Source from the content-addressed store, hash-verified

44
45
46async def generate_music(data, token):
47 headers = {"Authorization": f"Bearer {token}"}
48 api_url = f"{BASE_URL}/api/generate/v2/"
49 response = await fetch(api_url, headers, data)
50 return response
51
52
53async def generate_lyrics(prompt, token):

Callers 2

generateFunction · 0.90

Calls 1

fetchFunction · 0.85

Tested by

no test coverage detected