Sonilo Video to Sound Effects API

Sonilo Video to Sound Effects adds sound effects that match what happens on screen. The model infers sounds from the footage, and optional prompts or timed segments direct specific effects.

Provider

Sonilo

Billing

Per second

ScalingTensor price

$0.009 per second of source video

Playground

Try Sonilo Video to Sound Effects

Edit the params, add your API key and run the model here. The result plays on this page when the job completes.

Input

Used for this request only and never stored. Get a key

Running a request charges your wallet: $0.009 per second of source video.

Output

preview

Request summary

Endpoint
POST /api/media/generate
Model ID
sonilo/video-to-sfx
prompt
Generate realistic ambient sound effects synchronized with the visuals.
video_url
https://example.com/your-video.mp4
audio_format
aac

Need chat models, job lookups or the raw response? Open the full playground.

Pricing

Sonilo Video to Sound Effects API pricing

Prices come from the live catalog. There is no subscription; each request is charged to your prepaid wallet.

ScalingTensor price

Per second

Live catalog price

$0.009

per second of source video

A 60-second video costs $0.54.

Compare all model prices

Shared balance

Add credits

Top up

One wallet and one API key for every model in the catalog. Top-ups start at $10 and are paid through Stripe.

Parameters

Input parameters

These parameters belong inside the request body's params object.

Input parameters
nametyperequireddescription
video_urlstringconditionalURL to a video file. Provide either video or video_url, not both. Must be a public http:// or https:// URL; private/internal addresses are rejected. Max file size: default 300MB. Max duration: 480 sec.
promptstringfalseOptional text prompt describing the sound effects to generate, up to 2000 characters. For best results, omit this and let the model infer sound effects from the on‑screen action, or use segments for finer control.
segmentsstringfalseOptional JSON array of timed sound‑effect prompts, up to 30 items. Each item has start and end (seconds; the first segment's start must be 0, each segment's end must be greater than its start, and segments must be contiguous — each end equal to the next segment's start) and prompt (1‑200 characters) describing the sound effect for that segment. The last segment's end must not exceed the video duration, which is capped at 480 sec.
audio_formatstringfalseOutput audio format. One of wav, mp3, aac, flac. Defaults to aac.

Output fields

Output fields
nametypedescription
statusstringAlways processing on submission — generation runs asynchronously.

API

Call Sonilo Video to Sound Effects from your code

Create a key in the console and call the API from your server using the apiKey header. Save data.jobId and poll GET /api/media/result?jobId=... with the same key; a code of 0 means success.

POST /api/media/generate
curl --request POST 'https://restapi.scalingtensor.com/api/media/generate' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "model": "sonilo/video-to-sfx",
  "params": {
    "prompt": "Generate realistic ambient sound effects synchronized with the visuals.",
    "video_url": "https://example.com/your-video.mp4",
    "audio_format": "aac"
  }
}'
const response = await fetch("https://restapi.scalingtensor.com/api/media/generate", {
  method: "POST",
  headers: {
    apiKey: process.env.SCALINGTENSOR_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "sonilo/video-to-sfx",
    "params": {
      "prompt": "Generate realistic ambient sound effects synchronized with the visuals.",
      "video_url": "https://example.com/your-video.mp4",
      "audio_format": "aac"
    }
  }),
});

const result = await response.json();
if (!response.ok || result.code !== 0) {
  throw new Error(result.msg || `Request failed: ${response.status}`);
}
console.log(result.data); // Save data.jobId to query /api/media/result
import os
import requests

payload = {
    "model": "sonilo/video-to-sfx",
    "params": {
        "prompt": "Generate realistic ambient sound effects synchronized with the visuals.",
        "video_url": "https://example.com/your-video.mp4",
        "audio_format": "aac",
    },
}

response = requests.post(
    "https://restapi.scalingtensor.com/api/media/generate",
    headers={"apiKey": os.environ["SCALINGTENSOR_API_KEY"]},
    json=payload,
    timeout=60,
)
result = response.json()
if result["code"] != 0:
    raise RuntimeError(result["msg"])
print(result["data"])  # Save data["jobId"] to query /api/media/result

API documentation · This page as Markdown · Markdown API reference

Related models

Sonilo Video to Sound Effects API FAQ

How much does the Sonilo Video to Sound Effects API cost?

Sonilo Video to Sound Effects costs $0.009 per second of source video on ScalingTensor. A 60-second video costs $0.54. There is no subscription; usage is charged to your prepaid wallet.

How do I call the Sonilo Video to Sound Effects API?

Send POST /api/media/generate with "model": "sonilo/video-to-sfx" and the parameters in a params object, using your apiKey header. The call returns a jobId. Poll GET /api/media/result?jobId=... until the status is completed, then read the output URL from the result.

Which parameters does Sonilo Video to Sound Effects accept?

No parameter is strictly required. Optional: video_url, prompt, segments and audio_format. The parameter table on this page describes each one.

Do I need a Sonilo account to use Sonilo Video to Sound Effects?

No. You call Sonilo Video to Sound Effects with your ScalingTensor API key and pay from your ScalingTensor wallet. The same key works for every other model in the catalog.