> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Sonilo API Node Official ComfyUI Example

> This article introduces how to use Sonilo Partner nodes for video-to-music and text-to-audio generation in ComfyUI.

Sonilo is an AI-powered video-to-music service that generates soundtracks synchronized to your footage. It analyzes visuals, pacing, and emotional cues to produce music locked to your timeline, frame by frame.

You can drive music generation directly from your ComfyUI node graphs, alongside your existing workflows.

## Highlights

* **Length, pace and emotion alignment** - Music is generated to match the exact duration, pacing, and emotional arc of your video, delivering soundtracks that feel intentionally composed for the content.
* **Instant generation** - Generate full-length, high-quality music in seconds, enabling faster iteration and a seamless creative workflow.
* **Commercial-ready usage** - All generated music includes commercial use rights, making it ready for use across professional, brand, and production environments without additional licensing complexity.

<Tip>
  To use the API nodes, you need to ensure that you are logged in properly and using a permitted network environment. Please refer to the [API Nodes Overview](/tutorials/partner-nodes/overview) section of the documentation to understand the specific requirements for using the API nodes.
</Tip>

<Tip>
  <Tabs>
    <Tab title="Portable or self deployed users">
      Make sure your ComfyUI is updated.

      * [Download ComfyUI](https://www.comfy.org/download)
      * [Update Guide](/installation/update_comfyui)

      Workflows in this guide can be found in the [Workflow Templates](/interface/features/template).
      If you can't find them in the template, your ComfyUI may be outdated. (Desktop version's update will delay sometime)

      If nodes are missing when loading a workflow, possible reasons:

      1. You are not using the latest ComfyUI version (Nightly version)
      2. Some nodes failed to import at startup
    </Tab>

    <Tab title="Desktop or Cloud users">
      * The Desktop is base on ComfyUI stable release, it will auto-update when there is a new Desktop stable release available.
      * [Cloud](https://cloud.comfy.org) will update after ComfyUI stable release.

      So, if you find any core node missing in this document, it might be because the new core nodes have not yet been released in the latest stable version. Please wait for the next stable release.
    </Tab>
  </Tabs>
</Tip>

## Get started

<Steps>
  <Step title="Update ComfyUI">
    Update ComfyUI to the latest version, or use [Comfy Cloud](https://www.comfy.org/cloud).
  </Step>

  <Step title="Find a Sonilo workflow">
    Open the **Workflow Library**, browse **Templates**, and search for "Sonilo" to find a ready-to-use workflow.
  </Step>

  <Step title="Run the workflow">
    Connect your video source, update the prompt, and click the **Run** button or use `Ctrl(Cmd) + Enter` to generate.
  </Step>
</Steps>

## Video-to-music workflow

Sonilo's video-to-music workflow analyzes your video's visuals, pacing, and emotional cues to generate a synchronized soundtrack.

<Card title="Sonilo Video-to-Music Workflow" icon="cloud" href="https://cloud.comfy.org/?template=api_sonilo_v2m&utm_source=docs">
  Run on Comfy Cloud
</Card>

1. Load your video in the input node.
2. (Optional) Add a text prompt to guide the style or mood of the generated music.
3. Click the **Run** button or use the shortcut `Ctrl(Cmd) + Enter` to start music generation.
4. The generated audio will be saved to the `ComfyUI/output/audio` directory.

## Text-to-audio workflow

You can also generate music purely from text prompts describing the style, mood, and instrumentation you want.

<Card title="Sonilo Text-to-Audio Workflow" icon="cloud" href="https://cloud.comfy.org/?template=api_sonilo_t2m&utm_source=docs">
  Run on Comfy Cloud
</Card>

**Example prompts:**

* `Dreamy ambient electronic music, gentle rhythm, suitable for short videos`
* `Futuristic electronic instrumental, sci-fi sense, ethereal and deep`
* `Lazy jazz instrumental, saxophone, relaxing cafe atmosphere`

1. Enter your text prompt describing the music you want to generate.
2. Click the **Run** button or use the shortcut `Ctrl(Cmd) + Enter` to start audio generation.
3. The generated audio will be saved to the `ComfyUI/output/audio` directory.

## Use cases

* **Advertising and creative studios** - Generate music that matches the pacing of product videos, brand spots, and social ads.
* **Video production and post houses** - Automate soundtrack generation across large volumes of footage.
* **VFX and motion graphics artists** - Generate music that evolves with your visuals, frame by frame.
* **Content creators and agencies** - Produce platform-ready videos with synchronized music across multiple formats.
* **Developers and pipeline engineers** - Integrate music generation directly into automated workflows via ComfyUI.
