Files
KwaiVGI-ComfyUI-KLingAI-API/py/api/image2video.py
T
2024-11-12 20:46:47 +08:00

29 lines
561 B
Python

from .prediction import Prediction, VideoPredictionResponse
class Image2Video(Prediction):
model: str
image: str
image_tail: str
prompt: str
negative_prompt: str
cfg_scale: float
mode: str
duration: str
def __init__(self):
super().__init__()
self._request_method = "POST"
self._request_path = "/v1/videos/image2video"
self._query_prediction_info_method = "GET"
self._query_prediction_info_path = "/v1/videos/image2video"
self._response_cls = VideoPredictionResponse