File size: 1,937 Bytes
0ab5288
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43255b1
3d66d5c
43255b1
0ab5288
 
43255b1
0ab5288
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""
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'
}