gochendong / suno-api

suno api - AI music generation
MIT License
23 stars 8 forks source link

Token Validation Failed #5

Open VanshAnakin opened 6 days ago

VanshAnakin commented 6 days ago

422 - {"detail": "Token validation failed."}

gochendong commented 6 days ago

create a song in your browser and retry

VanshAnakin commented 6 days ago

This error is due to the hcaptcha token validation which is valid for 2 hours can we do something to automate that.

StJimmy3488 commented 3 days ago

First of all, @gochendong, hats off for your script. Second, i think the only way to bypass invisible hcaptcha is using selenium making requests every now and then.

Germey commented 2 days ago

Actually SUNO hCaptcha detected not only the captcha result, but also detect the mouse path, clicking behavior, etc. The crack result token contains all of the behavior infos. And SUNO can know if you are a real human according to the final hCaptcha crack token.

So, the only way is you need to totally simulate the human behavior of hCaptcha using browser, otherwise you will always get "This is a fake app....", even though you cracked it.

I have successfully cracked using above solution, and now it works well now, and the result does not contains "This is a fake app anymore".

Also I exposed and provided above API for suno, but paid, just FYI if you are interested: