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.

feat(studio): simplify PixVerse model selection

antilya4bac80e309e2
diff --git a/packages/studio/src/components/ModelParameterControls.jsx b/packages/studio/src/components/ModelParameterControls.jsx
index 9d8ea7d4..1eb308b4 100644
--- a/packages/studio/src/components/ModelParameterControls.jsx
+++ b/packages/studio/src/components/ModelParameterControls.jsx
@@ -58,6 +58,9 @@ function ScalarInput({ schema, value, onChange, label }) {
onChange(selected);
}}
>
+ {schema.emptyLabel && schema.default === undefined && (
+ <option value="">{schema.emptyLabel}</option>
+ )}
{schema.enum.map((option) => (
<option key={String(option)} value={String(option)}>
{schema.optionLabels?.[option] || String(option)}
diff --git a/packages/studio/src/components/VideoStudio.jsx b/packages/studio/src/components/VideoStudio.jsx
index c2fcd020..c17ad78c 100644
--- a/packages/studio/src/components/VideoStudio.jsx
+++ b/packages/studio/src/components/VideoStudio.jsx
@@ -1260,14 +1260,26 @@ export default function VideoStudio({
(variant, mode, family, workflowId = null) => {
if (workflowId) {
const draftKey = getVideoWorkflowDraftKey(family.id, workflowId);
+ const previous = selectionRef.current;
+ const sourceWorkflowId = previous?.selectedFamilyId === family.id
+ ? previous.selectedWorkflowId : null;
+ const sourceDraftKey = sourceWorkflowId
+ ? getVideoWorkflowDraftKey(family.id, sourceWorkflowId) : null;
+ const sourceModel = sourceDraftKey
+ ? videoModelCatalog.variantById.get(previous.selectedModel)?.model : null;
+ const legacyMedia = mediaRef.current;
setWorkflowMediaDrafts((drafts) => {
if (drafts[draftKey]) return drafts;
+ // Seed a new mode from matching active slots; keep existing drafts intact.
+ const media = sourceDraftKey
+ ? projectVideoWorkflowMedia(sourceModel, sourceWorkflowId, drafts[sourceDraftKey])
+ : legacyMedia;
return {
...drafts,
- [draftKey]: legacyVideoMediaToWorkflowDraft(
+ [draftKey]: projectVideoWorkflowMedia(
variant.model,
workflowId,
- mediaRef.current,
+ media,
),
};
});
diff --git a/packages/studio/src/groupedVideoModels.js b/packages/studio/src/groupedVideoModels.js
index bb4e2ba2..a7454b28 100644
--- a/packages/studio/src/groupedVideoModels.js
+++ b/packages/studio/src/groupedVideoModels.js
@@ -5,8 +5,9 @@ import { ALIBABA_MODEL_GROUP } from "./alibabaModels.js";
import { HAPPY_HORSE_MODEL_GROUP } from "./happyHorseModels.js";
import { KLING_MODEL_GROUP } from "./klingModels.js";
import { VIDU_MODEL_GROUP } from "./viduModels.js";
+import { PIXVERSE_MODEL_GROUP } from "./pixverseModels.js";
-const groups = [SEEDANCE_MODEL_GROUP, VEO_MODEL_GROUP, MINIMAX_MODEL_GROUP, ALIBABA_MODEL_GROUP, HAPPY_HORSE_MODEL_GROUP, KLING_MODEL_GROUP, VIDU_MODEL_GROUP];
+const groups = [SEEDANCE_MODEL_GROUP, VEO_MODEL_GROUP, MINIMAX_MODEL_GROUP, ALIBABA_MODEL_GROUP, HAPPY_HORSE_MODEL_GROUP, KLING_MODEL_GROUP, VIDU_MODEL_GROUP, PIXVERSE_MODEL_GROUP];
const groupByFamilyId = new Map();
const configurationByModelId = new Map();
const familyNames = {};
diff --git a/packages/studio/src/groupedVideoParameters.js b/packages/studio/src/groupedVideoParameters.js
index 985c1c6e..68a055d0 100644
--- a/packages/studio/src/groupedVideoParameters.js
+++ b/packages/studio/src/groupedVideoParameters.js
@@ -14,6 +14,8 @@ import { KLING_MODEL_GROUP } from "./klingModels.js";
import { klingParameters } from "./klingParameters.js";
import { VIDU_MODEL_GROUP } from "./viduModels.js";
import { viduParameters } from "./viduParameters.js";
+import { PIXVERSE_MODEL_GROUP } from "./pixverseModels.js";
+import { pixverseParameters } from "./pixverseParameters.js";
import {
getMiniMaxResolutionOptions,
getMiniMaxSelectionAdjustments,
@@ -29,6 +31,7 @@ import {
} from "./veoParameters.js";
const groups = [
+ { familyNames: PIXVERSE_MODEL_GROUP.familyNames, ...pixverseParameters },
{ familyNames: VIDU_MODEL_GROUP.familyNames, ...viduParameters },
{ familyNames: KLING_MODEL_GROUP.familyNames, ...klingParameters },
{ familyNames: HAPPY_HORSE_MODEL_GROUP.familyNames, ...happyHorseParameters },
diff --git a/packages/studio/src/messages/en/videoStudio.json b/packages/studio/src/messages/en/videoStudio.json
index 72028e9a..5fdb4bdf 100644
--- a/packages/studio/src/messages/en/videoStudio.json
+++ b/packages/studio/src/messages/en/videoStudio.json
@@ -457,5 +457,56 @@
}
},
"musicDuration": "Sets duration to 4 seconds."
+ },
+ "pixverse": {
+ "fields": {
+ "audio": {
+ "title": "Generate audio",
+ "description": ""
+ },
+ "generate_audio_switch": {
+ "title": "Generate audio",
+ "description": ""
+ },
+ "style": {
+ "title": "Style",
+ "description": "",
+ "emptyLabel": "No preset",
+ "optionLabels": {
+ "none": "No preset",
+ "anime": "Anime",
+ "3d_animation": "3D animation",
+ "clay": "Clay",
+ "comic": "Comic",
+ "cyberpunk": "Cyberpunk"
+ }
+ },
+ "thinking": {
+ "title": "Prompt enhancement",
+ "description": "Let the model refine your description.",
+ "optionLabels": {
+ "auto": "Let model choose",
+ "enabled": "On",
+ "disabled": "Off"
+ }
+ },
+ "thinking_type": {
+ "title": "Prompt enhancement",
+ "description": "Help the model interpret your description.",
+ "optionLabels": {
+ "auto": "Let model choose",
+ "enabled": "On",
+ "disabled": "Off"
+ }
+ },
+ "multi_clip": {
+ "title": "Multiple shots",
+ "description": "Use several shots with camera changes."
+ },
+ "negative_prompt": {
+ "title": "Avoid",
+ "description": "Describe what to leave out."
+ }
+ }
}
}
diff --git a/packages/studio/src/messages/zh/videoStudio.json b/packages/studio/src/messages/zh/videoStudio.json
index 198eaa02..61ce3ea6 100644
--- a/packages/studio/src/messages/zh/videoStudio.json
+++ b/packages/studio/src/messages/zh/videoStudio.json
@@ -457,5 +457,56 @@
}
},
"musicDuration": "时长设为 4 秒。"
+ },
+ "pixverse": {
+ "fields": {
+ "audio": {
+ "title": "生成音频",
+ "description": ""
+ },
+ "generate_audio_switch": {
+ "title": "生成音频",
+ "description": ""
+ },
+ "style": {
+ "title": "风格",
+ "description": "",
+ "emptyLabel": "无预设",
+ "optionLabels": {
+ "none": "无预设",
+ "anime": "动漫",
+ "3d_animation": "3D 动画",
+ "clay": "黏土",
+ "comic": "漫画",
+ "cyberpunk": "赛博朋克"
+ }
+ },
+ "thinking": {
+ "title": "提示词优化",
+ "description": "让模型完善你的描述。",
+ "optionLabels": {
+ "auto": "由模型决定",
+ "enabled": "开启",
+ "disabled": "关闭"
+ }
+ },
+ "thinking_type": {
+ "title": "提示词优化",
+ "description": "帮助模型理解你的描述。",
+ "optionLabels": {
+ "auto": "由模型决定",
+ "enabled": "开启",
+ "disabled": "关闭"
+ }
+ },
+ "multi_clip": {
+ "title": "多镜头",
+ "description": "使用多个镜头和视角切换。"
+ },
+ "negative_prompt": {
+ "title": "排除内容",
+ "description": "描述不希望出现的内容。"
+ }
+ }
}
}
diff --git a/packages/studio/src/models.js b/packages/studio/src/models.js
index eebea5c2..83f7087e 100644
--- a/packages/studio/src/models.js
+++ b/packages/studio/src/models.js
@@ -160,6 +160,32 @@ const VIDU_2_FORMAT_RULES = Object.freeze([
{ when: { resolution: ["1080p"] }, options: { aspectRatios: ["1:1"] } },
]);
+// PixVerse 4.5 supports five seconds at 1080p; 5.5 also supports eight.
+const PIXVERSE_45_DURATION_RULES = Object.freeze([
+ { when: { resolution: ["1080p"] }, options: { durations: [5] } },
+]);
+const PIXVERSE_55_DURATION_RULES = Object.freeze([
+ { when: { resolution: ["1080p"] }, options: { durations: [5, 8] } },
+]);
+const PIXVERSE_55_SETTINGS = Object.freeze({
+ style: {
+ type: "string", title: "Style", name: "style",
+ enum: ["none", "anime", "3d_animation", "clay", "comic", "cyberpunk"], default: "none",
+ },
+ thinking: {
+ type: "string", title: "Prompt enhancement", name: "thinking",
+ enum: ["auto", "enabled", "disabled"], default: "auto",
+ description: "Let the model refine your description.",
+ },
+ audio: {
+ type: "boolean", title: "Generate audio", name: "audio", default: false,
+ },
+ multi_clip: {
+ type: "boolean", title: "Multiple shots", name: "multi_clip", default: false,
+ description: "Use several shots with camera changes.",
+ },
+});
+
export const t2iModels = [
{
"id": "nano-banana",
@@ -5167,6 +5193,7 @@ export const t2vModels = [
{
"id": "pixverse-v4.5-t2v",
"name": "PixVerse V4.5",
+ "commonParameterRules": PIXVERSE_45_DURATION_RULES,
"inputs": {
"prompt": {
"type": "string",
@@ -5279,7 +5306,9 @@ export const t2vModels = [
{
"id": "pixverse-v5.5-t2v",
"name": "PixVerse V5.5",
+ "commonParameterRules": PIXVERSE_55_DURATION_RULES,
"inputs": {
+ ...PIXVERSE_55_SETTINGS,
"prompt": {
"type": "string",
"title": "Prompt",
@@ -13665,6 +13694,8 @@ export const i2vModels = [
"imageField": "images_list",
"lastImageField": "images_list",
"hasPrompt": true,
+ "promptRequired": true,
+ "commonParameterRules": PIXVERSE_45_DURATION_RULES,
"inputs": {
"prompt": {
"type": "string",
@@ -14079,6 +14110,7 @@ export const i2vModels = [
"imageField": "images_list",
"lastImageField": "images_list",
"hasPrompt": true,
+ "promptRequired": true,
"inputs": {
"prompt": {
"type": "string",
@@ -15407,7 +15439,10 @@ export const i2vModels = [
"imageField": "images_list",
"lastImageField": "images_list",
"hasPrompt": true,
+ "promptRequired": true,
+ "commonParameterRules": PIXVERSE_55_DURATION_RULES,
"inputs": {
+ ...PIXVERSE_55_SETTINGS,
"prompt": {
"type": "string",
"title": "Prompt",
@@ -15417,33 +15452,6 @@ export const i2vModels = [
"Slow upward camera glide along the staircase, lanterns gently swaying, stardust drifting in soft spirals, nebula clouds subtly shifting, and the cosmic gateway pulsing with rhythmic light; maintain original colors, composition, and celestial atmosphere with smooth cinematic motion."
]
},
- "style": {
- "type": "string",
- "title": "Style",
- "name": "style",
- "description": "The style of the generated video.",
- "enum": [
- "none",
- "anime",
- "3d_animation",
- "clay",
- "comic",
- "cyberpunk"
- ],
- "default": "none"
- },
- "thinking": {
- "type": "string",
- "title": "Thinking",
- "name": "thinking",
- "description": "Prompt optimization mode for model decision.",
- "enum": [
- "auto",
- "enabled",
- "disabled"
- ],
- "default": "auto"
- },
"aspect_ratio": {
"type": "string",
"title": "Aspect Ratio",
@@ -15491,20 +15499,6 @@ export const i2vModels = [
10
],
"default": 5
- },
- "audio": {
- "type": "boolean",
- "title": "Audio",
- "name": "audio",
- "description": "Enable audio generation (BGM, SFX, dialogue).",
- "default": false
- },
- "multi_clip": {
- "type": "boolean",
- "title": "Multi Clip",
- "name": "multi_clip",
- "description": "Enable multi-clip generation with dynamic camera changes.",
- "default": false
}
},
"provider": "pixverse",
@@ -25032,6 +25026,28 @@ export const v2vModels = [
"family": "pixverse-v6",
"videoField": "video_url",
"hasPrompt": true,
+ "promptRequired": true,
+ "inputs": {
+ "resolution": {
+ "type": "string", "title": "Resolution", "name": "resolution",
+ "enum": ["360p", "540p", "720p", "1080p"], "default": "720p"
+ },
+ "duration": {
+ "type": "integer", "title": "Duration", "name": "duration",
+ "enum": Array.from({ length: 15 }, (_, index) => index + 1), "default": 5
+ },
+ "generate_audio_switch": {
+ "type": "boolean", "title": "Generate audio", "name": "generate_audio_switch",
+ "default": false
+ },
+ "negative_prompt": {
+ "type": "string", "title": "Negative prompt", "name": "negative_prompt"
+ },
+ "style": {
+ "type": "string", "title": "Style", "name": "style",
+ "enum": ["anime", "3d_animation", "clay", "comic", "cyberpunk"]
+ }
+ },
"description": "Extend any existing video with new frames using PixVerse V6.",
"provider": "pixverse",
"provider_name": "Pixverse"
diff --git a/packages/studio/src/pixverseModels.js b/packages/studio/src/pixverseModels.js
new file mode 100644
index 00000000..49e99fbd
--- /dev/null
+++ b/packages/studio/src/pixverseModels.js
@@ -0,0 +1,37 @@
+import { createGroupedVideoRegistry } from "./groupedVideoRegistry.js";
+
+export const PIXVERSE_FAMILY_NAMES = Object.freeze({
+ "pixverse-6": "PixVerse 6",
+ "pixverse-5.5": "PixVerse 5.5",
+ "pixverse-5": "PixVerse 5",
+ "pixverse-4.5": "PixVerse 4.5",
+});
+
+const registry = createGroupedVideoRegistry({
+ facetOptions: {},
+ facetLabels: {},
+ registerVariants(register) {
+ for (const version of ["6", "5.5", "5", "4.5"]) {
+ const familyId = `pixverse-${version}`;
+ register(`pixverse-v${version}-t2v`, familyId, [null]);
+ register(`pixverse-v${version}-i2v`, familyId,
+ version === "6" ? ["animate_image"] : ["animate_image", "keyframes"]);
+ }
+ register("pixverse-v6-transition", "pixverse-6", ["keyframes"]);
+ register("pixverse-v6-extend", "pixverse-6", ["extend_uploaded_video"]);
+ },
+});
+
+export const {
+ getConfiguration: getPixVerseConfiguration,
+ resolveVariant: resolvePixVerseVariant,
+} = registry;
+
+export const PIXVERSE_MODEL_GROUP = Object.freeze({
+ copyKey: "pixverse",
+ familyNames: PIXVERSE_FAMILY_NAMES,
+ configurations: registry.configurations,
+ workflowVariants: registry.workflowVariants,
+ resolveVariant: resolvePixVerseVariant,
+ getVariantOptions: registry.getVariantOptions,
+});
diff --git a/packages/studio/src/pixverseParameters.js b/packages/studio/src/pixverseParameters.js
new file mode 100644
index 00000000..01387ab1
--- /dev/null
+++ b/packages/studio/src/pixverseParameters.js
@@ -0,0 +1,7 @@
+import { createNativeVideoParameters } from "./nativeVideoParameters.js";
+import { getPixVerseConfiguration, resolvePixVerseVariant } from "./pixverseModels.js";
+
+export const pixverseParameters = createNativeVideoParameters({
+ getConfiguration: getPixVerseConfiguration,
+ resolveVariant: resolvePixVerseVariant,
+});
diff --git a/packages/studio/src/videoToolCapabilities.js b/packages/studio/src/videoToolCapabilities.js
index 4adfc3f6..54d41af0 100644
--- a/packages/studio/src/videoToolCapabilities.js
+++ b/packages/studio/src/videoToolCapabilities.js
@@ -404,35 +404,19 @@ Object.assign(VIDEO_TOOL_OVERRIDES, {
...VIDEO_TOOL_OVERRIDES["pixverse-v6-extend"],
inputs: {
resolution: {
- title: "Resolution",
- type: "string",
- enum: ["360p", "540p", "720p", "1080p"],
- default: "720p",
configurable: true,
},
duration: {
- title: "Duration",
- type: "integer",
- enum: Array.from({ length: 15 }, (_, index) => index + 1),
- default: 5,
configurable: true,
},
generate_audio_switch: {
- title: "Generate audio",
- type: "boolean",
- default: false,
configurable: true,
},
negative_prompt: {
- title: "Negative prompt",
- type: "string",
configurable: true,
optional: true,
},
style: {
- title: "Style",
- type: "string",
- enum: ["anime", "3d_animation", "clay", "comic", "cyberpunk"],
configurable: true,
optional: true,
},
diff --git a/packages/studio/src/videoWorkflows.js b/packages/studio/src/videoWorkflows.js
index 5362135a..3e34fc2b 100644
--- a/packages/studio/src/videoWorkflows.js
+++ b/packages/studio/src/videoWorkflows.js
@@ -62,10 +62,6 @@ export const VIDEO_WORKFLOW_VARIANTS = Object.freeze({
animate_image: ["grok-imagine-video-1-5-preview"],
references: ["grok-imagine-image-to-video"],
},
- "pixverse-6": {
- animate_image: ["pixverse-v6-i2v"],
- keyframes: ["pixverse-v6-transition"],
- },
"ltx-2.3": {
animate_image: ["ltx-2.3-image-to-video"],
extend_uploaded_video: ["ltx-2.3-video-extend"],