V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
gochendong

[开源] 最新版本 SUNO API 支持 v4

  •  
  •   gochendong · Nov 21, 2024 · 1627 views
    This topic created in 524 days ago, the information mentioned may be changed or developed.
    suno 没有官方 api

    star 数最多的两个 github (一个 python, 一个 js)都不可用, 需要融合在一起才行

    代码用了有大半年了 分享出来 欢迎 star issue

    https://github.com/gochendong/suno-api

    核心问题是鉴权
    解决方案:
    1. 利用旧版本 clerk 的身份验证, 跳过 captcha 验证
    2. 需要利用 cookie 和 session id 动态获取 token, 然后调用业务接口

    优势:
    增加了 cookie 过期的通知 (自定义 notify 函数) 一般过期时间是 90 天, 到期前一天会通知, 运行程序之后也能在打印台上看到到期时间
    2 replies    2024-11-22 15:16:15 +08:00
    waistcoat09
        1
    waistcoat09  
       Nov 22, 2024
    在 cookie 的解析上似乎出错了。浏览器登录 suno.com ,按要求把 f12 中的 cookie 的所有信息复制进去了。 但是 docker 起不来。
    gochendong
        2
    gochendong  
    OP
       Nov 22, 2024
    @waistcoat09 提个 issue 把报错贴上看看
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5420 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:28 · PVG 16:28 · LAX 01:28 · JFK 04:28
    ♥ Do have faith in what you're doing.