Tuney

v1.1.0
io.github.library-x/tuney Checked 3 days ago Published 17 days ago

Royalty-free music fitted to your length or video: find, generate and adjust tracks, score videos.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_styles List music styles

List the genres, moods and tempos Tuney can find or generate music for. Call this before find_tracks or generate_track and pick the values that fit the user's brief.

find_tracks Find ready-made tracks

Find ready-made Tuney tracks that match a brief. Previews are free. Best results: pass genre, mood and tempo values from list_styles (any one is enough). A free-text prompt works too, but it is matched on overall feel only, not on instruments, so check the genre, mood and tempo of what comes back. Each result has a cue_id and a preview URL. limit is 1 to 5; each result takes a few seconds. Pass the returned search_id to get more results for the same brief. Use adjust_track to change length or key, and download_track for the final file.

ParameterTypeDescription
genre
limitinteger
mood
prompt
search_id
tempo

generate_track Generate a new track

Compose a brand-new track from Tuney's hand-made musical elements, fitted to an exact length. Use genre, mood and tempo values from list_styles, or leave them empty for any style. Generation runs in the background: this returns a task_id, so call wait_for_task next. Previews are free.

ParameterTypeDescription
buildstring
genre
length_secondsnumber
mood
tempo

get_task Check a background task

Check a background task once: a generation, a download, or a video import, analysis, scoring or render. Prefer wait_for_task, which polls for you.

ParameterTypeDescription
task_id *string
kindstring

wait_for_task Wait for a background task

Wait for a background task to finish, reporting progress along the way. kind is the one the starting tool returned: generate, download, import_video, analyze_video, score_video or render_video. Returns the finished track (with preview_url), the download_url, or the video result. If it is still running when the timeout passes, the result says so: call wait_for_task again with the same task_id and kind.

ParameterTypeDescription
task_id *string
kindstring
timeout_secondsinteger

get_track Get a track

Get a track by cue_id: name, preview URL, length, bpm, key, style and sections.

ParameterTypeDescription
cue_id *string

adjust_track Adjust a track

Re-render a track with changes, keeping it musically coherent. - length_seconds: fit the track to an exact duration (the engine recomposes the arrangement). - turning_point_seconds: add a turning point at that second, where the music changes character (new arrangement after the point, an audible transition). Combine with length_seconds to lengthen a track and place the turning point in one go. If the track already has a turning point, this moves it. - ending: how the track ends, "fade_out" or "short" (a stab on the last beat). The track ke…

ParameterTypeDescription
cue_id *string
ending
length_seconds
mute
pitch_shift
regenerate
time_stretch
turning_point_seconds
unmute

download_track Download a track

Get a download link for the final file: mp3, wav, or a zip of stems. Signed in, this spends Tuney credits and the file is clean. Without sign-in it is free and the file has the pulsing tone over it (the result says listen_only). Returns download_url right away when the file is cached, otherwise a task_id to pass to wait_for_task with kind="download". Links expire, so share them promptly. download_url is on the Tuney API host; download_direct_url is the same file in Cloud Storage. For format="stems" the link is a zip with one mp3 per part; the re…

ParameterTypeDescription
cue_id *string
formatstring

get_account Show the signed-in account

Show whether the user is signed in to Tuney, which account it is, and its credit balance with a link to buy more.

sign_in Sign in to Tuney

Start signing in to Tuney. Signed in, audio is clean (no pulsing tone) and the user has their own library and credits. Call it only when the user asks to sign in or wants clean files; everything works without it. Without a sign-in, this call makes the app show its Tuney sign-in (in Claude Code the user picks Authenticate for Tuney under /mcp), where an account is free to create. Tell the user first: some apps pause the Tuney tools until the sign-in is finished. When already signed in, it says so. Then call get_track with the cue_id of each track made…

import_video Import a video from a link

Bring a video into Tuney from a public https link that returns the file itself (not a web page). Returns the video_id to pass to score_video, analyze_video or render_video. Videos up to 200 MB and 10 minutes. For a local file, use get_video_upload_link instead.

ParameterTypeDescription
url *string

analyze_video Analyze a video

Show what Tuney sees in a video: picture cuts with their strength, where people speak, and a sonic-logo guess. Optional: score_video analyses the video by itself. Use this to discuss the edit with the user first, for example to pick the turning point or the moment the music should end.

ParameterTypeDescription
video_id *string

score_video Score a video

Compose music to a video and, by default, return the video with the music under it. Tuney finds the picture cuts, speech and sonic logo, then arranges a track to them: the music ends where the logo starts (or at the end), the turning point lands on the strongest cut in the middle, hits land on other strong cuts outside speech, and the music is lowered while people speak in the rendered video. - prompt: describe the music ("upbeat pop for a sneaker ad"); or cue_id: one of the user's tracks. - ending: "fade" lands exactly on the length; "short" e…

ParameterTypeDescription
video_id *string
cue_id
endingstring
hitsboolean
logo_start_seconds
music_end_seconds
no_turning_pointboolean
prompt
renderboolean
turning_point_seconds

render_video Render a video with a track

Put one of the user's tracks under a video, for example after adjust_track changed the scored track. duck lowers the music while people speak. music_volume and video_volume are gains from 0 to 2 (1 leaves the level unchanged). Returns a link to the rendered MP4.

ParameterTypeDescription
cue_id *string
video_id *string
duckboolean
music_volumenumber
video_volumenumber