feat: added ACE-Step 1.5 powered remix API

This commit is contained in:
Clement Tian on Paperspace
2026-04-29 01:41:26 +00:00
parent 162d7b675f
commit 3baf637356
3 changed files with 163 additions and 0 deletions
+37
View File
@@ -211,6 +211,43 @@ async def fullsong_generate(req: FullsongGenerateRequest):
}
@app.post(
"/v1/fullsong/remix",
tags=["fullsong"],
summary="Submit a remix/cover task (ACE-Step 1.5)",
)
async def fullsong_remix(
audio_file: UploadFile = File(...),
caption: Optional[str] = Form(None),
lyrics: Optional[str] = Form(None),
instrumental: Optional[bool] = Form(None),
inference_steps: Optional[int] = Form(None),
guidance_scale: Optional[float] = Form(None),
use_random_seed: Optional[bool] = Form(None),
seed: Optional[int] = Form(None),
thinking: Optional[bool] = Form(None),
batch_size: Optional[int] = Form(None),
audio_format: Optional[str] = Form(None),
audio_cover_strength: float = Form(0.5),
cover_noise_strength: float = Form(0.2),
):
"""Mock remix endpoint — accepts the same multipart form as the real server."""
_require("fullsong")
task_id = str(uuid.uuid4())
_tasks[task_id] = {"created_at": time.time(), "model_filename": None}
return {
"data": {
"task_id": task_id,
"status": "queued",
"queue_position": 1,
},
"code": 200,
"error": None,
"timestamp": int(time.time() * 1000),
"extra": None,
}
@app.get(
"/v1/fullsong/result/{task_id}",
tags=["fullsong"],