@kinetune/cli 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,7 +53,7 @@ kinetune videos download VIDEO_ID
53
53
  ## Music videos
54
54
 
55
55
  The song's artist performs a music video, lip-synced, made from their photos, so add photos of the artist first.
56
- `--model` picks one of Kinetune's music video models (`one-take` by default: one continuous take, 1 to 10 minutes, about
56
+ `--model` picks one of Kinetune's music video models (`one-take` by default, MiniMax H3 Max: shots cut between the lines, 15 seconds to 10 minutes, about
57
57
  5 minutes to make per minute of song); `GET /options` lists each with what it makes. The price follows the length
58
58
  (the whole song or a section) and the quality, one of those `GET /options` lists for the model: `--quality 768p` (default) or `1080p`,
59
59
  the same video sharper for about twice the credits.
@@ -69,8 +69,8 @@ Design the shoot first if you like: `kinetune lookbook design` with the same bri
69
69
  outfits, places and props; `kinetune lookbook render LOOKBOOK_ID --credits N` draws them for the price it shows, and
70
70
  `--lookbook-id LOOKBOOK_ID` plans from the pieces you keep.
71
71
 
72
- Plan it first, for free: the director's concept and one shot per 15-second clip with its lyrics, in about a
73
- minute. Rewrite it with a note until it's right, then quote and create with its plan id: the video is made from
72
+ Plan it first, for free: the director's concept and its shots (cut between the song's lines) with their lyrics
73
+ and how each comes in (a cut or a transition), in about a minute. Rewrite it with a note until it's right, then quote and create with its plan id: the video is made from
74
74
  exactly that plan.
75
75
 
