@marlinjai/studio-mcp 0.21.1 → 0.22.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 +1 -1
- package/dist/cli.js +176 -6
- package/dist/index.d.ts +19 -6
- package/dist/index.js +176 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -178,7 +178,7 @@ Nothing was renamed or removed. A text overlay of a carousel or reel (`studio_co
|
|
|
178
178
|
|
|
179
179
|
No argument was renamed or removed. What changed is how a run priced by a measured clip length is confirmed, and what a company can be charged:
|
|
180
180
|
|
|
181
|
-
- **A new `confirmation_required` reason, `measured_length`.** A run (`studio_run_workflow`) or recipe (`studio_run_published`) with a video-to-video or enhance node is priced by a clip length the Studio measures on the server, a figure no page could show before the request. Such a run refuses with `{ code: "confirmation_required", reason: "measured_length", estimate }` at any amount, not only at the $10 threshold. Show the person `estimate.totalUsd` and resend the same request with `confirm: true` only after they agree. The threshold refusal now carries `reason: "threshold"`. A client that treats every `confirmation_required` the same way (show the estimate, ask, resend with `confirm: true`) needs no change.
|
|
181
|
+
- **A new `confirmation_required` reason, `measured_length`.** A run (`studio_run_workflow`) or recipe (`studio_run_published`) with a video-to-video, lip sync or enhance node is priced by a clip length the Studio measures on the server, a figure no page could show before the request. Such a run refuses with `{ code: "confirmation_required", reason: "measured_length", estimate }` at any amount, not only at the $10 threshold. Show the person `estimate.totalUsd` and resend the same request with `confirm: true` only after they agree. The threshold refusal now carries `reason: "threshold"`. A client that treats every `confirmation_required` the same way (show the estimate, ask, resend with `confirm: true`) needs no change.
|
|
182
182
|
- **A source clip the Studio cannot measure is refused before anything is spent**, with `422` and `{ code: "source_length_unknown", nodeId }`, never priced at a guessed length.
|
|
183
183
|
- **A charge never exceeds the price shown and held.** Every job is debited at most the price it was admitted at; Studio absorbs anything a provider bills above it. Text calls (Improve, shot descriptions, campaign shot ideas) are held at the upper bound of their price, computed from what they send and the most they may write, and a text model is quoted (`/api/v1/prices`) at the most any call of it can be held at.
|
|
184
184
|
|
package/dist/cli.js
CHANGED
|
@@ -1558,6 +1558,37 @@ var CATALOG_ENTRIES = [
|
|
|
1558
1558
|
// resolution, so the settings panel offers none and validation refuses one.
|
|
1559
1559
|
capabilities: { needsImageInput: true, maxInputImages: 4, resolutions: [] }
|
|
1560
1560
|
},
|
|
1561
|
+
// ── fal.ai: lip sync (face image + audio -> talking video) ─────────────
|
|
1562
|
+
// Inputs, limits and prices from each model's fal page, checked 2026-11-28
|
|
1563
|
+
// (providers/lip-sync-specs.ts holds the limits).
|
|
1564
|
+
{
|
|
1565
|
+
id: "fal/heygen-avatar-6",
|
|
1566
|
+
provider: "fal",
|
|
1567
|
+
modality: "video",
|
|
1568
|
+
task: "lip-sync",
|
|
1569
|
+
label: "HeyGen Avatar 6 (lip sync)",
|
|
1570
|
+
description: "HeyGen Avatar 6 via fal. Makes one face image speak an audio file (MP3 or WAV, up to 300 s) as a 1080p talking video, calm head motion. An optional prompt describes the motion. Run the speech node first, then this one: Studio reads the length of the audio before it starts. Default lip sync.",
|
|
1571
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] },
|
|
1572
|
+
isDefault: true
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
id: "fal/heygen-avatar-6-turbo",
|
|
1576
|
+
provider: "fal",
|
|
1577
|
+
modality: "video",
|
|
1578
|
+
task: "lip-sync",
|
|
1579
|
+
label: "HeyGen Avatar 6 Turbo (lip sync)",
|
|
1580
|
+
description: "HeyGen Avatar 6 Turbo via fal: the faster variant of Avatar 6, with the same inputs.",
|
|
1581
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] }
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
id: "fal/omnihuman-v2",
|
|
1585
|
+
provider: "fal",
|
|
1586
|
+
modality: "video",
|
|
1587
|
+
task: "lip-sync",
|
|
1588
|
+
label: "OmniHuman v2 (lip sync)",
|
|
1589
|
+
description: "ByteDance OmniHuman v2 via fal. Makes one face image speak an audio file (MP3 or WAV, 4 to 300 s) as a talking video.",
|
|
1590
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] }
|
|
1591
|
+
},
|
|
1561
1592
|
// ── fal.ai: vision + utility (B4) ──────────────────────────────────────
|
|
1562
1593
|
{
|
|
1563
1594
|
id: "fal/florence-2-detailed-caption",
|
|
@@ -1666,6 +1697,29 @@ var CATALOG_ENTRIES = [
|
|
|
1666
1697
|
},
|
|
1667
1698
|
isDefault: true
|
|
1668
1699
|
},
|
|
1700
|
+
{
|
|
1701
|
+
id: "elevenlabs/tts-v4",
|
|
1702
|
+
provider: "elevenlabs",
|
|
1703
|
+
modality: "audio",
|
|
1704
|
+
task: "text-to-speech",
|
|
1705
|
+
label: "ElevenLabs Eleven v4 (TTS)",
|
|
1706
|
+
description: "ElevenLabs Eleven v4 text-to-speech. 90+ languages, follows audio tags such as [whispers] written into the text. Takes Stability and Similarity, no Speed. Returns mp3 bytes synchronously. Up to 10,000 characters per request.",
|
|
1707
|
+
// Checked 2026-11-28. ElevenLabs' v4 page: two voice settings, Stability
|
|
1708
|
+
// and Similarity; "Style and Speed sliders are not available". The text
|
|
1709
|
+
// limit: its API price page says 10,000 characters per request, while
|
|
1710
|
+
// GET /v1/models and the models page say 100,000. Studio takes the lower
|
|
1711
|
+
// figure, which both accept; it is also what a voice node whose text
|
|
1712
|
+
// arrives at run time is held at.
|
|
1713
|
+
capabilities: {
|
|
1714
|
+
speech: {
|
|
1715
|
+
maxCharacters: 1e4,
|
|
1716
|
+
voiceSettings: {
|
|
1717
|
+
stability: { min: 0, max: 1, step: 0.05, default: 0.5 },
|
|
1718
|
+
similarityBoost: { min: 0, max: 1, step: 0.05, default: 0.75 }
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
},
|
|
1669
1723
|
{
|
|
1670
1724
|
id: "elevenlabs/scribe-v1",
|
|
1671
1725
|
provider: "elevenlabs",
|
|
@@ -2130,6 +2184,15 @@ var OPENROUTER_VIDEO_SPECS = {
|
|
|
2130
2184
|
"google/veo-3.1-fast": veoSpec2("Veo 3.1 Fast", ["720p", "1080p", "4k"]),
|
|
2131
2185
|
"google/veo-3.1": veoSpec2("Veo 3.1", ["720p", "1080p", "4k"])
|
|
2132
2186
|
};
|
|
2187
|
+
var HEYGEN_AVATAR_6_ENDPOINT = "heygen/avatar-6/image-to-video";
|
|
2188
|
+
var HEYGEN_AVATAR_6_TURBO_ENDPOINT = "heygen/avatar-6/turbo/image-to-video";
|
|
2189
|
+
var OMNIHUMAN_V2_ENDPOINT = "bytedance/omnihuman/v2";
|
|
2190
|
+
var LIP_SYNC_MAX_AUDIO_BYTES = 15 * 1024 * 1024;
|
|
2191
|
+
var LIP_SYNC_SPECS = {
|
|
2192
|
+
[HEYGEN_AVATAR_6_ENDPOINT]: { minSeconds: 1, maxSeconds: 300, promptField: "motion_prompt", motionExpressiveness: true },
|
|
2193
|
+
[HEYGEN_AVATAR_6_TURBO_ENDPOINT]: { minSeconds: 1, maxSeconds: 300, promptField: "motion_prompt", motionExpressiveness: true },
|
|
2194
|
+
[OMNIHUMAN_V2_ENDPOINT]: { minSeconds: 4, maxSeconds: 300, promptField: "prompt", motionExpressiveness: false }
|
|
2195
|
+
};
|
|
2133
2196
|
var GROK_IMAGINE_I2V_ENDPOINT = "xai/grok-imagine-video/image-to-video";
|
|
2134
2197
|
var GROK_IMAGINE_15_I2V_ENDPOINT = "xai/grok-imagine-video/v1.5/image-to-video";
|
|
2135
2198
|
var WAN_30_I2V_ENDPOINT = "alibaba/wan-3.0/image-to-video";
|
|
@@ -2171,6 +2234,11 @@ var VIDEO_FIXED_RESOLUTION = {
|
|
|
2171
2234
|
"blackforestlabs/flux-3/draft-enhance": "1080p",
|
|
2172
2235
|
// Not a resolution the caller picks: Kling O3 Edit renders at the source's.
|
|
2173
2236
|
"fal-ai/kling-video/o3/pro/video-to-video/edit": "source",
|
|
2237
|
+
// Lip sync: no size knob. HeyGen is sent without one and renders its 1080p
|
|
2238
|
+
// default; OmniHuman v2 declares none.
|
|
2239
|
+
"heygen/avatar-6/image-to-video": "1080p",
|
|
2240
|
+
"heygen/avatar-6/turbo/image-to-video": "1080p",
|
|
2241
|
+
"bytedance/omnihuman/v2": "fixed",
|
|
2174
2242
|
// Kling 2.6 Pro takes no resolution; it renders 1080p.
|
|
2175
2243
|
[KLING_26_I2V_ENDPOINT]: "1080p",
|
|
2176
2244
|
// Not a resolution the caller picks: Kling O3's tier sets the size.
|
|
@@ -2320,6 +2388,10 @@ var VIDEO_UNSUPPORTED_PARAMS = {
|
|
|
2320
2388
|
"generateAudio",
|
|
2321
2389
|
"durationSeconds"
|
|
2322
2390
|
],
|
|
2391
|
+
// Lip sync: the length is the audio's, the shape the face image's.
|
|
2392
|
+
...Object.fromEntries(
|
|
2393
|
+
Object.keys(LIP_SYNC_SPECS).map((e) => [e, ["resolution", "seed", "negativePrompt", "aspectRatio", "generateAudio", "durationSeconds"]])
|
|
2394
|
+
),
|
|
2323
2395
|
// Wan's output is also as long as its source; it takes resolution and seed.
|
|
2324
2396
|
"fal-ai/wan/v2.2-14b/animate/replace": ["durationSeconds", "negativePrompt", "aspectRatio", "generateAudio"],
|
|
2325
2397
|
"blackforestlabs/flux-3/keyframes-to-video/draft": ["resolution", "seed", "negativePrompt"],
|
|
@@ -3133,6 +3205,9 @@ var MODEL_TASKS = [
|
|
|
3133
3205
|
"text-to-video",
|
|
3134
3206
|
"image-to-video",
|
|
3135
3207
|
"video-to-video",
|
|
3208
|
+
// Lip sync (2026-11-28): one face image and one audio file in, a talking
|
|
3209
|
+
// video as long as the audio out.
|
|
3210
|
+
"lip-sync",
|
|
3136
3211
|
// A finishing pass over a DRAFT video: the upstream draft's cache bundle is
|
|
3137
3212
|
// the only input, and the output is the full-quality render of the same take.
|
|
3138
3213
|
"video-enhance",
|
|
@@ -3191,6 +3266,8 @@ var TASK_PORTS = {
|
|
|
3191
3266
|
// Video-to-video (character replace): a source video plus ONE reference image
|
|
3192
3267
|
// (the person to swap in). The two-input contract lives in the fal adapter.
|
|
3193
3268
|
"video-to-video": { inputs: ["video", "image"], output: "video" },
|
|
3269
|
+
// Lip sync: the face image and the audio it speaks.
|
|
3270
|
+
"lip-sync": { inputs: ["image", "audio"], output: "video" },
|
|
3194
3271
|
// Video-enhance: the upstream DRAFT video's cache bundle is the whole input.
|
|
3195
3272
|
// The wire is typed 'video' so it only accepts a video node; whether that
|
|
3196
3273
|
// node actually produced a draft cache is checked at run time, loudly.
|
|
@@ -4520,6 +4597,37 @@ var CATALOG_ENTRIES2 = [
|
|
|
4520
4597
|
// resolution, so the settings panel offers none and validation refuses one.
|
|
4521
4598
|
capabilities: { needsImageInput: true, maxInputImages: 4, resolutions: [] }
|
|
4522
4599
|
},
|
|
4600
|
+
// ── fal.ai: lip sync (face image + audio -> talking video) ─────────────
|
|
4601
|
+
// Inputs, limits and prices from each model's fal page, checked 2026-11-28
|
|
4602
|
+
// (providers/lip-sync-specs.ts holds the limits).
|
|
4603
|
+
{
|
|
4604
|
+
id: "fal/heygen-avatar-6",
|
|
4605
|
+
provider: "fal",
|
|
4606
|
+
modality: "video",
|
|
4607
|
+
task: "lip-sync",
|
|
4608
|
+
label: "HeyGen Avatar 6 (lip sync)",
|
|
4609
|
+
description: "HeyGen Avatar 6 via fal. Makes one face image speak an audio file (MP3 or WAV, up to 300 s) as a 1080p talking video, calm head motion. An optional prompt describes the motion. Run the speech node first, then this one: Studio reads the length of the audio before it starts. Default lip sync.",
|
|
4610
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] },
|
|
4611
|
+
isDefault: true
|
|
4612
|
+
},
|
|
4613
|
+
{
|
|
4614
|
+
id: "fal/heygen-avatar-6-turbo",
|
|
4615
|
+
provider: "fal",
|
|
4616
|
+
modality: "video",
|
|
4617
|
+
task: "lip-sync",
|
|
4618
|
+
label: "HeyGen Avatar 6 Turbo (lip sync)",
|
|
4619
|
+
description: "HeyGen Avatar 6 Turbo via fal: the faster variant of Avatar 6, with the same inputs.",
|
|
4620
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] }
|
|
4621
|
+
},
|
|
4622
|
+
{
|
|
4623
|
+
id: "fal/omnihuman-v2",
|
|
4624
|
+
provider: "fal",
|
|
4625
|
+
modality: "video",
|
|
4626
|
+
task: "lip-sync",
|
|
4627
|
+
label: "OmniHuman v2 (lip sync)",
|
|
4628
|
+
description: "ByteDance OmniHuman v2 via fal. Makes one face image speak an audio file (MP3 or WAV, 4 to 300 s) as a talking video.",
|
|
4629
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] }
|
|
4630
|
+
},
|
|
4523
4631
|
// ── fal.ai: vision + utility (B4) ──────────────────────────────────────
|
|
4524
4632
|
{
|
|
4525
4633
|
id: "fal/florence-2-detailed-caption",
|
|
@@ -4628,6 +4736,29 @@ var CATALOG_ENTRIES2 = [
|
|
|
4628
4736
|
},
|
|
4629
4737
|
isDefault: true
|
|
4630
4738
|
},
|
|
4739
|
+
{
|
|
4740
|
+
id: "elevenlabs/tts-v4",
|
|
4741
|
+
provider: "elevenlabs",
|
|
4742
|
+
modality: "audio",
|
|
4743
|
+
task: "text-to-speech",
|
|
4744
|
+
label: "ElevenLabs Eleven v4 (TTS)",
|
|
4745
|
+
description: "ElevenLabs Eleven v4 text-to-speech. 90+ languages, follows audio tags such as [whispers] written into the text. Takes Stability and Similarity, no Speed. Returns mp3 bytes synchronously. Up to 10,000 characters per request.",
|
|
4746
|
+
// Checked 2026-11-28. ElevenLabs' v4 page: two voice settings, Stability
|
|
4747
|
+
// and Similarity; "Style and Speed sliders are not available". The text
|
|
4748
|
+
// limit: its API price page says 10,000 characters per request, while
|
|
4749
|
+
// GET /v1/models and the models page say 100,000. Studio takes the lower
|
|
4750
|
+
// figure, which both accept; it is also what a voice node whose text
|
|
4751
|
+
// arrives at run time is held at.
|
|
4752
|
+
capabilities: {
|
|
4753
|
+
speech: {
|
|
4754
|
+
maxCharacters: 1e4,
|
|
4755
|
+
voiceSettings: {
|
|
4756
|
+
stability: { min: 0, max: 1, step: 0.05, default: 0.5 },
|
|
4757
|
+
similarityBoost: { min: 0, max: 1, step: 0.05, default: 0.75 }
|
|
4758
|
+
}
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
},
|
|
4631
4762
|
{
|
|
4632
4763
|
id: "elevenlabs/scribe-v1",
|
|
4633
4764
|
provider: "elevenlabs",
|
|
@@ -4837,6 +4968,9 @@ var PROVIDER_API_NAMES = {
|
|
|
4837
4968
|
// status / result URLs use only `fal-ai/wan` (owner/alias), which the fal SDK
|
|
4838
4969
|
// derives itself (parseEndpointId); submit takes the full id.
|
|
4839
4970
|
"fal/wan-animate-replace": "fal-ai/wan/v2.2-14b/animate/replace",
|
|
4971
|
+
"fal/heygen-avatar-6": "heygen/avatar-6/image-to-video",
|
|
4972
|
+
"fal/heygen-avatar-6-turbo": "heygen/avatar-6/turbo/image-to-video",
|
|
4973
|
+
"fal/omnihuman-v2": "bytedance/omnihuman/v2",
|
|
4840
4974
|
// Kling O3 Pro Edit: nested id like Wan's, the SDK derives owner/alias itself.
|
|
4841
4975
|
"fal/kling-o3-edit": "fal-ai/kling-video/o3/pro/video-to-video/edit",
|
|
4842
4976
|
// fal vision + utility endpoints (B4). Sync via subscribe.
|
|
@@ -4855,6 +4989,7 @@ var PROVIDER_API_NAMES = {
|
|
|
4855
4989
|
// audio: ElevenLabs voice (B2). The upstream model_id the ElevenLabs API
|
|
4856
4990
|
// expects on the TTS / STT endpoints.
|
|
4857
4991
|
"elevenlabs/tts-multilingual-v2": "eleven_multilingual_v2",
|
|
4992
|
+
"elevenlabs/tts-v4": "eleven_v4",
|
|
4858
4993
|
"elevenlabs/scribe-v1": "scribe_v1",
|
|
4859
4994
|
// text: LLM director (B3). KIE-Claude expects the bare Anthropic model id on
|
|
4860
4995
|
// its Messages endpoint; OpenRouter expects the provider-prefixed id.
|
|
@@ -5264,6 +5399,15 @@ var OPENROUTER_VIDEO_SPECS2 = {
|
|
|
5264
5399
|
"google/veo-3.1-fast": veoSpec22("Veo 3.1 Fast", ["720p", "1080p", "4k"]),
|
|
5265
5400
|
"google/veo-3.1": veoSpec22("Veo 3.1", ["720p", "1080p", "4k"])
|
|
5266
5401
|
};
|
|
5402
|
+
var HEYGEN_AVATAR_6_ENDPOINT2 = "heygen/avatar-6/image-to-video";
|
|
5403
|
+
var HEYGEN_AVATAR_6_TURBO_ENDPOINT2 = "heygen/avatar-6/turbo/image-to-video";
|
|
5404
|
+
var OMNIHUMAN_V2_ENDPOINT2 = "bytedance/omnihuman/v2";
|
|
5405
|
+
var LIP_SYNC_MAX_AUDIO_BYTES2 = 15 * 1024 * 1024;
|
|
5406
|
+
var LIP_SYNC_SPECS2 = {
|
|
5407
|
+
[HEYGEN_AVATAR_6_ENDPOINT2]: { minSeconds: 1, maxSeconds: 300, promptField: "motion_prompt", motionExpressiveness: true },
|
|
5408
|
+
[HEYGEN_AVATAR_6_TURBO_ENDPOINT2]: { minSeconds: 1, maxSeconds: 300, promptField: "motion_prompt", motionExpressiveness: true },
|
|
5409
|
+
[OMNIHUMAN_V2_ENDPOINT2]: { minSeconds: 4, maxSeconds: 300, promptField: "prompt", motionExpressiveness: false }
|
|
5410
|
+
};
|
|
5267
5411
|
var GROK_IMAGINE_I2V_ENDPOINT2 = "xai/grok-imagine-video/image-to-video";
|
|
5268
5412
|
var GROK_IMAGINE_15_I2V_ENDPOINT2 = "xai/grok-imagine-video/v1.5/image-to-video";
|
|
5269
5413
|
var WAN_30_I2V_ENDPOINT2 = "alibaba/wan-3.0/image-to-video";
|
|
@@ -5305,6 +5449,11 @@ var VIDEO_FIXED_RESOLUTION2 = {
|
|
|
5305
5449
|
"blackforestlabs/flux-3/draft-enhance": "1080p",
|
|
5306
5450
|
// Not a resolution the caller picks: Kling O3 Edit renders at the source's.
|
|
5307
5451
|
"fal-ai/kling-video/o3/pro/video-to-video/edit": "source",
|
|
5452
|
+
// Lip sync: no size knob. HeyGen is sent without one and renders its 1080p
|
|
5453
|
+
// default; OmniHuman v2 declares none.
|
|
5454
|
+
"heygen/avatar-6/image-to-video": "1080p",
|
|
5455
|
+
"heygen/avatar-6/turbo/image-to-video": "1080p",
|
|
5456
|
+
"bytedance/omnihuman/v2": "fixed",
|
|
5308
5457
|
// Kling 2.6 Pro takes no resolution; it renders 1080p.
|
|
5309
5458
|
[KLING_26_I2V_ENDPOINT2]: "1080p",
|
|
5310
5459
|
// Not a resolution the caller picks: Kling O3's tier sets the size.
|
|
@@ -5454,6 +5603,10 @@ var VIDEO_UNSUPPORTED_PARAMS2 = {
|
|
|
5454
5603
|
"generateAudio",
|
|
5455
5604
|
"durationSeconds"
|
|
5456
5605
|
],
|
|
5606
|
+
// Lip sync: the length is the audio's, the shape the face image's.
|
|
5607
|
+
...Object.fromEntries(
|
|
5608
|
+
Object.keys(LIP_SYNC_SPECS2).map((e) => [e, ["resolution", "seed", "negativePrompt", "aspectRatio", "generateAudio", "durationSeconds"]])
|
|
5609
|
+
),
|
|
5457
5610
|
// Wan's output is also as long as its source; it takes resolution and seed.
|
|
5458
5611
|
"fal-ai/wan/v2.2-14b/animate/replace": ["durationSeconds", "negativePrompt", "aspectRatio", "generateAudio"],
|
|
5459
5612
|
"blackforestlabs/flux-3/keyframes-to-video/draft": ["resolution", "seed", "negativePrompt"],
|
|
@@ -5603,6 +5756,12 @@ function sendableOptions(options, model) {
|
|
|
5603
5756
|
delete kept.generateAudio;
|
|
5604
5757
|
return kept;
|
|
5605
5758
|
}
|
|
5759
|
+
function voiceSettingsRefusal(model, voiceSettings) {
|
|
5760
|
+
const speech = model?.capabilities?.speech;
|
|
5761
|
+
if (!speech || speech.voiceSettings.speed) return null;
|
|
5762
|
+
if (!voiceSettings || typeof voiceSettings !== "object" || voiceSettings.speed === void 0) return null;
|
|
5763
|
+
return `${model?.label ?? model?.id ?? "This model"} has no Speed setting. Remove voiceSettings.speed, or pick a model that has it.`;
|
|
5764
|
+
}
|
|
5606
5765
|
var PROMPT_REQUIRED = /* @__PURE__ */ new Set([
|
|
5607
5766
|
"text-to-image",
|
|
5608
5767
|
"image-to-image",
|
|
@@ -5621,7 +5780,7 @@ var PROMPT_REQUIRED = /* @__PURE__ */ new Set([
|
|
|
5621
5780
|
"text-to-audio",
|
|
5622
5781
|
"text-to-speech"
|
|
5623
5782
|
]);
|
|
5624
|
-
var PROMPT_OPTIONAL = /* @__PURE__ */ new Set(["image-to-video", "image-to-json", "video-to-video"]);
|
|
5783
|
+
var PROMPT_OPTIONAL = /* @__PURE__ */ new Set(["image-to-video", "image-to-json", "video-to-video", "lip-sync"]);
|
|
5625
5784
|
function taskNeedsPrompt(task) {
|
|
5626
5785
|
return PROMPT_REQUIRED.has(task) || PROMPT_OPTIONAL.has(task);
|
|
5627
5786
|
}
|
|
@@ -5632,7 +5791,7 @@ function promptInputKey(task) {
|
|
|
5632
5791
|
return task === "texture" ? "texturePrompt" : "prompt";
|
|
5633
5792
|
}
|
|
5634
5793
|
function portBinding(task, port) {
|
|
5635
|
-
if (port === "image" && (task === "image-to-3d" || task === "multiview-to-3d" || task === "image-to-video" || task === "image-to-text" || task === "image-to-json")) {
|
|
5794
|
+
if (port === "image" && (task === "image-to-3d" || task === "multiview-to-3d" || task === "image-to-video" || task === "lip-sync" || task === "image-to-text" || task === "image-to-json")) {
|
|
5636
5795
|
return { key: "inputImageUrl", path: "url" };
|
|
5637
5796
|
}
|
|
5638
5797
|
if (port === "reference" && task === "image-to-video") {
|
|
@@ -5662,7 +5821,7 @@ function portBinding(task, port) {
|
|
|
5662
5821
|
if (port === "image" && (task === "upscale" || task === "background-remove")) {
|
|
5663
5822
|
return { key: "parentAssetId", path: "assetId" };
|
|
5664
5823
|
}
|
|
5665
|
-
if (port === "audio" && task === "speech-to-text") {
|
|
5824
|
+
if (port === "audio" && (task === "speech-to-text" || task === "lip-sync")) {
|
|
5666
5825
|
return { key: "inputAudioUrl", path: "url" };
|
|
5667
5826
|
}
|
|
5668
5827
|
if (port === "image" && task === "judge") {
|
|
@@ -5873,6 +6032,10 @@ function validateDocument(doc) {
|
|
|
5873
6032
|
const requested = node2.settings?.resolution ?? (baked && baked.kind === "literal" ? baked.value : void 0);
|
|
5874
6033
|
const refusal = resolutionRefusal(tryGetModel2(node2.model), requested);
|
|
5875
6034
|
if (refusal) return { ok: false, code: "unsupported", message: `"${node2.id}": ${refusal}` };
|
|
6035
|
+
const baking = node2.bakedInputs?.options;
|
|
6036
|
+
const bakedVoice = baking && baking.kind === "literal" && baking.value && typeof baking.value === "object" ? baking.value.voiceSettings : void 0;
|
|
6037
|
+
const voiceRefusal = voiceSettingsRefusal(tryGetModel2(node2.model), node2.settings?.voiceSettings ?? bakedVoice);
|
|
6038
|
+
if (voiceRefusal) return { ok: false, code: "unsupported", message: `"${node2.id}": ${voiceRefusal}` };
|
|
5876
6039
|
}
|
|
5877
6040
|
if (documentTopologicalOrder(doc) === null) {
|
|
5878
6041
|
return { ok: false, code: "cycle", message: `document "${doc.id}" has a cycle in its wires` };
|
|
@@ -6194,8 +6357,13 @@ function isFiniteNumber(v) {
|
|
|
6194
6357
|
function voiceSettingsOf(v) {
|
|
6195
6358
|
if (!v || typeof v !== "object" || Array.isArray(v)) return null;
|
|
6196
6359
|
const o = v;
|
|
6197
|
-
if (!isFiniteNumber(o.stability) || !isFiniteNumber(o.similarityBoost)
|
|
6198
|
-
|
|
6360
|
+
if (!isFiniteNumber(o.stability) || !isFiniteNumber(o.similarityBoost)) return null;
|
|
6361
|
+
if (o.speed !== void 0 && !isFiniteNumber(o.speed)) return null;
|
|
6362
|
+
return {
|
|
6363
|
+
stability: o.stability,
|
|
6364
|
+
similarityBoost: o.similarityBoost,
|
|
6365
|
+
...o.speed !== void 0 ? { speed: o.speed } : {}
|
|
6366
|
+
};
|
|
6199
6367
|
}
|
|
6200
6368
|
function settingsBindings(task, settings) {
|
|
6201
6369
|
if (!task || !settings || Object.keys(settings).length === 0) return {};
|
|
@@ -6210,6 +6378,7 @@ function settingsBindings(task, settings) {
|
|
|
6210
6378
|
}
|
|
6211
6379
|
case "video": {
|
|
6212
6380
|
const options = {};
|
|
6381
|
+
if (task === "lip-sync") return {};
|
|
6213
6382
|
if (task === "video-to-video") {
|
|
6214
6383
|
if (typeof settings.resolution === "string") options.resolution = settings.resolution;
|
|
6215
6384
|
return Object.keys(options).length > 0 ? { options: lit(options) } : {};
|
|
@@ -6390,6 +6559,7 @@ var TASK_TO_KIND = {
|
|
|
6390
6559
|
// video-to-video (character replace via Wan 2.2 Animate or Kling O3 Edit): rides the same
|
|
6391
6560
|
// generate_video job; the fal provider routes the task to the replace endpoint.
|
|
6392
6561
|
"video-to-video": "generate_video",
|
|
6562
|
+
"lip-sync": "generate_video",
|
|
6393
6563
|
// video-enhance (FLUX.3 draft-enhance): the same generate_video job; the fal
|
|
6394
6564
|
// provider sends the upstream draft's cache bundle instead of frames.
|
|
6395
6565
|
"video-enhance": "generate_video",
|
|
@@ -9225,7 +9395,7 @@ function registerTools(server, base) {
|
|
|
9225
9395
|
|
|
9226
9396
|
// src/server.ts
|
|
9227
9397
|
var SERVER_NAME = "lumitra-studio";
|
|
9228
|
-
var SERVER_VERSION = "0.
|
|
9398
|
+
var SERVER_VERSION = "0.22.0";
|
|
9229
9399
|
function createStudioMcpServer(opts = {}) {
|
|
9230
9400
|
const config = opts.config ?? resolveConfig(opts.env ?? process.env);
|
|
9231
9401
|
const client = new StudioClient(config, {
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ declare const DocNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
27
27
|
"text-to-video": "text-to-video";
|
|
28
28
|
"image-to-video": "image-to-video";
|
|
29
29
|
"video-to-video": "video-to-video";
|
|
30
|
+
"lip-sync": "lip-sync";
|
|
30
31
|
"video-enhance": "video-enhance";
|
|
31
32
|
"text-to-3d": "text-to-3d";
|
|
32
33
|
"image-to-3d": "image-to-3d";
|
|
@@ -82,10 +83,10 @@ declare const DocNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
82
83
|
kind: z.ZodLiteral<"input">;
|
|
83
84
|
name: z.ZodString;
|
|
84
85
|
type: z.ZodEnum<{
|
|
85
|
-
text: "text";
|
|
86
86
|
image: "image";
|
|
87
87
|
video: "video";
|
|
88
88
|
audio: "audio";
|
|
89
|
+
text: "text";
|
|
89
90
|
mesh3d: "mesh3d";
|
|
90
91
|
json: "json";
|
|
91
92
|
}>;
|
|
@@ -116,6 +117,7 @@ declare const WorkflowDocumentSchema: z.ZodObject<{
|
|
|
116
117
|
"text-to-video": "text-to-video";
|
|
117
118
|
"image-to-video": "image-to-video";
|
|
118
119
|
"video-to-video": "video-to-video";
|
|
120
|
+
"lip-sync": "lip-sync";
|
|
119
121
|
"video-enhance": "video-enhance";
|
|
120
122
|
"text-to-3d": "text-to-3d";
|
|
121
123
|
"image-to-3d": "image-to-3d";
|
|
@@ -171,10 +173,10 @@ declare const WorkflowDocumentSchema: z.ZodObject<{
|
|
|
171
173
|
kind: z.ZodLiteral<"input">;
|
|
172
174
|
name: z.ZodString;
|
|
173
175
|
type: z.ZodEnum<{
|
|
174
|
-
text: "text";
|
|
175
176
|
image: "image";
|
|
176
177
|
video: "video";
|
|
177
178
|
audio: "audio";
|
|
179
|
+
text: "text";
|
|
178
180
|
mesh3d: "mesh3d";
|
|
179
181
|
json: "json";
|
|
180
182
|
}>;
|
|
@@ -192,10 +194,10 @@ declare const WorkflowDocumentSchema: z.ZodObject<{
|
|
|
192
194
|
source: z.ZodString;
|
|
193
195
|
target: z.ZodString;
|
|
194
196
|
port: z.ZodEnum<{
|
|
195
|
-
text: "text";
|
|
196
197
|
image: "image";
|
|
197
198
|
video: "video";
|
|
198
199
|
audio: "audio";
|
|
200
|
+
text: "text";
|
|
199
201
|
mask: "mask";
|
|
200
202
|
mesh3d: "mesh3d";
|
|
201
203
|
json: "json";
|
|
@@ -247,6 +249,7 @@ declare const OpSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
247
249
|
"text-to-video": "text-to-video";
|
|
248
250
|
"image-to-video": "image-to-video";
|
|
249
251
|
"video-to-video": "video-to-video";
|
|
252
|
+
"lip-sync": "lip-sync";
|
|
250
253
|
"video-enhance": "video-enhance";
|
|
251
254
|
"text-to-3d": "text-to-3d";
|
|
252
255
|
"image-to-3d": "image-to-3d";
|
|
@@ -340,6 +343,7 @@ declare const OpSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
340
343
|
"text-to-video": "text-to-video";
|
|
341
344
|
"image-to-video": "image-to-video";
|
|
342
345
|
"video-to-video": "video-to-video";
|
|
346
|
+
"lip-sync": "lip-sync";
|
|
343
347
|
"video-enhance": "video-enhance";
|
|
344
348
|
"text-to-3d": "text-to-3d";
|
|
345
349
|
"image-to-3d": "image-to-3d";
|
|
@@ -545,6 +549,7 @@ declare const PatchSchema: z.ZodObject<{
|
|
|
545
549
|
"text-to-video": "text-to-video";
|
|
546
550
|
"image-to-video": "image-to-video";
|
|
547
551
|
"video-to-video": "video-to-video";
|
|
552
|
+
"lip-sync": "lip-sync";
|
|
548
553
|
"video-enhance": "video-enhance";
|
|
549
554
|
"text-to-3d": "text-to-3d";
|
|
550
555
|
"image-to-3d": "image-to-3d";
|
|
@@ -638,6 +643,7 @@ declare const PatchSchema: z.ZodObject<{
|
|
|
638
643
|
"text-to-video": "text-to-video";
|
|
639
644
|
"image-to-video": "image-to-video";
|
|
640
645
|
"video-to-video": "video-to-video";
|
|
646
|
+
"lip-sync": "lip-sync";
|
|
641
647
|
"video-enhance": "video-enhance";
|
|
642
648
|
"text-to-3d": "text-to-3d";
|
|
643
649
|
"image-to-3d": "image-to-3d";
|
|
@@ -2191,7 +2197,7 @@ declare function registerTools(server: McpServer, base: ToolContext): void;
|
|
|
2191
2197
|
*/
|
|
2192
2198
|
|
|
2193
2199
|
declare const SERVER_NAME = "lumitra-studio";
|
|
2194
|
-
declare const SERVER_VERSION = "0.
|
|
2200
|
+
declare const SERVER_VERSION = "0.22.0";
|
|
2195
2201
|
interface CreateServerOptions {
|
|
2196
2202
|
config?: StudioConfig;
|
|
2197
2203
|
env?: NodeJS.ProcessEnv;
|
|
@@ -2257,6 +2263,7 @@ declare const studioWorkflowCreate: ToolDef<{
|
|
|
2257
2263
|
"text-to-video": "text-to-video";
|
|
2258
2264
|
"image-to-video": "image-to-video";
|
|
2259
2265
|
"video-to-video": "video-to-video";
|
|
2266
|
+
"lip-sync": "lip-sync";
|
|
2260
2267
|
"video-enhance": "video-enhance";
|
|
2261
2268
|
"text-to-3d": "text-to-3d";
|
|
2262
2269
|
"image-to-3d": "image-to-3d";
|
|
@@ -2350,6 +2357,7 @@ declare const studioWorkflowCreate: ToolDef<{
|
|
|
2350
2357
|
"text-to-video": "text-to-video";
|
|
2351
2358
|
"image-to-video": "image-to-video";
|
|
2352
2359
|
"video-to-video": "video-to-video";
|
|
2360
|
+
"lip-sync": "lip-sync";
|
|
2353
2361
|
"video-enhance": "video-enhance";
|
|
2354
2362
|
"text-to-3d": "text-to-3d";
|
|
2355
2363
|
"image-to-3d": "image-to-3d";
|
|
@@ -2558,6 +2566,7 @@ declare const studioWorkflowApply: ToolDef<{
|
|
|
2558
2566
|
"text-to-video": "text-to-video";
|
|
2559
2567
|
"image-to-video": "image-to-video";
|
|
2560
2568
|
"video-to-video": "video-to-video";
|
|
2569
|
+
"lip-sync": "lip-sync";
|
|
2561
2570
|
"video-enhance": "video-enhance";
|
|
2562
2571
|
"text-to-3d": "text-to-3d";
|
|
2563
2572
|
"image-to-3d": "image-to-3d";
|
|
@@ -2651,6 +2660,7 @@ declare const studioWorkflowApply: ToolDef<{
|
|
|
2651
2660
|
"text-to-video": "text-to-video";
|
|
2652
2661
|
"image-to-video": "image-to-video";
|
|
2653
2662
|
"video-to-video": "video-to-video";
|
|
2663
|
+
"lip-sync": "lip-sync";
|
|
2654
2664
|
"video-enhance": "video-enhance";
|
|
2655
2665
|
"text-to-3d": "text-to-3d";
|
|
2656
2666
|
"image-to-3d": "image-to-3d";
|
|
@@ -2857,6 +2867,7 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
2857
2867
|
"text-to-video": "text-to-video";
|
|
2858
2868
|
"image-to-video": "image-to-video";
|
|
2859
2869
|
"video-to-video": "video-to-video";
|
|
2870
|
+
"lip-sync": "lip-sync";
|
|
2860
2871
|
"video-enhance": "video-enhance";
|
|
2861
2872
|
"text-to-3d": "text-to-3d";
|
|
2862
2873
|
"image-to-3d": "image-to-3d";
|
|
@@ -2912,10 +2923,10 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
2912
2923
|
kind: z.ZodLiteral<"input">;
|
|
2913
2924
|
name: z.ZodString;
|
|
2914
2925
|
type: z.ZodEnum<{
|
|
2915
|
-
text: "text";
|
|
2916
2926
|
image: "image";
|
|
2917
2927
|
video: "video";
|
|
2918
2928
|
audio: "audio";
|
|
2929
|
+
text: "text";
|
|
2919
2930
|
mesh3d: "mesh3d";
|
|
2920
2931
|
json: "json";
|
|
2921
2932
|
}>;
|
|
@@ -2933,10 +2944,10 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
2933
2944
|
source: z.ZodString;
|
|
2934
2945
|
target: z.ZodString;
|
|
2935
2946
|
port: z.ZodEnum<{
|
|
2936
|
-
text: "text";
|
|
2937
2947
|
image: "image";
|
|
2938
2948
|
video: "video";
|
|
2939
2949
|
audio: "audio";
|
|
2950
|
+
text: "text";
|
|
2940
2951
|
mask: "mask";
|
|
2941
2952
|
mesh3d: "mesh3d";
|
|
2942
2953
|
json: "json";
|
|
@@ -2988,6 +2999,7 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
2988
2999
|
"text-to-video": "text-to-video";
|
|
2989
3000
|
"image-to-video": "image-to-video";
|
|
2990
3001
|
"video-to-video": "video-to-video";
|
|
3002
|
+
"lip-sync": "lip-sync";
|
|
2991
3003
|
"video-enhance": "video-enhance";
|
|
2992
3004
|
"text-to-3d": "text-to-3d";
|
|
2993
3005
|
"image-to-3d": "image-to-3d";
|
|
@@ -3081,6 +3093,7 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
3081
3093
|
"text-to-video": "text-to-video";
|
|
3082
3094
|
"image-to-video": "image-to-video";
|
|
3083
3095
|
"video-to-video": "video-to-video";
|
|
3096
|
+
"lip-sync": "lip-sync";
|
|
3084
3097
|
"video-enhance": "video-enhance";
|
|
3085
3098
|
"text-to-3d": "text-to-3d";
|
|
3086
3099
|
"image-to-3d": "image-to-3d";
|
package/dist/index.js
CHANGED
|
@@ -1550,6 +1550,37 @@ var CATALOG_ENTRIES = [
|
|
|
1550
1550
|
// resolution, so the settings panel offers none and validation refuses one.
|
|
1551
1551
|
capabilities: { needsImageInput: true, maxInputImages: 4, resolutions: [] }
|
|
1552
1552
|
},
|
|
1553
|
+
// ── fal.ai: lip sync (face image + audio -> talking video) ─────────────
|
|
1554
|
+
// Inputs, limits and prices from each model's fal page, checked 2026-11-28
|
|
1555
|
+
// (providers/lip-sync-specs.ts holds the limits).
|
|
1556
|
+
{
|
|
1557
|
+
id: "fal/heygen-avatar-6",
|
|
1558
|
+
provider: "fal",
|
|
1559
|
+
modality: "video",
|
|
1560
|
+
task: "lip-sync",
|
|
1561
|
+
label: "HeyGen Avatar 6 (lip sync)",
|
|
1562
|
+
description: "HeyGen Avatar 6 via fal. Makes one face image speak an audio file (MP3 or WAV, up to 300 s) as a 1080p talking video, calm head motion. An optional prompt describes the motion. Run the speech node first, then this one: Studio reads the length of the audio before it starts. Default lip sync.",
|
|
1563
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] },
|
|
1564
|
+
isDefault: true
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
id: "fal/heygen-avatar-6-turbo",
|
|
1568
|
+
provider: "fal",
|
|
1569
|
+
modality: "video",
|
|
1570
|
+
task: "lip-sync",
|
|
1571
|
+
label: "HeyGen Avatar 6 Turbo (lip sync)",
|
|
1572
|
+
description: "HeyGen Avatar 6 Turbo via fal: the faster variant of Avatar 6, with the same inputs.",
|
|
1573
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] }
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
id: "fal/omnihuman-v2",
|
|
1577
|
+
provider: "fal",
|
|
1578
|
+
modality: "video",
|
|
1579
|
+
task: "lip-sync",
|
|
1580
|
+
label: "OmniHuman v2 (lip sync)",
|
|
1581
|
+
description: "ByteDance OmniHuman v2 via fal. Makes one face image speak an audio file (MP3 or WAV, 4 to 300 s) as a talking video.",
|
|
1582
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] }
|
|
1583
|
+
},
|
|
1553
1584
|
// ── fal.ai: vision + utility (B4) ──────────────────────────────────────
|
|
1554
1585
|
{
|
|
1555
1586
|
id: "fal/florence-2-detailed-caption",
|
|
@@ -1658,6 +1689,29 @@ var CATALOG_ENTRIES = [
|
|
|
1658
1689
|
},
|
|
1659
1690
|
isDefault: true
|
|
1660
1691
|
},
|
|
1692
|
+
{
|
|
1693
|
+
id: "elevenlabs/tts-v4",
|
|
1694
|
+
provider: "elevenlabs",
|
|
1695
|
+
modality: "audio",
|
|
1696
|
+
task: "text-to-speech",
|
|
1697
|
+
label: "ElevenLabs Eleven v4 (TTS)",
|
|
1698
|
+
description: "ElevenLabs Eleven v4 text-to-speech. 90+ languages, follows audio tags such as [whispers] written into the text. Takes Stability and Similarity, no Speed. Returns mp3 bytes synchronously. Up to 10,000 characters per request.",
|
|
1699
|
+
// Checked 2026-11-28. ElevenLabs' v4 page: two voice settings, Stability
|
|
1700
|
+
// and Similarity; "Style and Speed sliders are not available". The text
|
|
1701
|
+
// limit: its API price page says 10,000 characters per request, while
|
|
1702
|
+
// GET /v1/models and the models page say 100,000. Studio takes the lower
|
|
1703
|
+
// figure, which both accept; it is also what a voice node whose text
|
|
1704
|
+
// arrives at run time is held at.
|
|
1705
|
+
capabilities: {
|
|
1706
|
+
speech: {
|
|
1707
|
+
maxCharacters: 1e4,
|
|
1708
|
+
voiceSettings: {
|
|
1709
|
+
stability: { min: 0, max: 1, step: 0.05, default: 0.5 },
|
|
1710
|
+
similarityBoost: { min: 0, max: 1, step: 0.05, default: 0.75 }
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
},
|
|
1661
1715
|
{
|
|
1662
1716
|
id: "elevenlabs/scribe-v1",
|
|
1663
1717
|
provider: "elevenlabs",
|
|
@@ -2122,6 +2176,15 @@ var OPENROUTER_VIDEO_SPECS = {
|
|
|
2122
2176
|
"google/veo-3.1-fast": veoSpec2("Veo 3.1 Fast", ["720p", "1080p", "4k"]),
|
|
2123
2177
|
"google/veo-3.1": veoSpec2("Veo 3.1", ["720p", "1080p", "4k"])
|
|
2124
2178
|
};
|
|
2179
|
+
var HEYGEN_AVATAR_6_ENDPOINT = "heygen/avatar-6/image-to-video";
|
|
2180
|
+
var HEYGEN_AVATAR_6_TURBO_ENDPOINT = "heygen/avatar-6/turbo/image-to-video";
|
|
2181
|
+
var OMNIHUMAN_V2_ENDPOINT = "bytedance/omnihuman/v2";
|
|
2182
|
+
var LIP_SYNC_MAX_AUDIO_BYTES = 15 * 1024 * 1024;
|
|
2183
|
+
var LIP_SYNC_SPECS = {
|
|
2184
|
+
[HEYGEN_AVATAR_6_ENDPOINT]: { minSeconds: 1, maxSeconds: 300, promptField: "motion_prompt", motionExpressiveness: true },
|
|
2185
|
+
[HEYGEN_AVATAR_6_TURBO_ENDPOINT]: { minSeconds: 1, maxSeconds: 300, promptField: "motion_prompt", motionExpressiveness: true },
|
|
2186
|
+
[OMNIHUMAN_V2_ENDPOINT]: { minSeconds: 4, maxSeconds: 300, promptField: "prompt", motionExpressiveness: false }
|
|
2187
|
+
};
|
|
2125
2188
|
var GROK_IMAGINE_I2V_ENDPOINT = "xai/grok-imagine-video/image-to-video";
|
|
2126
2189
|
var GROK_IMAGINE_15_I2V_ENDPOINT = "xai/grok-imagine-video/v1.5/image-to-video";
|
|
2127
2190
|
var WAN_30_I2V_ENDPOINT = "alibaba/wan-3.0/image-to-video";
|
|
@@ -2163,6 +2226,11 @@ var VIDEO_FIXED_RESOLUTION = {
|
|
|
2163
2226
|
"blackforestlabs/flux-3/draft-enhance": "1080p",
|
|
2164
2227
|
// Not a resolution the caller picks: Kling O3 Edit renders at the source's.
|
|
2165
2228
|
"fal-ai/kling-video/o3/pro/video-to-video/edit": "source",
|
|
2229
|
+
// Lip sync: no size knob. HeyGen is sent without one and renders its 1080p
|
|
2230
|
+
// default; OmniHuman v2 declares none.
|
|
2231
|
+
"heygen/avatar-6/image-to-video": "1080p",
|
|
2232
|
+
"heygen/avatar-6/turbo/image-to-video": "1080p",
|
|
2233
|
+
"bytedance/omnihuman/v2": "fixed",
|
|
2166
2234
|
// Kling 2.6 Pro takes no resolution; it renders 1080p.
|
|
2167
2235
|
[KLING_26_I2V_ENDPOINT]: "1080p",
|
|
2168
2236
|
// Not a resolution the caller picks: Kling O3's tier sets the size.
|
|
@@ -2312,6 +2380,10 @@ var VIDEO_UNSUPPORTED_PARAMS = {
|
|
|
2312
2380
|
"generateAudio",
|
|
2313
2381
|
"durationSeconds"
|
|
2314
2382
|
],
|
|
2383
|
+
// Lip sync: the length is the audio's, the shape the face image's.
|
|
2384
|
+
...Object.fromEntries(
|
|
2385
|
+
Object.keys(LIP_SYNC_SPECS).map((e) => [e, ["resolution", "seed", "negativePrompt", "aspectRatio", "generateAudio", "durationSeconds"]])
|
|
2386
|
+
),
|
|
2315
2387
|
// Wan's output is also as long as its source; it takes resolution and seed.
|
|
2316
2388
|
"fal-ai/wan/v2.2-14b/animate/replace": ["durationSeconds", "negativePrompt", "aspectRatio", "generateAudio"],
|
|
2317
2389
|
"blackforestlabs/flux-3/keyframes-to-video/draft": ["resolution", "seed", "negativePrompt"],
|
|
@@ -3125,6 +3197,9 @@ var MODEL_TASKS = [
|
|
|
3125
3197
|
"text-to-video",
|
|
3126
3198
|
"image-to-video",
|
|
3127
3199
|
"video-to-video",
|
|
3200
|
+
// Lip sync (2026-11-28): one face image and one audio file in, a talking
|
|
3201
|
+
// video as long as the audio out.
|
|
3202
|
+
"lip-sync",
|
|
3128
3203
|
// A finishing pass over a DRAFT video: the upstream draft's cache bundle is
|
|
3129
3204
|
// the only input, and the output is the full-quality render of the same take.
|
|
3130
3205
|
"video-enhance",
|
|
@@ -3183,6 +3258,8 @@ var TASK_PORTS = {
|
|
|
3183
3258
|
// Video-to-video (character replace): a source video plus ONE reference image
|
|
3184
3259
|
// (the person to swap in). The two-input contract lives in the fal adapter.
|
|
3185
3260
|
"video-to-video": { inputs: ["video", "image"], output: "video" },
|
|
3261
|
+
// Lip sync: the face image and the audio it speaks.
|
|
3262
|
+
"lip-sync": { inputs: ["image", "audio"], output: "video" },
|
|
3186
3263
|
// Video-enhance: the upstream DRAFT video's cache bundle is the whole input.
|
|
3187
3264
|
// The wire is typed 'video' so it only accepts a video node; whether that
|
|
3188
3265
|
// node actually produced a draft cache is checked at run time, loudly.
|
|
@@ -4512,6 +4589,37 @@ var CATALOG_ENTRIES2 = [
|
|
|
4512
4589
|
// resolution, so the settings panel offers none and validation refuses one.
|
|
4513
4590
|
capabilities: { needsImageInput: true, maxInputImages: 4, resolutions: [] }
|
|
4514
4591
|
},
|
|
4592
|
+
// ── fal.ai: lip sync (face image + audio -> talking video) ─────────────
|
|
4593
|
+
// Inputs, limits and prices from each model's fal page, checked 2026-11-28
|
|
4594
|
+
// (providers/lip-sync-specs.ts holds the limits).
|
|
4595
|
+
{
|
|
4596
|
+
id: "fal/heygen-avatar-6",
|
|
4597
|
+
provider: "fal",
|
|
4598
|
+
modality: "video",
|
|
4599
|
+
task: "lip-sync",
|
|
4600
|
+
label: "HeyGen Avatar 6 (lip sync)",
|
|
4601
|
+
description: "HeyGen Avatar 6 via fal. Makes one face image speak an audio file (MP3 or WAV, up to 300 s) as a 1080p talking video, calm head motion. An optional prompt describes the motion. Run the speech node first, then this one: Studio reads the length of the audio before it starts. Default lip sync.",
|
|
4602
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] },
|
|
4603
|
+
isDefault: true
|
|
4604
|
+
},
|
|
4605
|
+
{
|
|
4606
|
+
id: "fal/heygen-avatar-6-turbo",
|
|
4607
|
+
provider: "fal",
|
|
4608
|
+
modality: "video",
|
|
4609
|
+
task: "lip-sync",
|
|
4610
|
+
label: "HeyGen Avatar 6 Turbo (lip sync)",
|
|
4611
|
+
description: "HeyGen Avatar 6 Turbo via fal: the faster variant of Avatar 6, with the same inputs.",
|
|
4612
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] }
|
|
4613
|
+
},
|
|
4614
|
+
{
|
|
4615
|
+
id: "fal/omnihuman-v2",
|
|
4616
|
+
provider: "fal",
|
|
4617
|
+
modality: "video",
|
|
4618
|
+
task: "lip-sync",
|
|
4619
|
+
label: "OmniHuman v2 (lip sync)",
|
|
4620
|
+
description: "ByteDance OmniHuman v2 via fal. Makes one face image speak an audio file (MP3 or WAV, 4 to 300 s) as a talking video.",
|
|
4621
|
+
capabilities: { needsImageInput: true, maxInputImages: 1, resolutions: [] }
|
|
4622
|
+
},
|
|
4515
4623
|
// ── fal.ai: vision + utility (B4) ──────────────────────────────────────
|
|
4516
4624
|
{
|
|
4517
4625
|
id: "fal/florence-2-detailed-caption",
|
|
@@ -4620,6 +4728,29 @@ var CATALOG_ENTRIES2 = [
|
|
|
4620
4728
|
},
|
|
4621
4729
|
isDefault: true
|
|
4622
4730
|
},
|
|
4731
|
+
{
|
|
4732
|
+
id: "elevenlabs/tts-v4",
|
|
4733
|
+
provider: "elevenlabs",
|
|
4734
|
+
modality: "audio",
|
|
4735
|
+
task: "text-to-speech",
|
|
4736
|
+
label: "ElevenLabs Eleven v4 (TTS)",
|
|
4737
|
+
description: "ElevenLabs Eleven v4 text-to-speech. 90+ languages, follows audio tags such as [whispers] written into the text. Takes Stability and Similarity, no Speed. Returns mp3 bytes synchronously. Up to 10,000 characters per request.",
|
|
4738
|
+
// Checked 2026-11-28. ElevenLabs' v4 page: two voice settings, Stability
|
|
4739
|
+
// and Similarity; "Style and Speed sliders are not available". The text
|
|
4740
|
+
// limit: its API price page says 10,000 characters per request, while
|
|
4741
|
+
// GET /v1/models and the models page say 100,000. Studio takes the lower
|
|
4742
|
+
// figure, which both accept; it is also what a voice node whose text
|
|
4743
|
+
// arrives at run time is held at.
|
|
4744
|
+
capabilities: {
|
|
4745
|
+
speech: {
|
|
4746
|
+
maxCharacters: 1e4,
|
|
4747
|
+
voiceSettings: {
|
|
4748
|
+
stability: { min: 0, max: 1, step: 0.05, default: 0.5 },
|
|
4749
|
+
similarityBoost: { min: 0, max: 1, step: 0.05, default: 0.75 }
|
|
4750
|
+
}
|
|
4751
|
+
}
|
|
4752
|
+
}
|
|
4753
|
+
},
|
|
4623
4754
|
{
|
|
4624
4755
|
id: "elevenlabs/scribe-v1",
|
|
4625
4756
|
provider: "elevenlabs",
|
|
@@ -4829,6 +4960,9 @@ var PROVIDER_API_NAMES = {
|
|
|
4829
4960
|
// status / result URLs use only `fal-ai/wan` (owner/alias), which the fal SDK
|
|
4830
4961
|
// derives itself (parseEndpointId); submit takes the full id.
|
|
4831
4962
|
"fal/wan-animate-replace": "fal-ai/wan/v2.2-14b/animate/replace",
|
|
4963
|
+
"fal/heygen-avatar-6": "heygen/avatar-6/image-to-video",
|
|
4964
|
+
"fal/heygen-avatar-6-turbo": "heygen/avatar-6/turbo/image-to-video",
|
|
4965
|
+
"fal/omnihuman-v2": "bytedance/omnihuman/v2",
|
|
4832
4966
|
// Kling O3 Pro Edit: nested id like Wan's, the SDK derives owner/alias itself.
|
|
4833
4967
|
"fal/kling-o3-edit": "fal-ai/kling-video/o3/pro/video-to-video/edit",
|
|
4834
4968
|
// fal vision + utility endpoints (B4). Sync via subscribe.
|
|
@@ -4847,6 +4981,7 @@ var PROVIDER_API_NAMES = {
|
|
|
4847
4981
|
// audio: ElevenLabs voice (B2). The upstream model_id the ElevenLabs API
|
|
4848
4982
|
// expects on the TTS / STT endpoints.
|
|
4849
4983
|
"elevenlabs/tts-multilingual-v2": "eleven_multilingual_v2",
|
|
4984
|
+
"elevenlabs/tts-v4": "eleven_v4",
|
|
4850
4985
|
"elevenlabs/scribe-v1": "scribe_v1",
|
|
4851
4986
|
// text: LLM director (B3). KIE-Claude expects the bare Anthropic model id on
|
|
4852
4987
|
// its Messages endpoint; OpenRouter expects the provider-prefixed id.
|
|
@@ -5256,6 +5391,15 @@ var OPENROUTER_VIDEO_SPECS2 = {
|
|
|
5256
5391
|
"google/veo-3.1-fast": veoSpec22("Veo 3.1 Fast", ["720p", "1080p", "4k"]),
|
|
5257
5392
|
"google/veo-3.1": veoSpec22("Veo 3.1", ["720p", "1080p", "4k"])
|
|
5258
5393
|
};
|
|
5394
|
+
var HEYGEN_AVATAR_6_ENDPOINT2 = "heygen/avatar-6/image-to-video";
|
|
5395
|
+
var HEYGEN_AVATAR_6_TURBO_ENDPOINT2 = "heygen/avatar-6/turbo/image-to-video";
|
|
5396
|
+
var OMNIHUMAN_V2_ENDPOINT2 = "bytedance/omnihuman/v2";
|
|
5397
|
+
var LIP_SYNC_MAX_AUDIO_BYTES2 = 15 * 1024 * 1024;
|
|
5398
|
+
var LIP_SYNC_SPECS2 = {
|
|
5399
|
+
[HEYGEN_AVATAR_6_ENDPOINT2]: { minSeconds: 1, maxSeconds: 300, promptField: "motion_prompt", motionExpressiveness: true },
|
|
5400
|
+
[HEYGEN_AVATAR_6_TURBO_ENDPOINT2]: { minSeconds: 1, maxSeconds: 300, promptField: "motion_prompt", motionExpressiveness: true },
|
|
5401
|
+
[OMNIHUMAN_V2_ENDPOINT2]: { minSeconds: 4, maxSeconds: 300, promptField: "prompt", motionExpressiveness: false }
|
|
5402
|
+
};
|
|
5259
5403
|
var GROK_IMAGINE_I2V_ENDPOINT2 = "xai/grok-imagine-video/image-to-video";
|
|
5260
5404
|
var GROK_IMAGINE_15_I2V_ENDPOINT2 = "xai/grok-imagine-video/v1.5/image-to-video";
|
|
5261
5405
|
var WAN_30_I2V_ENDPOINT2 = "alibaba/wan-3.0/image-to-video";
|
|
@@ -5297,6 +5441,11 @@ var VIDEO_FIXED_RESOLUTION2 = {
|
|
|
5297
5441
|
"blackforestlabs/flux-3/draft-enhance": "1080p",
|
|
5298
5442
|
// Not a resolution the caller picks: Kling O3 Edit renders at the source's.
|
|
5299
5443
|
"fal-ai/kling-video/o3/pro/video-to-video/edit": "source",
|
|
5444
|
+
// Lip sync: no size knob. HeyGen is sent without one and renders its 1080p
|
|
5445
|
+
// default; OmniHuman v2 declares none.
|
|
5446
|
+
"heygen/avatar-6/image-to-video": "1080p",
|
|
5447
|
+
"heygen/avatar-6/turbo/image-to-video": "1080p",
|
|
5448
|
+
"bytedance/omnihuman/v2": "fixed",
|
|
5300
5449
|
// Kling 2.6 Pro takes no resolution; it renders 1080p.
|
|
5301
5450
|
[KLING_26_I2V_ENDPOINT2]: "1080p",
|
|
5302
5451
|
// Not a resolution the caller picks: Kling O3's tier sets the size.
|
|
@@ -5446,6 +5595,10 @@ var VIDEO_UNSUPPORTED_PARAMS2 = {
|
|
|
5446
5595
|
"generateAudio",
|
|
5447
5596
|
"durationSeconds"
|
|
5448
5597
|
],
|
|
5598
|
+
// Lip sync: the length is the audio's, the shape the face image's.
|
|
5599
|
+
...Object.fromEntries(
|
|
5600
|
+
Object.keys(LIP_SYNC_SPECS2).map((e) => [e, ["resolution", "seed", "negativePrompt", "aspectRatio", "generateAudio", "durationSeconds"]])
|
|
5601
|
+
),
|
|
5449
5602
|
// Wan's output is also as long as its source; it takes resolution and seed.
|
|
5450
5603
|
"fal-ai/wan/v2.2-14b/animate/replace": ["durationSeconds", "negativePrompt", "aspectRatio", "generateAudio"],
|
|
5451
5604
|
"blackforestlabs/flux-3/keyframes-to-video/draft": ["resolution", "seed", "negativePrompt"],
|
|
@@ -5595,6 +5748,12 @@ function sendableOptions(options, model) {
|
|
|
5595
5748
|
delete kept.generateAudio;
|
|
5596
5749
|
return kept;
|
|
5597
5750
|
}
|
|
5751
|
+
function voiceSettingsRefusal(model, voiceSettings) {
|
|
5752
|
+
const speech = model?.capabilities?.speech;
|
|
5753
|
+
if (!speech || speech.voiceSettings.speed) return null;
|
|
5754
|
+
if (!voiceSettings || typeof voiceSettings !== "object" || voiceSettings.speed === void 0) return null;
|
|
5755
|
+
return `${model?.label ?? model?.id ?? "This model"} has no Speed setting. Remove voiceSettings.speed, or pick a model that has it.`;
|
|
5756
|
+
}
|
|
5598
5757
|
var PROMPT_REQUIRED = /* @__PURE__ */ new Set([
|
|
5599
5758
|
"text-to-image",
|
|
5600
5759
|
"image-to-image",
|
|
@@ -5613,7 +5772,7 @@ var PROMPT_REQUIRED = /* @__PURE__ */ new Set([
|
|
|
5613
5772
|
"text-to-audio",
|
|
5614
5773
|
"text-to-speech"
|
|
5615
5774
|
]);
|
|
5616
|
-
var PROMPT_OPTIONAL = /* @__PURE__ */ new Set(["image-to-video", "image-to-json", "video-to-video"]);
|
|
5775
|
+
var PROMPT_OPTIONAL = /* @__PURE__ */ new Set(["image-to-video", "image-to-json", "video-to-video", "lip-sync"]);
|
|
5617
5776
|
function taskNeedsPrompt(task) {
|
|
5618
5777
|
return PROMPT_REQUIRED.has(task) || PROMPT_OPTIONAL.has(task);
|
|
5619
5778
|
}
|
|
@@ -5624,7 +5783,7 @@ function promptInputKey(task) {
|
|
|
5624
5783
|
return task === "texture" ? "texturePrompt" : "prompt";
|
|
5625
5784
|
}
|
|
5626
5785
|
function portBinding(task, port) {
|
|
5627
|
-
if (port === "image" && (task === "image-to-3d" || task === "multiview-to-3d" || task === "image-to-video" || task === "image-to-text" || task === "image-to-json")) {
|
|
5786
|
+
if (port === "image" && (task === "image-to-3d" || task === "multiview-to-3d" || task === "image-to-video" || task === "lip-sync" || task === "image-to-text" || task === "image-to-json")) {
|
|
5628
5787
|
return { key: "inputImageUrl", path: "url" };
|
|
5629
5788
|
}
|
|
5630
5789
|
if (port === "reference" && task === "image-to-video") {
|
|
@@ -5654,7 +5813,7 @@ function portBinding(task, port) {
|
|
|
5654
5813
|
if (port === "image" && (task === "upscale" || task === "background-remove")) {
|
|
5655
5814
|
return { key: "parentAssetId", path: "assetId" };
|
|
5656
5815
|
}
|
|
5657
|
-
if (port === "audio" && task === "speech-to-text") {
|
|
5816
|
+
if (port === "audio" && (task === "speech-to-text" || task === "lip-sync")) {
|
|
5658
5817
|
return { key: "inputAudioUrl", path: "url" };
|
|
5659
5818
|
}
|
|
5660
5819
|
if (port === "image" && task === "judge") {
|
|
@@ -5865,6 +6024,10 @@ function validateDocument(doc) {
|
|
|
5865
6024
|
const requested = node2.settings?.resolution ?? (baked && baked.kind === "literal" ? baked.value : void 0);
|
|
5866
6025
|
const refusal = resolutionRefusal(tryGetModel2(node2.model), requested);
|
|
5867
6026
|
if (refusal) return { ok: false, code: "unsupported", message: `"${node2.id}": ${refusal}` };
|
|
6027
|
+
const baking = node2.bakedInputs?.options;
|
|
6028
|
+
const bakedVoice = baking && baking.kind === "literal" && baking.value && typeof baking.value === "object" ? baking.value.voiceSettings : void 0;
|
|
6029
|
+
const voiceRefusal = voiceSettingsRefusal(tryGetModel2(node2.model), node2.settings?.voiceSettings ?? bakedVoice);
|
|
6030
|
+
if (voiceRefusal) return { ok: false, code: "unsupported", message: `"${node2.id}": ${voiceRefusal}` };
|
|
5868
6031
|
}
|
|
5869
6032
|
if (documentTopologicalOrder(doc) === null) {
|
|
5870
6033
|
return { ok: false, code: "cycle", message: `document "${doc.id}" has a cycle in its wires` };
|
|
@@ -6186,8 +6349,13 @@ function isFiniteNumber(v) {
|
|
|
6186
6349
|
function voiceSettingsOf(v) {
|
|
6187
6350
|
if (!v || typeof v !== "object" || Array.isArray(v)) return null;
|
|
6188
6351
|
const o = v;
|
|
6189
|
-
if (!isFiniteNumber(o.stability) || !isFiniteNumber(o.similarityBoost)
|
|
6190
|
-
|
|
6352
|
+
if (!isFiniteNumber(o.stability) || !isFiniteNumber(o.similarityBoost)) return null;
|
|
6353
|
+
if (o.speed !== void 0 && !isFiniteNumber(o.speed)) return null;
|
|
6354
|
+
return {
|
|
6355
|
+
stability: o.stability,
|
|
6356
|
+
similarityBoost: o.similarityBoost,
|
|
6357
|
+
...o.speed !== void 0 ? { speed: o.speed } : {}
|
|
6358
|
+
};
|
|
6191
6359
|
}
|
|
6192
6360
|
function settingsBindings(task, settings) {
|
|
6193
6361
|
if (!task || !settings || Object.keys(settings).length === 0) return {};
|
|
@@ -6202,6 +6370,7 @@ function settingsBindings(task, settings) {
|
|
|
6202
6370
|
}
|
|
6203
6371
|
case "video": {
|
|
6204
6372
|
const options = {};
|
|
6373
|
+
if (task === "lip-sync") return {};
|
|
6205
6374
|
if (task === "video-to-video") {
|
|
6206
6375
|
if (typeof settings.resolution === "string") options.resolution = settings.resolution;
|
|
6207
6376
|
return Object.keys(options).length > 0 ? { options: lit(options) } : {};
|
|
@@ -6382,6 +6551,7 @@ var TASK_TO_KIND = {
|
|
|
6382
6551
|
// video-to-video (character replace via Wan 2.2 Animate or Kling O3 Edit): rides the same
|
|
6383
6552
|
// generate_video job; the fal provider routes the task to the replace endpoint.
|
|
6384
6553
|
"video-to-video": "generate_video",
|
|
6554
|
+
"lip-sync": "generate_video",
|
|
6385
6555
|
// video-enhance (FLUX.3 draft-enhance): the same generate_video job; the fal
|
|
6386
6556
|
// provider sends the upstream draft's cache bundle instead of frames.
|
|
6387
6557
|
"video-enhance": "generate_video",
|
|
@@ -9220,7 +9390,7 @@ function registerTools(server, base) {
|
|
|
9220
9390
|
|
|
9221
9391
|
// src/server.ts
|
|
9222
9392
|
var SERVER_NAME = "lumitra-studio";
|
|
9223
|
-
var SERVER_VERSION = "0.
|
|
9393
|
+
var SERVER_VERSION = "0.22.0";
|
|
9224
9394
|
function createStudioMcpServer(opts = {}) {
|
|
9225
9395
|
const config = opts.config ?? resolveConfig(opts.env ?? process.env);
|
|
9226
9396
|
const client = new StudioClient(config, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marlinjai/studio-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Model Context Protocol (MCP) server over the Lumitra Studio HTTP API: generate images, mint characters, run workflows, swap characters into video.",
|
|
6
6
|
"license": "MIT",
|