-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathenv.template
More file actions
92 lines (72 loc) · 3.08 KB
/
env.template
File metadata and controls
92 lines (72 loc) · 3.08 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# OpenTryOn Environment Configuration Template
# Copy this file to .env and fill in your API keys
# cp env.template .env
# ========================================
# Virtual Try-On Services
# ========================================
# Amazon Nova Canvas (AWS Bedrock)
# Get credentials from: https://console.aws.amazon.com/bedrock/
# Required for: virtual_tryon_nova
AWS_ACCESS_KEY_ID=your_aws_access_key_here
AWS_SECRET_ACCESS_KEY=your_aws_secret_key_here
AMAZON_NOVA_REGION=us-east-1
AMAZON_NOVA_MODEL_ID=amazon.nova-canvas-v1:0
# Kling AI (Kolors Virtual Try-On)
# Get API keys from: https://klingai.com/
# Required for: virtual_tryon_kling
KLING_AI_API_KEY=your_kling_api_key_here
KLING_AI_SECRET_KEY=your_kling_secret_key_here
KLING_AI_BASE_URL=https://api-singapore.klingai.com
# Segmind Try-On Diffusion
# Get API key from: https://www.segmind.com/
# Required for: virtual_tryon_segmind
SEGMIND_API_KEY=your_segmind_api_key_here
# ========================================
# Image Generation Services
# ========================================
# Google Gemini (Nano Banana)
# Get API key from: https://aistudio.google.com/app/apikey
# Required for: generate_image_nano_banana, generate_image_nano_banana_pro
GEMINI_API_KEY=your_gemini_api_key_here
# Black Forest Labs (FLUX.2)
# Get API key from: https://docs.bfl.ml/
# Required for: generate_image_flux2_pro, generate_image_flux2_flex
BFL_API_KEY=your_bfl_api_key_here
# Luma AI (Photon & Ray)
# Get API key from: https://lumalabs.ai/dream-machine/api
# Required for: generate_image_luma_photon, generate_image_luma_photon_flash, generate_video_luma_ray
LUMA_AI_API_KEY=your_luma_api_key_here
# ========================================
# Preprocessing Models
# ========================================
# U2Net Cloth Segmentation Checkpoint
# Download from: https://github.com/levindabhi/cloth-segmentation/tree/master
# Required for: segment_garment, extract_garment
# Example path: /path/to/cloth_segm_u2net_latest.pth
U2NET_CLOTH_SEG_CHECKPOINT_PATH=
# ========================================
# Optional: API Server Configuration
# ========================================
# API Server Port (default: 8000)
# API_SERVER_PORT=8000
# API Server Host (default: 0.0.0.0)
# API_SERVER_HOST=0.0.0.0
# Enable Debug Mode (default: False)
# DEBUG=False
# ========================================
# Notes
# ========================================
# Minimum Required Services (for basic functionality):
# - At least ONE virtual try-on service (Nova Canvas, Kling AI, or Segmind)
# - At least ONE image generation service (Gemini, FLUX.2, or Luma AI)
# Optional Services:
# - Luma AI: For video generation and additional image generation
# - U2Net: For local garment preprocessing (can use API-based preprocessing instead)
# Service Configuration Status:
# ✓ Configured: API key is set and validated
# ✗ Not configured: API key is missing or invalid
# Run the MCP server to see current configuration status
# To use this template:
# 1. Copy this file: cp env.template .env
# 2. Fill in your API keys in the .env file
# 3. Never commit the .env file (it's in .gitignore)