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

Function generate

main.py:30–39  ·  view source on GitHub ↗
(
    data: schemas.CustomModeGenerateParam, token: str = Depends(get_token)
)

Source from the content-addressed store, hash-verified

28
29@app.post("/generate")
30async def generate(
31 data: schemas.CustomModeGenerateParam, token: str = Depends(get_token)
32):
33 try:
34 resp = await generate_music(data.dict(), token)
35 return resp
36 except Exception as e:
37 raise HTTPException(
38 detail=str(e), status_code=status.HTTP_500_INTERNAL_SERVER_ERROR
39 )
40
41
42@app.post("/generate/description-mode")

Callers

nothing calls this directly

Calls 1

generate_musicFunction · 0.90

Tested by

no test coverage detected