Developer docs

Where a clip loops best

MCP tool
get_clip_loop
CLI
kinetune clips loop
GET
/api/v1/clips/{clip_id}/loop

Try it with your own API key: it runs on that key's workspace, so a real key reads your real songs, videos and credits. Reads and quotes only; nothing is charged.

Best spot: where in a clip a Canvas drift window loops best, and its loop score

For a window of span seconds that crossfades seam seconds into its start (both in the clip's own time: a drift plays seconds + crossfade of picture at its speed), the start in the clip whose ends look most alike, steady and with no cut inside, and its loop score 0–100. Put the start in the Canvas edit's clips[0].in. Answers {start, score, measured}; a clip not measured yet answers start 0 and score null. Each clip's own score (for a default 8-second drift) is loop_score on list_clips, browse_clip_mood and get_clip_folder. No AI and no credits.

headerAuthorizationBearer <token>

An organization API key (kt_live_…) or an OAuth access token

clip_id*string

A clip id (clip_…; browse_clip_mood, get_clip_folder or list_clips)

Match^clip_[0-9a-f-]{36}$
span*number

How much of the clip the window plays before the loop point, in seconds of the clip

Range0.5 <= value <= 60
seam?number

How much more it plays into the crossfade, in seconds of the clip; default 0.75

Range0 <= value <= 4

Response Body

OK

Example Request
curl -X GET 'https://dev.kinetune.com/api/v1/clips/string/loop?span=0.5'
Example Response
Empty