
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Code for API access to Riffusion's frontier models to make incredible music
This API is in a private beta and subject to change. Contact api@riffusion.com for inquiries and access.
Set your API key:
export RIFFUSION_API_KEY="<your-api-key>"
Install the Python client:
pip install riff-api
Make some music:
from riff_api import RiffAPIClient
client = RiffAPIClient()
response = client.prompt(
"Explain the concept of time in French, piano chill",
save_to="chill.m4a",
)
This will generate a full song with lyrics and music. Run multiple times for variations.
/prompt
This endpoint creates a song from a single natural language description the desired lyrical content and/or musical style. It's the simplest way to create.
The API will generate lyrics based on your topic, as well as pick specific sound prompts. If you don't describe a musical style or lyrics content, it will choose for you.
Get creative with your topics! Here are a few ideas:
Currently the API only supports returning base64 encoded bytes of an m4a file.
/compose
This endpoint provides a more powerful capability for music lovers to craft the exact sound they want. You can specify custom lyrics and multiple sound prompts with individually controllable strengths for deeper control.
The returned output contains detailed timestamps for each word in the lyrics.
riff_api/types.py
- API schemariff_api/examples/prompt
- Examples for creating a song via the client, requests, and curlriff_api/examples/compose
- Examples for custom creationFAQs
Riffusion API
We found that riff-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.