Skip to main content
POST
Audio File Size Calculator

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ioHours
number

Hours

Required range: 0 <= x <= 99
ioMinutes
number

Minutes

Required range: 0 <= x <= 59
ioSeconds
number

Seconds

Required range: 0 <= x <= 59
ioAudioFormat
enum<string>

Audio format

Available options:
mp3,
aac,
ogg,
wav,
flac
ioBitrateKbps
enum<string>

Bitrate

Available options:
64,
96,
128,
160,
192,
256,
320
ioSampleRate
enum<string>

Sample rate

Available options:
22050,
44100,
48000,
96000
ioBitDepth
enum<string>

Bit depth

Available options:
16,
24,
32
ioChannels
enum<string>

Channels

Available options:
1,
2
ioFlacCompression
number

FLAC compression (% of WAV size)

Required range: 30 <= x <= 70

Response

Tool output

tool
string
required
tool_version
string
required

Output-contract version for this tool. Currently "1" for all tools.

outputs
object
required
credits_used
integer
required

Credits this call consumed, after any settlement refund. 0 when metering is disabled.

request_id
string
credits_remaining
integer | null

Credits left in the current monthly allowance, or null when metering is disabled.