Developer docs

Generate clips

MCP tool
generate_clips
CLI
kinetune clips generate
POST/api/v1/clips/generate

Not sent from the docs: it changes your workspace. Run it with curl, the CLI or its MCP tool.

New pictures or short video clips into your AI folder, from your words, the song or its cover

The only paid part of a lyric video's or a Canvas's picture. Send prompt (or from with song_id: the song's brief, or the cover's world with the cover as the model's reference), kind (image or video), shape (tall or wide), count (1–4), and optionally with (the artist, or a cast character's kit id: their character sheet keeps them recognizable), quality (standard or high video) and loop (a video that starts and ends on the same frame, kept whole: a seamless Drift for a Canvas). Without credits it answers the price ({quote: {credits, per_item_credits}}) and the prompt it will use, and with from song three ideas built from the song's brief (ideas: each a title, a line, 2–3 tags, a prompt, the first best: true; no extra AI call, none while the song has no brief): offer them, and send the picked idea's prompt as prompt; show it, and with the user's yes send the same with credits: they are held and the clips are made in the background. get_clip_folder on the returned folder_id shows each one on its way (imports: status queued, working or failed; stage drawing, animating or cutting; expected_seconds), and each is charged only once it is a clip (a failed one is given back; retry_clip_import tries it again).

headerAuthorizationBearer <token>

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

application/json
  1. body
prompt?string

What it shows, e.g. "a diner at 3am, rain on the window". Optional with from

Length3 <= length <= 500
kind*string
Value in"image""video"
shape?string

Default tall

Value in"tall""wide"
count?integer

Default 1

Range1 <= value <= 4
song_id?string

The song it is for (with from or with)

Length1 <= length <= 120
from?string

Start from the song (its brief) or the cover's world

Value in"song""cover"
with?string

none (default), artist (the song's artist's character) or a cast character's kit id (kit_…)

Lengthlength <= 60
model?string

Video only: the video model, one of the ids get_options lists in video_models.clips (by its real name, each with its price for one clip). Left out: the default, the first listed

quality?string

Video only, before models were named: standard is the default model, high the dearest offered. Ignored with model

Value in"standard""high"
loop?boolean

Video only: made to loop (starts and ends on the same frame)

style?string

How it moves and feels: calm, cinematic, dreamy or intense (shapes the motion, camera and pace). Left out: as the prompt says

Value in"calm""cinematic""dreamy""intense"
credits?integer

The quoted credits, to make them; left out, only the price

Range1 <= value <= 9007199254740991

Response Body

OK

Example Request
curl -X POST 'https://dev.kinetune.com/api/v1/clips/generate' \
  -H 'Content-Type: application/json' \
  -d '{
  "kind": "image"
}'
Example Response
Empty