Skip to content

Unrestricted Open-source alternative to AI video platforms — Free AI image & video generation studio with 600+ models (Flux, Midjourney, Kling, Sora, Veo). No content filters. Self-hosted, MIT licensed.

fix(video-studio): map t2v selection to i2v sibling by family on image upload

Anil Matchab2d331e7d8ab
diff --git a/src/components/VideoStudio.js b/src/components/VideoStudio.js
index 95e87f2f..8418a63c 100644
--- a/src/components/VideoStudio.js
+++ b/src/components/VideoStudio.js
@@ -130,8 +130,13 @@ export function VideoStudio() {
}
if (!imageMode) {
imageMode = true;
- selectedModel = allI2V[0].id;
- selectedModelName = allI2V[0].name;
+ const currentT2V = allT2V.find(m => m.id === selectedModel);
+ const sibling = currentT2V?.family
+ ? allI2V.find(m => m.family === currentT2V.family)
+ : null;
+ const target = sibling || allI2V[0];
+ selectedModel = target.id;
+ selectedModelName = target.name;
document.getElementById('v-model-btn-label').textContent = selectedModelName;
updateControlsForModel(selectedModel);
}