76
76
  ```bash
package/dist/kinetune.mjs CHANGED
@@ -20502,7 +20502,7 @@ var MUSIC_VIDEO_CATEGORIES = {
20502
20502
  performance: { label: "Performance", description: "The artist sings to camera in one place that suits the song." },
20503
20503
  intercut: { label: "Performance & story", description: "The artist sings to camera, cut against them living the song\u2019s story." },
20504
20504
  cinematic: { label: "Cinematic", description: "A performance with a moving camera that travels through a location." },
20505
- story: { label: "Story", description: "The artist acts out the song\u2019s story while singing it, in one continuous take." },
20505
+ story: { label: "Story", description: "The artist acts out the song\u2019s story while singing it." },
20506
20506
  surreal: { label: "Surreal", description: "The world around the artist transforms with the song, dreamlike and impossible." }
20507
20507
  };
20508
20508
  var MUSIC_VIDEO_STYLE_IDS = ["natural", "film", "golden-hour", "neon-night", "noir", "vintage", "dreamy"];
@@ -20522,10 +20522,11 @@ var MUSIC_VIDEO_MODEL_IDS = ["one-take"];
20522
20522
  var DEFAULT_MUSIC_VIDEO_MODEL = "one-take";
20523
20523
  var MUSIC_VIDEO_MODELS = {
20524
20524
  "one-take": {
20525
- label: "One Take",
20526
- description: "One continuous, lip-synced shot of the artist from two photos: the face and the outfit.",
20525
+ label: "MiniMax H3 Max",
20526
+ description: "MiniMax\u2019s H3 Max video model: the artist performs your song, lip-synced, from two photos (the face and the outfit), in shots cut between the lines.",
20527
20527
  clip: { fps: 24, frames: 360, context: 0 },
20528
- minSeconds: 60,
20528
+ keyframes: { start: true, end: true },
20529
+ minSeconds: 15,
20529
20530
  maxSeconds: 600,
20530
20531
  formats: ["9:16", "16:9", "1:1"],
20531
20532
  cast: ["face", "outfit"],
@@ -20541,6 +20542,7 @@ var LookbookIdSchema = external_exports.string().regex(/^lookbook_[0-9a-f-]{36}$
20541
20542
  var MusicVideoCastSchema = external_exports.object({ face_photo_id: ArtistPhotoIdSchema.optional(), outfit_photo_id: ArtistPhotoIdSchema.optional() }).strict();
20542
20543
  var MUSIC_VIDEO_SCENE_MODES = ["invent", "stock"];
20543
20544
  var MusicVideoScenesSchema = external_exports.object({ mode: external_exports.enum(MUSIC_VIDEO_SCENE_MODES) }).strict();
20545
+ var MUSIC_VIDEO_TAKES = ["cuts", "continuous"];
20544
20546
  var KitItemIdSchema = external_exports.string().regex(/^kit_[0-9a-f-]{36}$/, "A kit piece id (kit_\u2026)");
20545
20547
  var KitHandleSchema = external_exports.string().regex(KIT_HANDLE, "Lowercase letters, digits and hyphens, at most 40");
20546
20548
  var CropRectSchema = external_exports.object({ x: external_exports.number().min(0).max(1), y: external_exports.number().min(0).max(1), w: external_exports.number().min(0.02).max(1), h: external_exports.number().min(0.02).max(1) }).strict().refine((c) => c.x + c.w <= 1.0001 && c.y + c.h <= 1.0001, { message: "The crop must stay inside the image" });
@@ -20567,7 +20569,10 @@ var musicVideoBrief = {
20567
20569
  cast: MusicVideoCastSchema.optional(),
20568
20570
  scenes: MusicVideoScenesSchema.default({ mode: "invent" }),
20569
20571
  // Design the shoot: the lookbook whose kept pieces the video uses, like the kit pieces the direction mentions.
20570
- lookbook_id: LookbookIdSchema.optional()
20572
+ lookbook_id: LookbookIdSchema.optional(),
20573
+ // How the shots meet: cuts (between lines, like an edit; no pictures), or continuous takes, where the director carries a
20574
+ // shot on into the next through one picture drawn for the join (priced per picture).
20575
+ takes: external_exports.enum(MUSIC_VIDEO_TAKES).default("cuts")
20571
20576
  };
20572
20577
  var MUSIC_VIDEO_BRIEF_FIELDS = Object.keys(musicVideoBrief);
20573
20578
  var CAST_FIELDS = { face: "face_photo_id", outfit: "outfit_photo_id" };
@@ -20578,9 +20583,10 @@ var fitsModel = (value, ctx) => {
20578
20583
  if (value.style && !model.styles.includes(value.style)) issue2("style", `${model.label} doesn\u2019t make the ${MUSIC_VIDEO_STYLES[value.style].label} look`);
20579
20584
  if (!model.formats.includes(value.aspect_ratio)) issue2("aspect_ratio", `${model.label} makes ${model.formats.join(", ")}`);
20580
20585
  if (value.trim && value.trim.end_seconds - value.trim.start_seconds > model.maxSeconds + 1e-6) issue2("trim", `A music video is at most ${model.maxSeconds / 60} minutes: pick a shorter section`);
20581
- if (value.trim && value.trim.end_seconds - value.trim.start_seconds < model.clip.frames / model.clip.fps - 1e-6) issue2("trim", `A music video is at least ${model.minSeconds / 60} minute: pick a longer section`);
20586
+ if (value.trim && value.trim.end_seconds - value.trim.start_seconds < model.minSeconds - 1e-6) issue2("trim", `A music video is at least ${model.minSeconds} seconds: pick a longer section`);
20582
20587
  if (value.scenes && value.scenes.mode !== "invent" && !model.kit.places) issue2("scenes", `${model.label} invents every place`);
20583
20588
  for (const slot of MUSIC_VIDEO_CAST_SLOTS) if (value.cast?.[CAST_FIELDS[slot]] && !model.cast.includes(slot)) issue2("cast", `${model.label} takes no ${slot} photo`);
20589
+ if (value.takes === "continuous" && !(model.keyframes.start && model.keyframes.end)) issue2("takes", `${model.label} makes no continuous takes`);
20584
20590
  };
20585
20591
  var MusicVideoPlanRequestSchema = external_exports.object({
20586
20592
  song_id: common.song_id,
@@ -20647,7 +20653,7 @@ var lyricInput = external_exports.object({
20647
20653
  look: lyricShape.look.describe(`{"mode":"existing","id":"look_\u2026"} to reuse a saved Look (add "lyric_style" to render it in another lyric style, at no extra cost), or {"mode":"new","category":"\u2026","lyric_style":"\u2026","background":{"source":"ai-image","quality":"high"},"visibility":"private","direction":"\u2026"} to have one designed (background.source "upload-photo"/"upload-video" with background.upload_id from upload_background designs it around your own media; such a Look stays private. "stock-photo"/"stock-video" with background.stock_id from search_stock uses that stock photo or clip instead of the director's pick). lyric_style (optional, from get_options) sets how the lyrics are presented and animated: block-stack, punch, player, neon, terminal, cinematic\u2026 Omit it and the director picks one. background.scenes (2\u20134, AI image only) makes that many shots of the same world that cut on the song's sections, each priced like the first. background.references "stock" (AI image or AI video, default "none") with feature_artist "always" makes the background one real stock photo of a place the director picks, with the artist put into it and restyled a little for the Look; no extra cost. The singer is left out unless asked: feature_artist "always" (default "never") makes them the subject of the background, recognizable from their artist photos (add_artist_photos); it needs an AI image or AI video background, a private Look and display.cover false (the cover would hide them), and that Look then only serves this artist's songs. A saved Look that shows an artist (featured_artist) only serves that artist's songs, also with display.cover false`),
20648
20654
  aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
20649
20655
  display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes. cover must be false to show the artist in the background"),
20650
- trim: lyricShape.trim.describe("Render only this section of the song (at least 8 seconds)"),
20656
+ trim: lyricShape.trim.describe("Render only this section of the song (at least 8 seconds). Best: a part from get_song_analysis (parts[]: its start and end never cut a word)"),
20651
20657
  variations: lyricShape.variations.describe("1\u20134 different New Looks, one video each (an Existing Look renders one)")
20652
20658
  });
20653
20659
  var canvasInput = external_exports.object({
@@ -20672,12 +20678,13 @@ var musicVideoInput = external_exports.object({
20672
20678
  song_id: songId.describe("The song; its artist performs the video and needs photos (add_artist_photos)"),
20673
20679
  callback_url: CALLBACK,
20674
20680
  metadata: METADATA,
20675
- model: musicShape.model.describe("The music video model: one-take (default; one continuous, lip-synced take of the artist). get_options lists the models with the categories, styles, formats and length each makes"),
20681
+ model: musicShape.model.describe("The music video model: one-take (default; MiniMax H3 Max, the artist lip-synced in shots cut between the song's lines). get_options lists the models with the categories, styles, formats, takes and length each makes"),
20676
20682
  scenes: musicShape.scenes.describe(`Where it is set besides the places the direction mentions from the kit: {"mode":"invent"} (default: the director imagines the others) or {"mode":"stock"} (it finds a real stock photo of each place it writes, empty of people, and the artist is put into it), up to the model's kit.places in all`),
20677
- category: musicShape.category.describe("performance (default: sings to camera in one place), intercut (performance cut against the artist living the song's story), cinematic (a moving camera through a location), story (acts out the song's story in one take) or surreal (the world transforms with the song). get_options lists the ones each model makes"),
20683
+ category: musicShape.category.describe("performance (default: sings to camera in one place), intercut (performance cut against the artist living the song's story), cinematic (a moving camera through a location), story (acts out the song's story) or surreal (the world transforms with the song). get_options lists the ones each model makes"),
20678
20684
  style: musicShape.style.describe("Optional look: natural, film, golden-hour, neon-night, noir, vintage or dreamy. Omit it and the director picks one from the cover"),
20679
20685
  aspect_ratio: musicShape.aspect_ratio.describe('The one format of the file: "9:16" (default, vertical), "16:9" (wide) or "1:1" (square)'),
20680
- trim: musicShape.trim.describe("Perform only this section of the song (1 to 10 minutes); omitted, the whole song (1 to 10 minutes long). The price follows its length"),
20686
+ takes: musicShape.takes.describe(`How the shots meet: "cuts" (default: shots meet between the song's lines like an edit, with a cut or the transition the director picks at each join: dissolve, dip to black, flash or whip; ask for them, or for none, in direction) or "continuous" (the director may carry a shot on into the next through a picture drawn of the moment they meet, priced per picture; the quote before a plan counts every join, the plan's quote only the ones it draws)`),
20687
+ trim: musicShape.trim.describe("Perform only this section of the song (15 seconds to 10 minutes); omitted, the whole song (15 seconds to 10 minutes long). The price follows its length. Best: a part from get_song_analysis (parts[]: its start and end never cut a word)"),
20681
20688
  direction: musicShape.direction.describe(DIRECTION),
20682
20689
  lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
20683
20690
  cast: musicShape.cast.describe(CAST_DESCRIPTION),
@@ -20688,12 +20695,13 @@ var musicVideoInput = external_exports.object({
20688
20695
  var musicVideoPlanInput = external_exports.object({
20689
20696
  ...MusicVideoPlanRequestSchema.shape,
20690
20697
  song_id: songId.describe("The song; its artist performs the video and needs photos (add_artist_photos)"),
20691
- model: musicShape.model.describe("The music video model: one-take (default; one continuous, lip-synced take of the artist). get_options lists the models with the categories, styles, formats and length each makes"),
20698
+ model: musicShape.model.describe("The music video model: one-take (default; MiniMax H3 Max, the artist lip-synced in shots cut between the song's lines). get_options lists the models with the categories, styles, formats, takes and length each makes"),
20692
20699
  scenes: musicShape.scenes.describe(`Where it is set besides the places the direction mentions from the kit: {"mode":"invent"} (default: the director imagines the others) or {"mode":"stock"} (it finds a real stock photo of each place it writes, empty of people, and the artist is put into it), up to the model's kit.places in all`),
20693
20700
  category: musicShape.category.describe("performance (default), intercut, cinematic, story or surreal"),
20694
20701
  style: musicShape.style.describe("Optional look: natural, film, golden-hour, neon-night, noir, vintage or dreamy; omitted, the director picks one from the cover"),
20695
20702
  aspect_ratio: musicShape.aspect_ratio.describe('"9:16" (default), "16:9" or "1:1"'),
20696
- trim: musicShape.trim.describe("Only this section of the song (1 to 10 minutes); omitted, the whole song (1 to 10 minutes long)"),
20703
+ takes: musicShape.takes.describe(`How the shots meet: "cuts" (default: shots meet between the song's lines like an edit, with a cut or the transition the director picks at each join: dissolve, dip to black, flash or whip; ask for them, or for none, in direction) or "continuous" (the director may carry a shot on into the next through a picture drawn of the moment they meet, priced per picture; the quote before a plan counts every join, the plan's quote only the ones it draws)`),
20704
+ trim: musicShape.trim.describe("Only this section of the song (15 seconds to 10 minutes); omitted, the whole song (15 seconds to 10 minutes long). Best: a part from get_song_analysis (parts[]: its start and end never cut a word)"),
20697
20705
  direction: musicShape.direction.describe(DIRECTION),
20698
20706
  lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
20699
20707
  cast: musicShape.cast.describe(CAST_DESCRIPTION),
@@ -20809,7 +20817,7 @@ var OPERATIONS = [
20809
20817
  group: "account",
20810
20818
  title: "List the options",
20811
20819
  summary: "Video types, Look categories, background sources, formats and the current credit prices",
20812
- description: "Everything a request can choose from, with the credit table, and what's on sale (plans: each plan's monthly and yearly price in cents, monthly credits, limits and features, the recommended one marked highlighted; credit_packs: each pack's credits and price in cents). The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. Use it to pick a category or source and to explain prices.",
20820
+ description: "Everything a request can choose from, with the credit table, and what's on sale (plans: each plan's monthly and yearly price in cents, monthly credits, limits and features, the recommended one marked highlighted, and shelf: everyday for lyric videos, Canvas and some AI music videos, studio for AI music videos every month; credit_packs: each pack's credits and price in cents). The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. Use it to pick a category or source and to explain prices.",
20813
20821
  method: "GET",
20814
20822
  path: "/api/v1/options",
20815
20823
  scopes: ["videos:read", "music:read", "library:read"],
@@ -21235,12 +21243,12 @@ var OPERATIONS = [
21235
21243
  id: "songs.analysis",
21236
21244
  group: "songs",
21237
21245
  title: "Get a song\u2019s analysis",
21238
- summary: "Word-timed lyrics, tempo, beats, sections and hook",
21239
- description: "Use the section times to choose a trim for a lyric video. lyrics.text is the song\u2019s lyrics to edit: yours as you gave them, or the transcription a line per phrase (lyrics.yours says which).",
21246
+ summary: "Word-timed lyrics, tempo, beats, sections, hook and the parts a video can be cut to",
21247
+ description: 'parts lists where a video can start and end without cutting a word: each section (Verse 1, Chorus 1\u2026), clips of about 15 seconds cut between the lines of long sections (kind "clip", parent: its section) and each verse with the chorus after it (kind "pair"); pass a part\u2019s start and end as a video\u2019s trim (start_seconds, end_seconds), picking one at least as long as the video type\u2019s minimum (a lyric video 8 seconds, a music video 15). default_part is the one the app starts on: the sung part nearest 15 seconds. lyrics.text is the song\u2019s lyrics to edit: yours as you gave them, or the transcription a line per phrase (lyrics.yours says which).',
21240
21248
  method: "GET",
21241
21249
  path: "/api/v1/songs/{song_id}/analysis",
21242
21250
  scopes: ["music:read", "videos:read"],
21243
- input: external_exports.object({ song_id: songId }),
21251
+ input: external_exports.object({ song_id: songId, min_seconds: external_exports.number().min(8).max(600).optional().describe("The parts for a video at least this long: a music video 15 (its clips are cut no shorter). Default 8, a lyric video") }),
21244
21252
  readOnly: true,
21245
21253
  destructive: false,
21246
21254
  idempotent: true,
@@ -21468,7 +21476,7 @@ var OPERATIONS = [
21468
21476
  group: "videos",
21469
21477
  title: "Plan a music video",
21470
21478
  summary: "The director's treatment and shots for a music video, before anything is charged",
21471
- description: "Free (a limited number an hour). Takes about a minute. Returns a plan: the concept, the face and outfit photos, and one shot per 15-second clip with its lyrics. Show it to the user, rewrite it with revise until they like it, then quote_music_video and create_music_video with its plan_id.",
21479
+ description: "Free (a limited number an hour). Takes about a minute. Returns a plan: the concept, the face and outfit photos, and its shots (cut between the song's lines, up to about 14 seconds each) with their lyrics and how each comes in (a cut, the director's transition, or carrying on in a continuous take). Show it to the user, rewrite it with revise until they like it, then quote_music_video and create_music_video with its plan_id.",
21472
21480
  method: "POST",
21473
21481
  path: "/api/v1/music-video-plans",
21474
21482
  scopes: ["videos:write"],
@@ -25456,7 +25464,7 @@ async function revoke(config2) {
25456
25464
  // package.json
25457
25465
  var package_default = {
25458
25466
  name: "@kinetune/cli",
25459
- version: "0.10.0",
25467
+ version: "0.12.0",
25460
25468
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
25461
25469
  license: "MIT",
25462
25470
  homepage: "https://kinetune.com/developers#cli",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinetune/cli",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://kinetune.com/developers#cli",