项目
在 GitHub 查看
SunoAI-API/Suno-API
SunoAI-API/Suno-API has 1,821 GitHub stars and 281 forks. GitHot measured +1 stars in 24 hours and +3 in 7 days. Last checked 2026-11-09 00:23 UTC. Last push 2025-04-26.
Create Music in Seconds with SunoAPI.
可以做什么
- Automatic token maintenance and keep-alive
- Fully asynchronous, fast, suitable for later expansion
- Simple code, easy to maintain, convenient for secondary development
实测星标增长
- 24小时
- +1
- 7天
- +3
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README_ZH.md
原文非官方 Suno API
这一个基于 Python和 FastAPI 的非官方 Suno API,目前支持生成歌曲,歌词等功能。
自带维护 token 与保活功能,无需担心 token 过期问题。
特点
- token 自动维护与保活
- 全异步,速度快,适合后期扩展
- 代码简单,易于维护,方便二次开发
使用
配置
编辑 .env.example 文件,重命名为 .env,填写 session_id 和 cookie
这些先从浏览器中获取,后期会自动保活。

运行
安装依赖
pip3 install -r requirements.txt
这一部分,自行参考 FastAPI 文档
uvicorn main:app
Docker
docker compose build && docker compose up
文档
搭建服务后访问 /docs
