""" Veo3 AI Video Generator - 配置文件 """ # API配置 API_CONFIG = { "VEO3_GENERATE_URL": "https://api.kie.ai/api/v1/veo/generate", "VEO3_DETAILS_URL": "https://api.kie.ai/api/v1/veo/record-info", "FILE_UPLOAD_URL": "https://kieai.redpandaai.co/api/file-base64-upload", "TIMEOUT": 60, "TASK_TIMEOUT": 600, # 10分钟 "POLL_INTERVAL": 5, # 5秒轮询间隔 } # 文件配置 FILE_CONFIG = { "MAX_IMAGE_SIZE": 10 * 1024 * 1024, # 10MB "ALLOWED_IMAGE_TYPES": ['.jpg', '.jpeg', '.png', '.gif', '.webp'], "MAX_IMAGES": 1, # Veo3只支持1张图片 "TEMP_CLEANUP_INTERVAL": 1800, # 30分钟清理间隔 } # UI配置 UI_CONFIG = { "APP_TITLE": "Google Veo 3 API Free Online Test", "APP_SUBTITLE": "Test Veo 3 API free online here. Generate high-quality videos with synchronized audio, realistic physics, and immersive sound effects. Test Veo 3 Fast online for free and start generating videos.", "APP_DESCRIPTION": "💡 Veo 3 API offers high-quality video generation with synchronized audio. Create stunning videos with realistic physics and immersive sound effects. Free to test Veo 3 Fast online on Hugging Face Spaces.", "DEFAULT_PROMPT": "A dog playing in a park with beautiful sunset lighting", "DEFAULT_ASPECT_RATIO": "16:9", "SERVER_PORT": 7860, "SERVER_HOST": "0.0.0.0", } # 示例提示词 EXAMPLE_PROMPTS = [ "A dog playing in a park with beautiful sunset lighting", "A cat walking through a magical forest with glowing mushrooms", "Ocean waves crashing against rocks during a storm", "A futuristic city with flying cars and neon lights", "A peaceful mountain landscape with snow falling gently", ] # 支持的宽高比 ASPECT_RATIOS = [ "16:9", "9:16", ] # MIME类型映射 MIME_TYPES = { '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg', '.png': 'image/png', '.gif': 'image/gif', '.webp': 'image/webp' }