About Video Sound Effects
Video Sound Effects (foley-v1) is PopNow's own video-to-audio endpoint. Send video_url and optionally a prompt listing sounds; the async job returns the same clip, same frames and resolution, with a generated effects and ambience track as its audio. Typical jobs take around 40 seconds. It fits post-processing after a video model, batch sound passes on product loops and rough-cut tools that should not play in silence.
Call it with the model name popnow/foley-v1/video-to-audio on POST /jobs/createTask, from $0.006.
Introduction
Video Sound Effects adds a sound track to a clip by watching it. Send the footage in video_url, optionally describe what should be heard in prompt, and choose how many seconds of sound to make with duration_seconds. The tool generates effects and ambience that follow the action on screen and returns the same picture with that track as its audio.
Key features
Sound that follows the picture
The track is generated from the frames, so impacts, footsteps, pours and passing traffic land where they happen in the shot instead of on a loop laid over it. A short description steers the palette, from rain on glass to gravel underfoot to a busy kitchen, and the negative prompt keeps out what you do not want, such as music or voices.
Request parameters
| Parameter | Required | Description |
|---|---|---|
duration_seconds | No | Length of the generated clip. ≥ 1 · ≤ 30 · Default: 8 |
guidance_scale | No | How strictly the model follows the prompt. ≥ 0 · ≤ 20 · Default: 4.5 |
ignore_visual_semantics | No | Use the prompt to choose sounds while matching their timing to the video motion. Default: false |
negative_prompt | No | Styles or sounds you don't want in the track. |
prompt | No | Describe what you want to make. |
steps | No | Set the number of sampling steps the model runs. ≥ 4 · ≤ 50 · Default: 25 |
video_url | Yes | The clip to work on. |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| Standard | $0.0012 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
Finishing clips from video models
If a generated clip has no sound, add ambience and effects before publishing. This provides a starting soundtrack without searching a sound library or assembling one in an editor.
Temp sound for rough cuts and product shots
A draft that plays in silence is hard to judge.
Prompt guide & pro tips
Describe sources, not moods
List the things that make noise: espresso machine hiss, cups clinking and low café chatter work better than a cosy atmosphere. Three or four sources are plenty; long lists blur together into a wash.
Match the length to the clip
Set duration_seconds to the clip's length, rounded up.
Leave the fine controls alone at first
guidance_scale sets how closely the sound follows your words and steps sets the number of refinement passes; the defaults suit most clips. Raise guidance a little only when the result ignores the prompt, and expect more steps to take longer rather than sound dramatically better.
API quick start
Call the Video Sound Effects API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model popnow/foley-v1/video-to-audio and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "popnow/foley-v1/video-to-audio",
"input": {
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"duration_seconds": 8
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the Video Sound Effects API
- Auto-sound for generated clips: when a text-to-video job finishes, pass its URL here with duration_seconds set to the clip length and music and speech in negative_prompt, then publish the returned file.
- A sound-variation picker: run the same clip with two different prompt lists and let the editor choose, with the picture identical across both.
Video Sound Effects parameter notes
- duration_seconds (1 to 30, default 8) is both the sound length and the output length, because the returned clip is cut to it. Read the source duration and round up, capped at 30, or a 12-second clip comes back as 8 seconds.
- prompt (up to 1,000 characters) works best as a short list of sound sources; omit it for a general match-the-action request.
- ignore_visual_semantics true chooses sounds from the prompt alone while keeping motion timing; use it when the picture would suggest the wrong material.
- guidance_scale (0 to 20, default 4.5) and steps (4 to 50, default 25): more steps mean longer jobs, so raise them only for final renders.
How Video Sound Effects API pricing adds up
Billed per second of sound requested through duration_seconds, not per second of uploaded video. Store duration_seconds with each task, since it explains both the charge and the output length.
- Video to Audio, 5-second clip: $0.006 each, $0.60 for 100 clips
Async jobs, webhooks and rate limits
Every Video Sound Effects request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for popnow/foley-v1/video-to-audio never runs or bills twice.
Common Video Sound Effects API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_asset | The video could not be fetched or decoded. Re-encode it as an ordinary MP4 and resubmit. |
invalid_request | duration_seconds outside 1 to 30, steps outside 4 to 50 or guidance_scale outside 0 to 20. |
timeout | Jobs usually finish in about 40 seconds; poll the taskId before resubmitting so the same clip is not billed twice. |
Examples
Video Sound Effects API questions
How much does the Video Sound Effects API cost?
Video Sound Effects costs $0.006 for a 5-second clip. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Video Sound Effects in the API?
Put popnow/foley-v1/video-to-audio for Video to Audio in the model field of POST /jobs/createTask.
Does the output resolution change?
No. Our 560x752 and 1080x608 inputs came back at the same sizes.
Can it generate speech or music?
No, it makes effects and ambience. Put music and speech in negative_prompt to keep them out.
What happens with a clip longer than 30 seconds?
The output is cut to duration_seconds, at most 30. Split longer edits into segments and run each one.
What are the limits of the Video Sound Effects API?
Clip length: 1–30 s; Prompt length (characters): 1,000; Largest upload: 90 MB. Requests outside these limits are rejected before anything is charged.
Can I try Video Sound Effects without writing code?
Run Video Sound Effects in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.