From 98affeb2a78915eae74f5d04c8051191306e4737 Mon Sep 17 00:00:00 2001 From: Gleb Date: Sat, 16 Nov 2024 23:10:45 +0300 Subject: [PATCH] Update BASE_URL --- src/lib/SunoApi.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/SunoApi.ts b/src/lib/SunoApi.ts index 5eead26..9453562 100644 --- a/src/lib/SunoApi.ts +++ b/src/lib/SunoApi.ts @@ -28,7 +28,7 @@ export interface AudioInfo { } class SunoApi { - private static BASE_URL: string = 'https://studio-api.suno.ai'; + private static BASE_URL: string = 'https://studio-api.prod.suno.com'; private static CLERK_BASE_URL: string = 'https://clerk.suno.com'; private static JSDELIVR_BASE_URL: string = 'https://data.jsdelivr.com'; @@ -237,9 +237,10 @@ class SunoApi { ): Promise { await this.keepAlive(false); const payload: any = { - make_instrumental: make_instrumental == true, + make_instrumental: make_instrumental, mv: model || DEFAULT_MODEL, - prompt: '' + prompt: '', + generation_type: 'TEXT' }; if (isCustom) { payload.tags = tags;