@kinetune/cli 2.8.0 → 2.10.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 +11 -2
- package/dist/kinetune.mjs +97 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -148,6 +148,14 @@ kinetune songs set-lyrics SONG_ID --lyrics-file ./midnight-drive.srt # add or
|
|
|
148
148
|
kinetune songs clear-lyrics SONG_ID # back to the transcribed words
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
+
Every director reads the song's brief first: what it is about, its story, how the feeling moves through its sections.
|
|
152
|
+
`songs get` shows it (`brief`). When it reads the song wrong, correct it; your version is kept until you ask for a rewrite:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
kinetune songs edit-brief SONG_ID --theme "A daughter talking to her late father about the life he missed"
|
|
156
|
+
kinetune songs rewrite-brief SONG_ID # drop your correction, read the song again
|
|
157
|
+
```
|
|
158
|
+
|
|
151
159
|
A song without cover art gets one this way too. A new cover goes in use and the one before stays on the song
|
|
152
160
|
(`covers list`); videos already made keep theirs, and everything made next uses it:
|
|
153
161
|
|
|
@@ -164,7 +172,7 @@ the round first and send the same credits; only covers that pass their check are
|
|
|
164
172
|
kinetune covers quote --count 2 # credits for 2 covers, and redraw_credits
|
|
165
173
|
kinetune covers make --song-id SONG_ID --count 2 --credits 190 \
|
|
166
174
|
--style painted --vibes sad --vibes space --artist never \
|
|
167
|
-
--idea "A motel pool at night" --words title # words are
|
|
175
|
+
--idea "A motel pool at night" --words title # words are lettered in, spelled exactly as the song
|
|
168
176
|
kinetune covers get REQUEST_ID # each cover as it is drawn
|
|
169
177
|
kinetune covers redraw REQUEST_ID --cover-id COVER_ID --note "Warmer, the moon bigger" --credits 40
|
|
170
178
|
```
|
|
@@ -172,7 +180,8 @@ kinetune covers redraw REQUEST_ID --cover-id COVER_ID --note "Warmer, the moon b
|
|
|
172
180
|
`--style` is how it is made (`auto`, the director's pick, by default; `portrait`, `snapshot`, `film-still`, `object`,
|
|
173
181
|
`place`, `painted`, `illustrated`, `cartoon`, `anime`, `collage`, `3d`, `graphic`, `type`), `--vibes` up to two moods
|
|
174
182
|
(`dark`, `sad`, `romantic`, `aggressive`, `luxury`, `aesthetic`, `urban`, `hood`, `space`, `surreal`, `vintage`),
|
|
175
|
-
`--artist` `auto`, `always` (needs their character) or `never
|
|
183
|
+
`--artist` `auto`, `always` (needs their character) or `never` (with the artist, a song about two people may also show the
|
|
184
|
+
other person, always an invented one), `--words` `none`, `title` or `artist_title` (the `type`
|
|
176
185
|
style needs words).
|
|
177
186
|
|
|
178
187
|
Every cover a song has had, made or uploaded, stays on it until you delete it. The song keeps its cover until you pick
|
package/dist/kinetune.mjs
CHANGED
|
@@ -19793,6 +19793,8 @@ var VIZZ_ENGINE_IDS = [
|
|
|
19793
19793
|
"light-trails",
|
|
19794
19794
|
"classic-spectrum"
|
|
19795
19795
|
];
|
|
19796
|
+
var LIQUID_ENGINE = "liquid";
|
|
19797
|
+
var VISUALIZER_ENGINE_IDS = [...VIZZ_ENGINE_IDS, LIQUID_ENGINE];
|
|
19796
19798
|
|
|
19797
19799
|
// ../composition/src/lyric-styles.ts
|
|
19798
19800
|
var LYRIC_STAGES = ["showcase", "kinetic"];
|
|
@@ -20236,7 +20238,7 @@ var TypeRoleSchema = external_exports.object({
|
|
|
20236
20238
|
// em
|
|
20237
20239
|
}).strict();
|
|
20238
20240
|
var ShotSchema = external_exports.object({
|
|
20239
|
-
engine: external_exports.enum(
|
|
20241
|
+
engine: external_exports.enum(VISUALIZER_ENGINE_IDS),
|
|
20240
20242
|
preset_id: external_exports.string().min(1).max(120),
|
|
20241
20243
|
overrides: external_exports.record(external_exports.string(), external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])).default({}),
|
|
20242
20244
|
camera: external_exports.enum(["still", "drift", "push", "pull", "orbit", "roll"]),
|
|
@@ -20295,6 +20297,11 @@ var BackgroundSchema = external_exports.discriminatedUnion("kind", [
|
|
|
20295
20297
|
ink: hex3,
|
|
20296
20298
|
scale: external_exports.number().min(0.5).max(3),
|
|
20297
20299
|
motion: external_exports.enum(["still", "drift", "spin"])
|
|
20300
|
+
}).strict(),
|
|
20301
|
+
// No picture: the visualizer fills the frame behind the lyrics and cards, over this dark ground.
|
|
20302
|
+
external_exports.object({
|
|
20303
|
+
kind: external_exports.literal("visualizer"),
|
|
20304
|
+
ground: hex3
|
|
20298
20305
|
}).strict()
|
|
20299
20306
|
]);
|
|
20300
20307
|
var LookSpecSchema = external_exports.object({
|
|
@@ -20326,7 +20333,8 @@ var LookSpecSchema = external_exports.object({
|
|
|
20326
20333
|
overlay: external_exports.object({ kind: external_exports.enum(OVERLAYS), density: external_exports.number().min(0).max(1) }).strict(),
|
|
20327
20334
|
visualizer: external_exports.object({
|
|
20328
20335
|
blend: external_exports.enum(["screen", "lighten", "normal"]),
|
|
20329
|
-
|
|
20336
|
+
// 0 = none: the picture alone (over a picture each visual is also capped at its own measured maximum).
|
|
20337
|
+
intensity: external_exports.number().min(0).max(1),
|
|
20330
20338
|
shots: external_exports.object(Object.fromEntries(SECTION_TYPES.map((t) => [t, ShotSchema]))).strict()
|
|
20331
20339
|
}).strict(),
|
|
20332
20340
|
motion: external_exports.object({
|
|
@@ -20429,6 +20437,15 @@ var OutroDesignSchema = external_exports.object({
|
|
|
20429
20437
|
}).strict();
|
|
20430
20438
|
var OutroDisplaySchema = DisplaySchema.omit({ lyrics: true, headline: true });
|
|
20431
20439
|
|
|
20440
|
+
// ../composition/src/visualizers/choice-schema.ts
|
|
20441
|
+
var VisualKeySchema = external_exports.string().regex(/^[A-Za-z0-9-]+\/[a-z0-9-]+$/, 'A visual key from GET /v1/options (visualizers), like "liquid/amber-aurora"');
|
|
20442
|
+
var VisualChoiceSchema = external_exports.object({
|
|
20443
|
+
/** The visual for the whole song, or "none" (no visual at all). */
|
|
20444
|
+
preset: external_exports.union([external_exports.literal("none"), VisualKeySchema]),
|
|
20445
|
+
/** Another visual for some sections (intro, verse, chorus, bridge, drop, outro). */
|
|
20446
|
+
sections: external_exports.partialRecord(external_exports.enum(SECTION_TYPES), VisualKeySchema).optional()
|
|
20447
|
+
}).strict();
|
|
20448
|
+
|
|
20432
20449
|
// ../video-types/src/kit.ts
|
|
20433
20450
|
var KIT_KINDS = ["outfit", "place", "prop"];
|
|
20434
20451
|
var KIT_ANGLES = ["three-quarter", "side", "low"];
|
|
@@ -20581,7 +20598,9 @@ var TrimSchema = external_exports.object({
|
|
|
20581
20598
|
start_seconds: external_exports.number().min(0),
|
|
20582
20599
|
end_seconds: external_exports.number().positive()
|
|
20583
20600
|
}).strict().refine((v) => v.end_seconds > v.start_seconds, { message: "end_seconds must be greater than start_seconds" }).refine((v) => v.end_seconds - v.start_seconds >= MIN_TRIM_SECONDS - 1e-6, { message: `The trimmed section must be at least ${MIN_TRIM_SECONDS} seconds` });
|
|
20584
|
-
var
|
|
20601
|
+
var FREE_VIDEO_MAX_SECONDS = 60;
|
|
20602
|
+
var FREE_VIDEO_RULE = `Your free video is one lyric video of your free song, up to ${FREE_VIDEO_MAX_SECONDS} seconds of it, with a Look from the library, in one format.`;
|
|
20603
|
+
var BACKGROUND_SOURCE_IDS = ["ai-image", "ai-video", "stock-photo", "stock-video", "upload-photo", "upload-video", "designed", "visualizer"];
|
|
20585
20604
|
var MEDIA_BACKGROUND_SOURCES = ["ai-image", "ai-video", "stock-photo", "stock-video", "upload-photo", "upload-video"];
|
|
20586
20605
|
var BACKGROUND_SOURCES2 = {
|
|
20587
20606
|
"ai-image": { label: "AI image", description: "An image made for this Look, moving slowly across the song.", kind: "image", source: "generated" },
|
|
@@ -20590,7 +20609,8 @@ var BACKGROUND_SOURCES2 = {
|
|
|
20590
20609
|
"stock-video": { label: "Stock video", description: "A stock clip made into a seamless loop.", kind: "video", source: "stock" },
|
|
20591
20610
|
"upload-photo": { label: "Your photo", description: "A photo you upload, moving slowly across the song.", kind: "image", source: "upload" },
|
|
20592
20611
|
"upload-video": { label: "Your video", description: "A clip you upload, made into a seamless loop.", kind: "video", source: "upload" },
|
|
20593
|
-
designed: { label: "Designed", description: "A moving gradient or pattern the director designs
|
|
20612
|
+
designed: { label: "Designed", description: "A moving gradient or pattern the director designs for your song.", kind: null, source: null },
|
|
20613
|
+
visualizer: { label: "Visualizer", description: "No picture: a visual that moves with your music fills the frame behind the words.", kind: null, source: null }
|
|
20594
20614
|
};
|
|
20595
20615
|
var MAX_BACKGROUND_SCENES = 4;
|
|
20596
20616
|
var SINGLE_SCENE_STYLES = ["behind", "screen"];
|
|
@@ -20621,7 +20641,7 @@ var UploadCreateSchema = external_exports.object({
|
|
|
20621
20641
|
size_bytes: external_exports.number().int().min(1).max(UPLOAD_MAX_BYTES)
|
|
20622
20642
|
}).strict();
|
|
20623
20643
|
var isUploadSource = (source) => BACKGROUND_SOURCES2[source].source === "upload";
|
|
20624
|
-
var backgroundSourcesFor = (category) => categoryUsesImages(category) ? [...MEDIA_BACKGROUND_SOURCES, "designed"] : ["designed", ...MEDIA_BACKGROUND_SOURCES];
|
|
20644
|
+
var backgroundSourcesFor = (category) => categoryUsesImages(category) ? [...MEDIA_BACKGROUND_SOURCES, "designed", "visualizer"] : ["designed", ...MEDIA_BACKGROUND_SOURCES, "visualizer"];
|
|
20625
20645
|
var backgroundSourceFor = (category, background) => background.source ?? backgroundSourcesFor(category)[0];
|
|
20626
20646
|
var LOOK_FEATURE_ARTIST_MODES = ["never", "always"];
|
|
20627
20647
|
var CANVAS_FEATURE_ARTIST_MODES = ["auto", "always", "never"];
|
|
@@ -20633,9 +20653,11 @@ var LookRequestSchema = external_exports.discriminatedUnion("mode", [
|
|
|
20633
20653
|
visibility: external_exports.enum(["private", "public"]).default("private"),
|
|
20634
20654
|
direction: external_exports.string().trim().max(2e3).optional(),
|
|
20635
20655
|
feature_artist: external_exports.enum(LOOK_FEATURE_ARTIST_MODES).default("never"),
|
|
20636
|
-
lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional()
|
|
20656
|
+
lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional(),
|
|
20657
|
+
/** The visual the person picked (GET /v1/options visualizers); omitted: the director picks one per section. */
|
|
20658
|
+
visual: VisualChoiceSchema.optional()
|
|
20637
20659
|
}).strict(),
|
|
20638
|
-
external_exports.object({ mode: external_exports.literal("existing"), id: external_exports.string().min(1).max(120), lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional() }).strict()
|
|
20660
|
+
external_exports.object({ mode: external_exports.literal("existing"), id: external_exports.string().min(1).max(120), lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional(), visual: VisualChoiceSchema.optional() }).strict()
|
|
20639
20661
|
]);
|
|
20640
20662
|
var common = {
|
|
20641
20663
|
song_id: external_exports.string().min(1).max(120),
|
|
@@ -20688,8 +20710,8 @@ var CANVAS_MIN_SECONDS = 5;
|
|
|
20688
20710
|
var CANVAS_MAX_SECONDS = 8;
|
|
20689
20711
|
var CANVAS_SOURCE_IDS = ["ai-video", "ai-image", "stock-photo", "stock-video"];
|
|
20690
20712
|
var CANVAS_SOURCES = {
|
|
20691
|
-
"ai-video": { label: "AI video", description: "An image made
|
|
20692
|
-
"ai-image": { label: "AI image", description: "An image made
|
|
20713
|
+
"ai-video": { label: "AI video", description: "An image made for your song, brought to life by a video model.", kind: "video", source: "generated" },
|
|
20714
|
+
"ai-image": { label: "AI image", description: "An image made for your song, moved by our motion model.", kind: "image", source: "generated" },
|
|
20693
20715
|
"stock-photo": { label: "Stock photo", description: "A stock photo moved by our motion model.", kind: "image", source: "stock" },
|
|
20694
20716
|
"stock-video": { label: "Stock video", description: "A stock clip cut into a seamless loop.", kind: "video", source: "stock" }
|
|
20695
20717
|
};
|
|
@@ -20990,6 +21012,9 @@ var MusicVideoRequestSchema = external_exports.object({
|
|
|
20990
21012
|
});
|
|
20991
21013
|
var VideoRequestSchema = external_exports.discriminatedUnion("type", [LyricVideoRequestSchema, CanvasRequestSchema, MusicVideoRequestSchema]);
|
|
20992
21014
|
|
|
21015
|
+
// ../api-spec/src/song-brief.ts
|
|
21016
|
+
var SONG_BRIEF_LIMITS = { theme: 400, tone: 80, story: 1200, setting: 300, section: 60, feeling: 240, sections: 40 };
|
|
21017
|
+
|
|
20993
21018
|
// ../api-spec/src/versioning.ts
|
|
20994
21019
|
var API_VERSION = 1;
|
|
20995
21020
|
var deprecationNote = (d) => `Deprecated since ${d.since}${d.use ? `: use ${d.use} instead` : ""}. It stops working on ${d.sunset}.`;
|
|
@@ -21035,6 +21060,16 @@ var UploadSchema = external_exports.looseObject({
|
|
|
21035
21060
|
file_expires_at: external_exports.string(),
|
|
21036
21061
|
uploads_per_day: external_exports.number().int()
|
|
21037
21062
|
});
|
|
21063
|
+
var SongBriefSchema = external_exports.looseObject({
|
|
21064
|
+
status: external_exports.enum(["writing", "ready"]).describe("writing: being written (the fields are null until ready)"),
|
|
21065
|
+
theme: external_exports.string().nullable().describe("What the song is about, in a sentence"),
|
|
21066
|
+
tone: external_exports.string().nullable().describe("Its register, in a few words"),
|
|
21067
|
+
story: external_exports.string().nullable().describe("The story or situation under the words (null for a mood piece)"),
|
|
21068
|
+
mood_arc: external_exports.array(external_exports.object({ section: external_exports.string(), feeling: external_exports.string() })).describe("How the feeling moves through it, section by section"),
|
|
21069
|
+
setting: external_exports.string().nullable().describe("An era, a place or a scene it evokes (null when none)"),
|
|
21070
|
+
edited: external_exports.boolean().describe("The user corrected it: directors read their version, and nothing replaces it until rewrite_song_brief"),
|
|
21071
|
+
updated_at: external_exports.string().nullable()
|
|
21072
|
+
});
|
|
21038
21073
|
var LYRICS = "The song\u2019s lyrics as text: plain (Suno-style [Verse]/[Chorus] tags and (x2) marks are fine), or the contents of an SRT, WebVTT or LRC file. Every word is still timed from the audio: your text fixes misheard words and sets where lines break in videos, and its section tags set the song\u2019s sections (a chorus sung once is still a chorus). A part sung again (a chorus) can be written once; lyrics that don\u2019t match what\u2019s sung, or cover only part of it, are refused";
|
|
21039
21074
|
var KIT_ABOUT = "The kit is what a music video is made from besides the artist\u2019s character: outfits, places and props. Each is in one artist\u2019s kit (owner_artist_id, a project in a Creator workspace; an outfit\u2019s is its artist_id) and serves their songs; shared true offers it to every other artist\u2019s songs too (owner_name says whose it is). Each has a name and an @handle unique in the workspace; a music video brief (direction) that mentions @handle uses that piece exactly as it is, and the director designs the rest.";
|
|
21040
21075
|
var NEEDS_PLAN = "Needs an active plan (402 plan_required without one; get_account: plan.active) and room in its storage (402 storage_full when it would not fit; get_account: storage).";
|
|
@@ -21055,7 +21090,7 @@ var lyricInput = external_exports.object({
|
|
|
21055
21090
|
song_id: songId,
|
|
21056
21091
|
callback_url: CALLBACK,
|
|
21057
21092
|
metadata: METADATA,
|
|
21058
|
-
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 (any category takes any background.source, "designed" being a free moving gradient the director draws; 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 character (list_characters; start_character makes one); 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`),
|
|
21093
|
+
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 (any category takes any background.source, "designed" being a free moving gradient the director draws; 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. visual (both modes, optional) picks the visual that moves with the music: {"preset":"liquid/amber-aurora"} for the whole song, "sections":{"chorus":"\u2026"} for some sections, or {"preset":"none"} for no visual; keys from get_options visualizers.presets; omit it and the director picks per section. background.source "visualizer" has no picture: the visual fills the frame behind the words (free). 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 character (list_characters; start_character makes one); 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`),
|
|
21059
21094
|
aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
|
|
21060
21095
|
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"),
|
|
21061
21096
|
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)"),
|
|
@@ -21288,7 +21323,7 @@ var OPERATIONS = [
|
|
|
21288
21323
|
group: "account",
|
|
21289
21324
|
title: "Get the account",
|
|
21290
21325
|
summary: "Who you are signed in as, the organization (workspace) and its credit balance",
|
|
21291
|
-
description: "Returns the organization the credentials act for (the workspace, as the app calls it; type artist holds one artist, label a roster, creator projects), how they authenticate and their scopes, the credit balance (available, monthly, top-ups) and its plan, if any: active says whether it lets the workspace create (without an active plan, creating answers 402 plan_required), storage (used_bytes against limit_bytes: an upload or new video that does not fit answers 402 storage_full, and deleting videos or archiving songs frees space at once), where it is billed, when the period ends, and a downgrade or interval switch waiting for the renewal as scheduled_change. Without a plan, free_song says where the person's one free song stands (signed in as them, never with an API key, where it is null, as it is with a plan): available (upload one song now, with create_song; it plays in the Looks), unverified (they confirm their email first), used (its song_id and title, and video: available true while its one free video is still to make, video_id once it is) or taken (it went to another workspace or account). The free video is a lyric video of the free song with an existing Look (look.mode existing) in one aspect ratio, quoted and created as usual: it holds no credits; anything else answers 402 plan_required. Monthly credits reset every month; top-ups never expire. On the organization, " + IMAGE_FALLBACK + " Check it before creating anything.",
|
|
21326
|
+
description: "Returns the organization the credentials act for (the workspace, as the app calls it; type artist holds one artist, label a roster, creator projects), how they authenticate and their scopes, the credit balance (available, monthly, top-ups) and its plan, if any: active says whether it lets the workspace create (without an active plan, creating answers 402 plan_required), storage (used_bytes against limit_bytes: an upload or new video that does not fit answers 402 storage_full, and deleting videos or archiving songs frees space at once), where it is billed, when the period ends, and a downgrade or interval switch waiting for the renewal as scheduled_change. Without a plan, free_song says where the person's one free song stands (signed in as them, never with an API key, where it is null, as it is with a plan): available (upload one song now, with create_song; it plays in the Looks), unverified (they confirm their email first), used (its song_id and title, and video: available true while its one free video is still to make, video_id once it is) or taken (it went to another workspace or account). The free video is a lyric video of the free song with an existing Look (look.mode existing) in one aspect ratio, of at most " + FREE_VIDEO_MAX_SECONDS + " seconds of it (a trim: a part of a longer song), quoted and created as usual: it holds no credits; anything else answers 402 plan_required. Monthly credits reset every month; top-ups never expire. On the organization, " + IMAGE_FALLBACK + " Check it before creating anything.",
|
|
21292
21327
|
method: "GET",
|
|
21293
21328
|
path: "/api/v1/account",
|
|
21294
21329
|
scopes: ["videos:read", "music:read", "library:read"],
|
|
@@ -21326,7 +21361,7 @@ var OPERATIONS = [
|
|
|
21326
21361
|
group: "account",
|
|
21327
21362
|
title: "List the options",
|
|
21328
21363
|
summary: "Video types, Look categories, background sources, formats and the current credit prices",
|
|
21329
|
-
description: "Everything a request can choose from, with the credit table (plans and credit_packs: the plan catalog the app shows, each plan's monthly credits, limits, features and shelf, its prices in cents and the app's highlighted one, and each pack's credits and price; reference only, nothing is bought through the API; music_video.categories: each kind, with demos, the real music videos of it Kinetune chose: one per model (model: its id) and a fallback (model null) for a model without its own; each with sound in video_url, a few silent seconds from its poster moment hover_seconds in hover_url, its poster in still_url, made_with: the model and quality it was made with, and story: its brief, the director's idea and its shots; signed for about a week. Show the one for the model in hand, else the fallback; demo is the fallback alone, as before. music_video.styles: each visual style (how the video is rendered), with its one picture: image_url (512 px square WebP) and thumbnail_url (160 px); its demo and demos are deprecated (still given until 2027-05-05: use image_url). music_video.models[].guide: what each model is best for (best_for), its strengths and weaknesses, the kinds it suits, its sharpest resolution (max_quality), public benchmark scores (board, entry, score, source, url, date) and page_url, the page comparing them; music_video.categories[].recommended_model: the offered model to suggest for that kind when the person hasn't named one. The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. credits.character_sheet: what drawing one character sheet costs now (draw_character_sheet). Use it to pick a category or source and to explain prices.",
|
|
21364
|
+
description: "Everything a request can choose from, with the credit table (plans and credit_packs: the plan catalog the app shows, each plan's monthly credits, limits, features and shelf, its prices in cents and the app's highlighted one, and each pack's credits and price; reference only, nothing is bought through the API; music_video.categories: each kind, with demos, the real music videos of it Kinetune chose: one per model (model: its id) and a fallback (model null) for a model without its own; each with sound in video_url, a few silent seconds from its poster moment hover_seconds in hover_url, its poster in still_url, made_with: the model and quality it was made with, and story: its brief, the director's idea and its shots; signed for about a week. Show the one for the model in hand, else the fallback; demo is the fallback alone, as before. music_video.styles: each visual style (how the video is rendered), with its one picture: image_url (512 px square WebP) and thumbnail_url (160 px); its demo and demos are deprecated (still given until 2027-05-05: use image_url). music_video.models[].guide: what each model is best for (best_for), its strengths and weaknesses, the kinds it suits, its sharpest resolution (max_quality), public benchmark scores (board, entry, score, source, url, date) and page_url, the page comparing them; music_video.categories[].recommended_model: the offered model to suggest for that kind when the person hasn't named one. The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. credits.character_sheet: what drawing one character sheet costs now (draw_character_sheet). credits.cover: what a round of covers costs now, counts by how many (1 to 4), and redraw, one cover redrawn with a note (make_cover, redraw_cover). credits.examples: what a lyric video of a song_seconds song costs now in one 9:16 format, by how its Look is made (saved_look, new_look, new_look_ai_video), and clips: the same for the parts of a song people post (seconds: 15, 30, 60). Use it to pick a category or source and to explain prices.",
|
|
21330
21365
|
method: "GET",
|
|
21331
21366
|
path: "/api/v1/options",
|
|
21332
21367
|
scopes: ["videos:read", "music:read", "library:read"],
|
|
@@ -21890,7 +21925,7 @@ var OPERATIONS = [
|
|
|
21890
21925
|
group: "songs",
|
|
21891
21926
|
title: "Get a song",
|
|
21892
21927
|
summary: "One song and its analysis status",
|
|
21893
|
-
description: `${COVER_SIZES} analysis.lyrics.status says whose words its videos show: "transcribed" (as heard), "checked" (your lyrics, timed from the audio; corrected, added and kept count what checking did), "waiting" (your lyrics, checked once the analysis finishes) or "mismatch" (your lyrics didn\u2019t match what\u2019s sung, so the transcription is used).`,
|
|
21928
|
+
description: `${COVER_SIZES} analysis.lyrics.status says whose words its videos show: "transcribed" (as heard), "checked" (your lyrics, timed from the audio; corrected, added and kept count what checking did), "waiting" (your lyrics, checked once the analysis finishes) or "mismatch" (your lyrics didn\u2019t match what\u2019s sung, so the transcription is used). brief: what the song is about as every director reads it (theme, tone, story, mood_arc by section, setting), null before the analysis; status writing while it is written (a song analysed without one has it started by this call: get it again in half a minute), edited true once the user corrected it (edit_song_brief).`,
|
|
21894
21929
|
method: "GET",
|
|
21895
21930
|
path: "/api/v1/songs/{song_id}",
|
|
21896
21931
|
scopes: ["music:read", "videos:read"],
|
|
@@ -21976,7 +22011,7 @@ var OPERATIONS = [
|
|
|
21976
22011
|
group: "songs",
|
|
21977
22012
|
title: "Make covers",
|
|
21978
22013
|
summary: "Kinetune\u2019s cover art director makes 1 to 4 covers for a song, each a different idea",
|
|
21979
|
-
description: `The director reads the song (its meaning, never a lyric drawn literally), the user's choices and the artist's character, and the image model draws each cover; each is checked (no letters in the picture, reads as a thumbnail) and kept on the song (list_song_covers) as it is drawn, in about a minute. Only covers that pass are charged; the song keeps its cover until the user picks one (use_cover). style: how it is made (auto: the director picks); vibes: up to ${COVER_VIBES_MAX} moods (dark, sad, hood, luxury\u2026); artist: auto (the director decides), always (needs their character), never; idea: the user's own words; words: none, title, or artist_title,
|
|
22014
|
+
description: `The director reads the song (its meaning, never a lyric drawn literally), the user's choices and the artist's character, and the image model draws each cover; each is checked (no letters in the picture, reads as a thumbnail) and kept on the song (list_song_covers) as it is drawn, in about a minute. Only covers that pass are charged; the song keeps its cover until the user picks one (use_cover). style: how it is made (auto: the director picks); vibes: up to ${COVER_VIBES_MAX} moods (dark, sad, hood, luxury\u2026); artist: auto (the director decides), always (needs their character), never; when the song is about two people (a love song, a duet) the director may show the other person beside the artist, partly or fully, always an invented person, never a real likeness (never with artist never); idea: the user's own words; words: none, title, or artist_title, lettered into the cover in the artist's typeface and read back letter by letter, always spelled as the song (the type style needs words); look: overrides the artist's colours and typeface. Ask the user for their choices rather than guessing, and quote first (quote_cover): credits must match. Needs a paid plan (402 plan_required) and an analysed song (409 song_not_ready); one round per song at a time (409 covers_in_progress).`,
|
|
21980
22015
|
method: "POST",
|
|
21981
22016
|
path: "/api/v1/cover-requests",
|
|
21982
22017
|
scopes: ["music:write", "videos:write"],
|
|
@@ -21985,9 +22020,9 @@ var OPERATIONS = [
|
|
|
21985
22020
|
count: external_exports.number().int().min(COVER_COUNT.min).max(COVER_COUNT.max).optional().describe("How many covers, each a different idea (1 to 4, default 1)"),
|
|
21986
22021
|
style: external_exports.enum(COVER_STYLE_IDS).optional().describe("How it is made (default auto: the director picks)"),
|
|
21987
22022
|
vibes: external_exports.array(external_exports.enum(COVER_VIBE_IDS)).max(COVER_VIBES_MAX).optional().describe("Up to two moods or worlds"),
|
|
21988
|
-
artist: external_exports.enum(COVER_ARTIST_MODES).optional().describe("Who is on it: auto (the director decides), always (the artist), never"),
|
|
22023
|
+
artist: external_exports.enum(COVER_ARTIST_MODES).optional().describe("Who is on it: auto (the director decides), always (the artist), never (no one). With the artist, a song about two people may also show the other person, always invented"),
|
|
21989
22024
|
idea: external_exports.string().trim().max(COVER_IDEA_MAX).optional().describe("The user's idea, in their words"),
|
|
21990
|
-
words: external_exports.enum(COVER_WORDS).optional().describe("Words on the cover,
|
|
22025
|
+
words: external_exports.enum(COVER_WORDS).optional().describe("Words on the cover, spelled exactly as the song: none (default), title, artist_title"),
|
|
21991
22026
|
look: CoverLookSchema.optional().describe("The artist's colours (hex) and typeface for this round"),
|
|
21992
22027
|
credits: external_exports.number().int().positive().describe("credits from quote_cover for this count, as shown to the user")
|
|
21993
22028
|
}),
|
|
@@ -22148,6 +22183,51 @@ var OPERATIONS = [
|
|
|
22148
22183
|
cli: ["songs", "clear-lyrics"],
|
|
22149
22184
|
mcp: "clear_song_lyrics"
|
|
22150
22185
|
},
|
|
22186
|
+
{
|
|
22187
|
+
id: "songs.edit_brief",
|
|
22188
|
+
group: "songs",
|
|
22189
|
+
title: "Correct a song\u2019s brief",
|
|
22190
|
+
summary: "Rewrite what the song is about, in the user\u2019s words",
|
|
22191
|
+
description: `The brief (get_song: brief) is what every director reads before making anything for the song: its theme, the story under it, how the feeling moves through its sections (mood_arc), the setting it evokes and its tone. When it reads the song wrong ("it\u2019s about my father, not a breakup"), send the fields to change; the others stay. mood_arc replaces the whole list (a section with an empty feeling is dropped); null or "" clears tone, story or setting; theme can\u2019t be emptied. Plain text, on one line each. The correction is the user\u2019s: brief.edited is true, every video, Canvas and cover made from then on reads it, and nothing replaces it (new lyrics or a new analysis keep it) until rewrite_song_brief. 409 while a song without a brief yet is sent no theme.`,
|
|
22192
|
+
method: "PATCH",
|
|
22193
|
+
path: "/api/v1/songs/{song_id}/brief",
|
|
22194
|
+
scopes: ["music:write", "videos:write"],
|
|
22195
|
+
input: external_exports.object({
|
|
22196
|
+
song_id: songId,
|
|
22197
|
+
theme: external_exports.string().max(SONG_BRIEF_LIMITS.theme).optional().describe("What the song is about, in a sentence"),
|
|
22198
|
+
tone: external_exports.string().max(SONG_BRIEF_LIMITS.tone).nullable().optional().describe("Its register, in a few words (tender, comic parody, defiant\u2026)"),
|
|
22199
|
+
story: external_exports.string().max(SONG_BRIEF_LIMITS.story).nullable().optional().describe("The story or situation under the words: who it is about, what happens"),
|
|
22200
|
+
setting: external_exports.string().max(SONG_BRIEF_LIMITS.setting).nullable().optional().describe("An era, a place or a scene it evokes"),
|
|
22201
|
+
mood_arc: external_exports.array(external_exports.object({
|
|
22202
|
+
section: external_exports.string().min(1).max(SONG_BRIEF_LIMITS.section).describe("The section, as the brief names it (Verse 1, Chorus 2\u2026)"),
|
|
22203
|
+
feeling: external_exports.string().max(SONG_BRIEF_LIMITS.feeling).describe("The feeling there, in a few words")
|
|
22204
|
+
})).max(SONG_BRIEF_LIMITS.sections).optional().describe("How the feeling moves through the song, section by section: replaces the whole list")
|
|
22205
|
+
}),
|
|
22206
|
+
readOnly: false,
|
|
22207
|
+
destructive: false,
|
|
22208
|
+
idempotent: true,
|
|
22209
|
+
cli: ["songs", "edit-brief"],
|
|
22210
|
+
mcp: "edit_song_brief",
|
|
22211
|
+
output: { name: "SongBrief", schema: SongBriefSchema },
|
|
22212
|
+
example: { song_id: "song_\u2026", theme: "A daughter talking to her late father about the life he missed" }
|
|
22213
|
+
},
|
|
22214
|
+
{
|
|
22215
|
+
id: "songs.remake_brief",
|
|
22216
|
+
group: "songs",
|
|
22217
|
+
title: "Rewrite a song\u2019s brief from the song",
|
|
22218
|
+
summary: "Drop the user\u2019s correction and read the song again",
|
|
22219
|
+
description: "Writes the brief again from the song as it is now (its lyrics and analysis), in the background: the answer has status writing; poll get_song until brief.status is ready, usually within half a minute. The user\u2019s correction (brief.edited) is dropped, so ask first. Free; a few times a day per song (429 past that). 409 while the song is being analysed.",
|
|
22220
|
+
method: "POST",
|
|
22221
|
+
path: "/api/v1/songs/{song_id}/brief",
|
|
22222
|
+
scopes: ["music:write", "videos:write"],
|
|
22223
|
+
input: external_exports.object({ song_id: songId }),
|
|
22224
|
+
readOnly: false,
|
|
22225
|
+
destructive: true,
|
|
22226
|
+
idempotent: false,
|
|
22227
|
+
cli: ["songs", "rewrite-brief"],
|
|
22228
|
+
mcp: "rewrite_song_brief",
|
|
22229
|
+
output: { name: "SongBrief", schema: SongBriefSchema }
|
|
22230
|
+
},
|
|
22151
22231
|
/* Looks */
|
|
22152
22232
|
{
|
|
22153
22233
|
id: "looks.list",
|
|
@@ -26754,7 +26834,7 @@ async function revoke(config2, auth = config2.auth) {
|
|
|
26754
26834
|
// package.json
|
|
26755
26835
|
var package_default = {
|
|
26756
26836
|
name: "@kinetune/cli",
|
|
26757
|
-
version: "2.
|
|
26837
|
+
version: "2.10.0",
|
|
26758
26838
|
description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
|
|
26759
26839
|
license: "MIT",
|
|
26760
26840
|
homepage: "https://kinetune.com/developers#cli",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinetune/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.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",
|