File size: 1,946 Bytes
7fa9d90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
347b758
7fa9d90
347b758
 
 
 
 
1a02e5e
 
 
 
 
 
 
 
 
347b758
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
# NCAkit Environment Configuration
# Copy this file to .env and fill in your values

# ===================
# Video Creator Module
# ===================

# Pexels API key for background videos (Required)
# Get from: https://www.pexels.com/api/
PEXELS_API_KEY=your_pexels_api_key_here

# Kokoro TTS endpoint URL (Required)
# Example: https://your-username-kokoro-tts.hf.space
HF_TTS=https://your-tts-endpoint.hf.space

# Whisper model for captions (Optional, default: tiny.en)
# Options: tiny.en, base.en, small.en, medium.en, large
WHISPER_MODEL=tiny.en

# ===================
# Server Configuration
# ===================

# Server port (Optional, default: 8880)
PORT=8880

# Log level (Optional, default: info)
# Options: debug, info, warning, error
LOG_LEVEL=info

# Running in Docker? (Optional, default: false)
DOCKER=false

# Custom data directory (Optional)
# DATA_DIR_PATH=/path/to/data

# ===================
# Add new module configs below
# ===================

# ===================
# Story Reels Module (Image Generation)
# ===================

# NVIDIA API Key (PRIMARY - stable-diffusion-3-medium)
# Get from: https://build.nvidia.com/
NVIDIA_API_KEY=nvapi-your_key_here

# Cloudflare Worker URL (FALLBACK)
CF_URL=https://image-api.yourworker.workers.dev

# Cloudflare API Key (FALLBACK)
CF_API=your_api_key_here

# Gemini API Key (Required for AI script generation - Fallback)
# Get from: https://aistudio.google.com/apikey
GEMINI_API_KEY=your_gemini_key_here

# Groq API Key (Primary for AI script generation)
# Get from: https://console.groq.com/keys
GROQ_API=gsk_your_groq_key_here

# ===================
# HF Cloud Storage (Optional - Recommended)
# ===================
# If set, videos will upload to HF Hub Dataset repo
# Format: username/repo-name (e.g., robiul487/ncakit-videos)
# Uses HF_TOKEN for authentication (already set above)
# Folders auto-created: short_video/, story_reels/
HF_REPO=your-username/ncakit-videos
```