apyhub
Back

Shift Audio Pitch by Semitones API

What it does

Audio Pitch Shifter shifts an audio file up or down by a specified number of semitones and returns the modified audio as a binary file.

Send an audio file in the file field, along with a numeric semitones value. Use a positive number to raise pitch or a negative number to lower it. The input file can be up to 30 MB, which makes this suitable for short clips, voice samples, music snippets, and other compact audio assets.

Use Audio Pitch Shifter when you need to retune a recording, create alternate vocal or instrument takes, generate training variants, or normalize audio content for a different key. The endpoint focuses on one job: transform the pitch and give you the processed audio back without adding extra metadata or changing your integration flow.

Because the response is a binary audio file, it fits directly into pipelines that store, play, or forward processed media.

POST
Shift audio pitch
https://api.eu.apyhub.com/freedailypro/shift-audio-pitch-by-semitones-api/audio-pitch

QUICKSTART

GUIDE

Quickstart

Upload an audio file and set how many semitones to shift it.

curl -X POST "https://api.eu.apyhub.com/freedailypro/shift-audio-pitch-by-semitones-api/audio-pitch" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/audio.mp3" \
  -F "semitones=4"

What you'll get back

Returns a binary file (string with format: binary) containing the converted audio.

TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.
body*
The audio file. Up to 30 MB.
For example 4 to go up four semitones or -3 to go down three

About this endpoint

What it does

Shifts the pitch of an uploaded audio file by the number of semitones you provide, and returns the converted audio file as binary output.

Request Body

ParameterTypeMandatoryDescription
fileStringYesThe audio file to convert. Binary upload. Up to 30 MB.
semitonesNumberYesThe pitch shift amount in semitones. Positive values move the pitch up; negative values move it down.

Response

Returns a binary audio file containing the pitch-shifted result.

ParameterTypeDescription
binaryFileThe response body is binary data containing the pitch-shifted audio.

Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.