@kinetune/cli 0.11.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, 15 seconds 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"];
@@ -20523,8 +20523,9 @@ var DEFAULT_MUSIC_VIDEO_MODEL = "one-take";
20523
20523
  var MUSIC_VIDEO_MODELS = {
20524
20524
  "one-take": {
20525
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 one continuous take.",
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
+ keyframes: { start: true, end: true },
20528
20529
  minSeconds: 15,
20529
20530
  maxSeconds: 600,
20530
20531
  formats: ["9:16", "16:9", "1:1"],
@@ -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" };
@@ -20581,6 +20586,7 @@ var fitsModel = (value, ctx) => {
20581
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,
@@ -20672,11 +20678,12 @@ 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)'),
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)`),
20680
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),
@@ -20688,11 +20695,12 @@ 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"'),
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)`),
20696
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),
@@ -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.11.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.11.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",