@kinetune/cli 0.10.0 → 0.11.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: one continuous take, 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.
package/dist/kinetune.mjs CHANGED
@@ -20522,10 +20522,10 @@ 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 one continuous take.",
20527
20527
  clip: { fps: 24, frames: 360, context: 0 },
20528
- minSeconds: 60,
20528
+ minSeconds: 15,
20529
20529
  maxSeconds: 600,
20530
20530
  formats: ["9:16", "16:9", "1:1"],
20531
20531
  cast: ["face", "outfit"],
@@ -20578,7 +20578,7 @@ var fitsModel = (value, ctx) => {
20578
20578
  if (value.style && !model.styles.includes(value.style)) issue2("style", `${model.label} doesn\u2019t make the ${MUSIC_VIDEO_STYLES[value.style].label} look`);
20579
20579
  if (!model.formats.includes(value.aspect_ratio)) issue2("aspect_ratio", `${model.label} makes ${model.formats.join(", ")}`);
20580
20580
  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`);
20581
+ 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
20582
  if (value.scenes && value.scenes.mode !== "invent" && !model.kit.places) issue2("scenes", `${model.label} invents every place`);
20583
20583
  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`);
20584
20584
  };
@@ -20647,7 +20647,7 @@ var lyricInput = external_exports.object({
20647
20647
  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
20648
  aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
20649
20649
  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)"),
20650
+ 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
20651
  variations: lyricShape.variations.describe("1\u20134 different New Looks, one video each (an Existing Look renders one)")
20652
20652
  });
20653
20653
  var canvasInput = external_exports.object({
@@ -20677,7 +20677,7 @@ var musicVideoInput = external_exports.object({
20677
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"),
20678
20678
  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
20679
  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"),
20680
+ 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
20681
  direction: musicShape.direction.describe(DIRECTION),
20682
20682
  lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
20683
20683
  cast: musicShape.cast.describe(CAST_DESCRIPTION),
@@ -20693,7 +20693,7 @@ var musicVideoPlanInput = external_exports.object({
20693
20693
  category: musicShape.category.describe("performance (default), intercut, cinematic, story or surreal"),
20694
20694
  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
20695
  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)"),
20696
+ 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
20697
  direction: musicShape.direction.describe(DIRECTION),
20698
20698
  lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
20699
20699
  cast: musicShape.cast.describe(CAST_DESCRIPTION),
@@ -20809,7 +20809,7 @@ var OPERATIONS = [
20809
20809
  group: "account",
20810
20810
  title: "List the options",
20811
20811
  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.",
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, 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
20813
  method: "GET",
20814
20814
  path: "/api/v1/options",
20815
20815
  scopes: ["videos:read", "music:read", "library:read"],
@@ -21235,12 +21235,12 @@ var OPERATIONS = [
21235
21235
  id: "songs.analysis",
21236
21236
  group: "songs",
21237
21237
  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).",
21238
+ summary: "Word-timed lyrics, tempo, beats, sections, hook and the parts a video can be cut to",
21239
+ 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
21240
  method: "GET",
21241
21241
  path: "/api/v1/songs/{song_id}/analysis",
21242
21242
  scopes: ["music:read", "videos:read"],
21243
- input: external_exports.object({ song_id: songId }),
21243
+ 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
21244
  readOnly: true,
21245
21245
  destructive: false,
21246
21246
  idempotent: true,
@@ -25456,7 +25456,7 @@ async function revoke(config2) {
25456
25456
  // package.json
25457
25457
  var package_default = {
25458
25458
  name: "@kinetune/cli",
25459
- version: "0.10.0",
25459
+ version: "0.11.0",
25460
25460
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
25461
25461
  license: "MIT",
25462
25462
  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.11.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",