Suno music, sound, lyrics, and voice client for RunAPI
Project description
Suno Python SDK for RunAPI
The Suno Python SDK is the language-specific package for Suno on RunAPI. Use it for music, sound effect, lyrics, stem, MIDI, and custom voice flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in Python.
For model details, use https://runapi.ai/models/suno; for API reference, use https://runapi.ai/docs#suno; for SDK docs, use https://runapi.ai/docs#sdk-suno.
Install
pip install runapi-suno
Quick start
from runapi.suno import SunoClient
client = SunoClient() # reads RUNAPI_API_KEY, or pass api_key="sk-..."
# Generate music and poll until completion.
result = client.text_to_music.run(
model="suno-v4.5-plus",
vocal_mode="auto_lyrics",
prompt="A chill lo-fi beat with soft vocals",
)
print(result.audios[0].audio_url)
# Generate lyrics from a prompt.
lyrics = client.generate_lyrics.run(prompt="a song about the ocean at night")
print(lyrics.lyrics[0].text)
Use create to submit a task and return quickly, get to fetch the latest task
state, and run to create and poll until completion:
task = client.text_to_music.create(
model="suno-v4.5-plus",
vocal_mode="instrumental",
style="ambient piano",
title="Quiet Morning",
)
status = client.text_to_music.get(task.id)
In web request handlers, prefer create plus webhook or later get polling so a
worker is not held open.
RunAPI-generated file URLs are temporary. Download and store generated audio, images, and videos in your own durable storage within 7 days; do not treat returned URLs as long-term assets.
Resources
The client exposes one accessor per resource:
- Music:
text_to_music,extend_music,cover_audio,add_instrumental,add_vocals,replace_section,create_mashup - Sound and lyrics:
text_to_sound,generate_lyrics,get_timestamped_lyrics - Audio tooling:
separate_audio_stems,generate_midi,convert_audio,visualize_music,generate_artwork - Voice and style:
voice_to_validation_phrase,regenerate_validation_phrase,generate_voice,check_voice,generate_persona,boost_style
Music, sound, stem, MIDI, conversion, visualization, artwork, replace-section,
mashup, validation-phrase, and voice resources are asynchronous: call run to
create and poll, or create plus get. Lyrics lookup, persona, voice check,
and style boost return their result directly from run.
Language notes
Pass parameters as keyword arguments and catch the runapi.suno error classes
when building audio jobs or scripts. Keep RUNAPI_API_KEY in the environment or
your secret manager; never commit API keys or callback secrets.
Links
- Model page: https://runapi.ai/models/suno
- SDK docs: https://runapi.ai/docs#sdk-suno
- Product docs: https://runapi.ai/docs#suno
- Pricing and rate limits: https://runapi.ai/models/suno
- Full catalog: https://runapi.ai/models
License
Licensed under the Apache License, Version 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runapi_suno-0.1.0.tar.gz.
File metadata
- Download URL: runapi_suno-0.1.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b11a165342b8da6e144974f190ed6674757b5c812d187a910644b42e408f1f2
|
|
| MD5 |
9f328056cd52c90c664fcd9d3aa65835
|
|
| BLAKE2b-256 |
85bd9e644d27fa65c5c0118c6bcd5708fe07b381584f72705bf910a419160018
|
File details
Details for the file runapi_suno-0.1.0-py3-none-any.whl.
File metadata
- Download URL: runapi_suno-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59efa841965a5dbbab62eb8df27d3e3547947fa2ef0edb661bea837615d4e4f1
|
|
| MD5 |
30043d84cad1c19ca06d0caf9b203d8d
|
|
| BLAKE2b-256 |
051c208b8f69dbaca061f0dffe115783f839b0be1694fc5bad2519724eb73135
|