diff --git a/video-gen-api/app/schemas/credit_ratio.py b/video-gen-api/app/schemas/credit_ratio.py index e9defa29..7d80c336 100644 --- a/video-gen-api/app/schemas/credit_ratio.py +++ b/video-gen-api/app/schemas/credit_ratio.py @@ -61,6 +61,24 @@ class CreditRatioCreate(BaseModel): description="传入视频每秒积分。视频生成时,用户上传参考视频每秒消耗的积分", examples=[0.5], ) + input_image_ratio: float = Field( + default=1.0, + ge=0, + description="传入图片积分倍率。图片生成时,用户上传参考图片的额外积分倍率", + examples=[1.0], + ) + input_image_base_credits: float = Field( + default=0.0, + ge=0, + description="传入图片基础积分。图片生成时,用户上传参考图片的基础积分", + examples=[0.0], + ) + input_image_per_image_credits: float = Field( + default=0.5, + ge=0, + description="传入图片每张积分。图片生成时,用户上传参考图片每张消耗的积分", + examples=[0.5], + ) class CreditRatioOut(CreditRatioCreate):