[Feature] Add a extra body param in create video api (#1955)

Signed-off-by: rongfu.leng <lenronfu@gmail.com>
This commit is contained in:
rongfu.leng authored and GitHub committed 2026-03-24 13:02:35 +08:00
1 parent ad5e4e5710
commit b239bf0b7d
9 files changed
+742 -3

No files matched your search

@@ -161,6 +161,12 @@ class VideoGenerationRequest(BaseModel):
),
)
# Generic model-specific parameters
extra_params: dict[str, Any] | None = Field(
default=None,
description=("Optional model-specific parameters passed directly to the model's extra_args. "),
)
def resolve_video_params(self) -> VideoParams:
vp = VideoParams(width=self.width, height=self.height, fps=self.fps, num_frames=self.num_frames)