feat: initialize aivideo project

This commit is contained in:
2026-04-17 18:33:05 +08:00
commit 14b18d67fe
162 changed files with 26251 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
from pydantic import BaseModel
class ProviderAccountPayload(BaseModel):
provider_code: str
provider_name: str
api_format: str
base_url: str
api_key: str
api_secret: str | None = ""
webhook_secret: str | None = ""
timeout_seconds: int = 120
max_retries: int = 3
status: int = 1
remark: str = ""
class ProviderModelPayload(BaseModel):
provider_account_id: int
model_code: str
model_name: str
request_content_type: str = "application/json"
supports_text_to_video: bool = True
supports_image_to_video: bool = False
supports_video_reference: bool = False
supports_audio_reference: bool = False
supports_generate_audio: bool = False
supports_remix: bool = False
supports_webhook: bool = False
min_duration: int = 4
max_duration: int = 12
default_ratio: str = "16:9"
default_resolution: str = "1280x720"
status: int = 1