Stability Audio 2.5: Audio Inpainting

This ComfyUI workflow, titled 'Stability Audio 2.5: Audio Inpainting,' is designed to help users complete or extend audio tracks using advanced AI techniques. By leveraging the StabilityAudioInpaint node, this workflow allows users to upload an existing audio file and generate additional audio content that seamlessly integrates with the original track. The process involves loading the initial audio using the LoadAudio node, applying the inpainting model via the StabilityAudioInpaint node, and then saving the output with the SaveAudioMP3 node. This workflow is particularly useful for musicians, podcasters, and content creators who need to fill in gaps or extend audio content without noticeable transitions. The use of the Stable Audio model ensures high-quality results that maintain the original audio's tone and style.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

api_stability_ai_audio_inpaint.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates