Stable Audio
Music and sound effects from text (2.5, and 3.0 as a job up to 380 s), audio-to-audio and inpainting saved as audio files, credit balance (paid in credits)
Beta v0.1.0 Node.js 8 actions
About
A Graphrt plugin for Stability AI's Stable Audio API. It generates music and sound effects from text, transforms existing audio and regenerates a time range of a track. Audio is saved to files. It also shows the account's credit balance. The plugin is declarative: see definition.mjs and docs/declarative-plugins.md.
What it can do
- text_to_audio: music or sound from a prompt with Stable Audio 2.5 (the default) or 2, up to 190 s, mp3 or wav. - Options: seed, steps and cfg scale. - Synchronous, the audio bytes are saved to STABLE_AUDIO_OUTPUT_DIR.
- audio_to_audio: transforms input audio with a prompt and a strength.
- inpaint_audio: regenerates mask_start–mask_end seconds of input audio (Stable Audio 2.5).
- text_to_audio_v3: Stable Audio 3.0, up to 380 s. - Asynchronous: the plugin polls the generation and saves the audio. - wait: false returns the generation id at once.
- get_audio_result: fetches a Stable Audio 3 generation by id (kept 24 h). It saves the audio once the generation is finished.
- get_balance (credits) and get_account.
- api_request: any other endpoint, GET only for agents.
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Text to audio
stable-audio.text_to_audio - Audio to audio
stable-audio.audio_to_audio - Inpaint audio
stable-audio.inpaint_audio - Text to audio (Stable Audio 3)
stable-audio.text_to_audio_v3 - Get audio result
stable-audio.get_audio_result - Get credit balance
stable-audio.get_balance - Get account
stable-audio.get_account - Stability AI API request
stable-audio.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
STABILITY_API_KEYRequiredAPI key (sk-...), sent as Authorization: Bearer -
STABLE_AUDIO_OUTPUT_DIRFor generationAbsolute directory where audio files are written (created if missing). Without it the generation operations are refused before any request, so nothing is paid for. -
STABLE_AUDIO_UPLOAD_DIROptionalAbsolute directory that local input audio must be inside (see below).
How to use it
In Graphrt Desktop
- Open Plugins and search for Stable Audio.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install stable-audio workflow.yaml
- id: jingle type: stable-audio.text_to_audio prompt: "Upbeat dangdut jingle, kendang and suling, 120 BPM" duration: 30 output_format: wav - id: long_track type: stable-audio.text_to_audio_v3 prompt: "Cinematic ambient score, slow build" duration: 300