suno api

Report Abuse

Basic Information

Suno AI API is an open-source, unofficial implementation that lets developers call the music generation capabilities of Suno.ai via a self-hosted or deployed API. It provides programmatic endpoints to create music, generate lyrics, extend audio, produce stems, fetch clip and track metadata, and assemble full songs from parts. The project automates account maintenance and solves hCaptcha challenges using a paid CAPTCHA solving service together with browser automation, enabling reliable background operation. It exposes endpoints compatible with OpenAI’s chat completions format so the service can be used as a tool within LLM-based agents. The README documents how to obtain a Suno account cookie, configure environment variables, deploy on Vercel or Docker, and run locally. The project is licensed under LGPL-3.0 and includes a demo deployment and example client code in Python and JavaScript.

Links

Categorization

App Details

Features
Implements Suno.ai creation API and provides a comprehensive set of REST endpoints including generate, custom_generate, generate_lyrics, get, get_limit, extend_audio, generate_stems, get_aligned_lyrics, clip and concat. Automatically keeps an account active and integrates automated hCaptcha solving using a paid CAPTCHA solver combined with Playwright and rebrowser-patches. Compatible with OpenAI-style /v1/chat/completions requests to ease integration with agent platforms. Supports a Custom Mode for specifying lyrics, style, title and other generation parameters. One-click deployment options for Vercel and Docker are provided, plus local development instructions. Examples and integration snippets are available in Python and JavaScript. Environment-driven configuration allows per-deployment cookie and CAPTCHA key settings. The project is permissively open source under LGPL-3.0.
Use Cases
This repository helps developers and teams add AI music generation to applications, bots, and LLM-based agents by exposing Suno.ai functionality through a stable API surface and OpenAI-compatible endpoints. It simplifies workflow by handling account keepalive and automatically solving hCaptchas so users can run generation tasks without manual intervention. The variety of endpoints enables use cases such as prompt-driven song generation, custom tracks with lyrics and styles, audio extension, stem separation, clip retrieval and assembling longer compositions. Per-request cookie override enables using multiple free accounts. Deployment guides and code examples reduce integration time. Notes and tips in the README clarify operational tradeoffs such as the need for a paid CAPTCHA service and recommended environment settings to reduce CAPTCHA frequency.

Please fill the required fields*