MCPcopy Create free account
hub / github.com/ace-step/ACE-Step / TextToMusicRequest

Class TextToMusicRequest

trainer-api.py:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19app = FastAPI(title="Text-to-Music API")
20
21class TextToMusicRequest(BaseModel):
22 prompt: str
23 duration: int = 240 # Duration in seconds (default 240s)
24 infer_steps: int = 60
25 guidance_scale: float = 15.0
26 omega_scale: float = 10.0
27 seed: Optional[int] = None
28
29class TextToMusicResponse(BaseModel):
30 audio_path: str

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected