generate-audio

generate-audio is a command for Claude Code from Comfy-Org/comfy-skills. It costs 12 tokens per session (733 once invoked), scanned A, original, MIT.

A command for generating speech, music, or sound effects from a description using Comfy Cloud workflows and connected partner services.

In plain words
What is it for?
Use it to create audio from text prompts, including spoken audio, music, and sound effects, then receive the generated files.
Why use it?
It removes the need to manually find an audio model or assemble a generation workflow from separate parts.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the comfy-cloud plugin — 12 commands shipped together

Good fit Use it to create audio from text prompts, including spoken audio, music, and sound effects, then receive the generated files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/comfy-org/comfy-skills/generate-audio
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Comfy-Org/comfy-skills

Made for: Claude Code.

Or install comfy-cloud, the plugin that ships this one along with the rest of its 12 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-audio

README.md
[![agentmods](https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-audio/github.svg)](https://agentmods.dev/commands/comfy-org/comfy-skills/generate-audio)
Your own site
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/generate-audio"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-audio/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-audio

Your own site · 80×15
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/generate-audio"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-audio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 733 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00733
Opus 5 $0.00006 $0.00367
Sonnet 5 $0.00002 $0.00147
Haiku 4.5 $0.00001 $0.00073

Measured 9d ago against content hash 9ee6c630929a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

generate-audio scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-code/commands/generate-audio.md · 34 lines

What it actually says

Generate audio using Comfy Cloud based on the user's description: $ARGUMENTS

Follow these steps exactly:

Step 0 — Route partner-API requests directly. If the user named a provider, model, or capability (e.g. "ElevenLabs", "Stability Audio", "Sonilo"), do one search_nodes lookup with the named term. If the matching node's category starts with api node/, try partner_generate first — see its tool description for the currently-wired model ids. Pass type: "audio" plus the partner's model slug, prompt, and any optional fields (seed/duration/medias[]). On success, return the artifact URL(s) and stop — do NOT continue with the workflow steps below. If partner_generate returns "unknown model" or "not yet implemented", or the matching node has no api node/ prefix (OSS model), continue to Step 1.

  1. Use search_templates with queries like "audio generation", "text to audio", "music generation", or "sound effects" and set media_type to "audio" to find a pre-built audio workflow template. If a good template exists, use it as the base workflow instead of building from scratch.

  2. If no suitable template was found, use search_nodes to find audio-related nodes. Search for "audio" to discover available audio generation and processing nodes. Use search_models to find audio models if needed.

  3. Build a ComfyUI API-format workflow JSON with the appropriate audio nodes. Audio workflows vary depending on the task (music generation, sound effects, text-to-speech, etc.) and available nodes.

  4. Validate the workflow has inputs and outputs before submitting. Confirm the JSON contains:

    • At least one input node carrying the user's intent (text prompt node, LoadAudio for audio-to-audio, etc.).
    • At least one output/save node wired to the final audio tensor (SaveAudioAdvanced or the partner node's own save output).

    SaveAudioAdvanced (display name "Save Audio (Advanced)") is the current save node, and it requires format alongside audio and filename_prefix — the older SaveAudio, SaveAudioMP3, and SaveAudioOpus classes are marked deprecated in the node catalog and are hidden from search_nodes.

    API-backed partner nodes often produce an audio tensor but do not include a save node by default — you must add one and wire it to their output. Without it the job runs successfully but produces nothing retrievable, wasting compute. Do not skip this check.

  5. Call submit_workflow with the workflow JSON.

  6. Poll get_job_status every 5 seconds until the job is completed. Show the user a brief status update while waiting. If the user asks to cancel, use cancel_job with the prompt_id.

  7. Call get_output to retrieve the generated audio. Pass a short description parameter (e.g. "ambient forest sounds") so the saved file gets a descriptive name.

  8. Tell the user where the audio file was saved and how to play it. Audio outputs are saved to disk but not previewed inline.

If any step fails, show the error clearly. Audio generation support in ComfyUI is newer than image generation, so fewer templates and models may be available.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 34 lines · 12 tokens per session scan A 9ee6c630929a

Subscribe to this mod's changes

generate-audio is a command published in the GitHub repository Comfy-Org/comfy-skills (190 stars, last pushed 3d ago), licensed MIT. It adds 12 tokens to every session and 733 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.