Skip to content

Commit 419a88e

Browse files
authored
Merge pull request #193 from gohoski/patch-1
Update BASE_URL and implement hCaptcha solving
2 parents 708b03c + 98affeb commit 419a88e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/SunoApi.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface AudioInfo {
2828
}
2929

3030
class SunoApi {
31-
private static BASE_URL: string = 'https://studio-api.suno.ai';
31+
private static BASE_URL: string = 'https://studio-api.prod.suno.com';
3232
private static CLERK_BASE_URL: string = 'https://clerk.suno.com';
3333
private static JSDELIVR_BASE_URL: string = 'https://data.jsdelivr.com';
3434

@@ -237,9 +237,10 @@ class SunoApi {
237237
): Promise<AudioInfo[]> {
238238
await this.keepAlive(false);
239239
const payload: any = {
240-
make_instrumental: make_instrumental == true,
240+
make_instrumental: make_instrumental,
241241
mv: model || DEFAULT_MODEL,
242-
prompt: ''
242+
prompt: '',
243+
generation_type: 'TEXT'
243244
};
244245
if (isCustom) {
245246
payload.tags = tags;

0 commit comments

Comments
 (0)