---
title: "Add background music — estimate"
method: POST
path: "/v1/studio/music/estimate"
tags: ["Audio"]
---

# Add background music — estimate

`POST /v1/studio/music/estimate`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/studio/music/estimate`
- Auth: HTTP bearer

Price the request without executing it. Same body as `POST /v1/studio/music`.

## Request body

- object
  - `duck` boolean: Lower the music automatically while someone speaks
  - `loop` boolean
  - `output` object
    - `fit` 'crop' | 'blur' | 'pad': When the aspect ratio changes: crop the edges, blurred copy behind, or solid bars
    - `fps` number
    - `format` 'mp4' | 'webm' | 'mov' | 'gif' | 'mp3' | 'wav' | 'm4a' | 'jpg' | 'png'
    - `quality` 'draft' | 'standard' | 'high': high (default) = best picture; draft renders fastest for previews
    - `background` string: Bar colour for fit=pad
    - `resolution` '480' | '720' | '1080' | 'source': Short side in pixels (1080 = Full HD). `source` keeps the input size, max 1080
    - `aspect_ratio` 'original' | '9:16' | '16:9' | '1:1' | '4:5' | '4:3': 9:16 for Reels/TikTok/Shorts, 1:1 or 4:5 for feed, 16:9 for YouTube
  - `volume` number
  - `duck_db` number: With `duck`: how far the music dips under speech, dB — −6 (default) = half as loud under the voice, −3 a gentle dip, −18 a deep one. A fixed depth whatever the speaker's level; attack 40 ms, release 700 ms
  - `start_ms` number: Start the music this far into the video
  - `music_url` string, uri, required
  - `normalize` boolean: Bring the track to a standard loudness first, so `volume` means the same for every file (a quiet file is not lost under the speech)
  - `video_url` string, uri, required: Public URL of the source video (mp4, mov, webm, mkv…) — or the `url` of a previous render
  - `fade_in_ms` number
  - `fade_out_ms` number
  - `original_volume` number

## Response `200`

Estimate

- Estimate
  - `operation` string
  - `estimated_credits` number
  - `credits_to_reserve` number
  - `estimated_usage` object
  - `note` string, nullable
  - `balance` object
    - `available` number
  - `sufficient` boolean

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
