https://github.com/SunoAI-API/Suno-API
Create Music in Seconds with SunoAPI.
https://github.com/SunoAI-API/Suno-API
suno suno-ai
Last synced: 5 days ago
JSON representation
Create Music in Seconds with SunoAPI.
- Host: GitHub
- URL: https://github.com/SunoAI-API/Suno-API
- Owner: SunoAI-API
- License: mit
- Created: 2024-03-26T14:27:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-13T14:30:56.000Z (about 1 month ago)
- Last Synced: 2025-04-05T01:01:41.760Z (12 days ago)
- Topics: suno, suno-ai
- Language: Python
- Homepage:
- Size: 1.83 MB
- Stars: 1,616
- Watchers: 12
- Forks: 249
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-suno - SunoAI-API/Suno-API - An unofficial Suno AI API based on Python and FastAPI. It currently supports generating songs, lyrics, etc. (List of Projects / Python)
- project-awesome - SunoAI-API/Suno-API - Create Music in Seconds with SunoAPI. (Python)
README
[简体中文](README_ZH.md) | [日本語](README_JA.md)
### Unofficial API
This is an unofficial API based on Python and FastAPI. It currently supports generating songs, lyrics, etc.
It comes with a built-in token maintenance and keep-alive feature, so you don't have to worry about the token expiring.### Features
- Automatic token maintenance and keep-alive
- Fully asynchronous, fast, suitable for later expansion
- Simple code, easy to maintain, convenient for secondary development### Usage
#### Configuration
Edit the `.env.example` file, rename to `.env` and fill in the session_id and cookie.
These are initially obtained from the browser, and will be automatically kept alive later.

#### Run
Install dependencies
```bash
pip3 install -r requirements.txt
```For this part, refer to the FastAPI documentation on your own.
```bash
uvicorn main:app
```#### Docker
```bash
docker compose build && docker compose up
```#### Documentation
After setting up the service, visit /docs
