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

Function fetch_credits

main.py:96–103  ·  view source on GitHub ↗
(token: str = Depends(get_token))

Source from the content-addressed store, hash-verified

94
95@app.get("/get_credits")
96async def fetch_credits(token: str = Depends(get_token)):
97 try:
98 resp = await get_credits(token)
99 return resp
100 except Exception as e:
101 raise HTTPException(
102 detail=str(e), status_code=status.HTTP_500_INTERNAL_SERVER_ERROR
103 )

Callers

nothing calls this directly

Calls 1

get_creditsFunction · 0.90

Tested by

no test coverage detected