videogen/config.example.toml
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

556 lines
22 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# MoneyPrinterTurbo configuration example.
# The app copies this file to config.toml on first run. Keep API keys and other
# credentials in config.toml; do not commit your local config.toml.
# =============================================================================
# API Service / API 服务
# =============================================================================
# Log level: DEBUG, INFO, WARNING, or ERROR.
log_level = "DEBUG"
# Use 127.0.0.1 for local-only access. 0.0.0.0 listens on all network interfaces.
listen_host = "0.0.0.0"
listen_port = 8080
[app]
# BYOV / captions transcription model (app.services.transcribe). small/base are
# the recommended CPU defaults for the keyless captions-only path; the heavier
# [whisper].model_size below still governs the legacy subtitle pipeline.
whisper_model_size = "base"
# -----------------------------------------------------------------------------
# Release gates / fail closed by default
# -----------------------------------------------------------------------------
# `public` alone is deliberately insufficient: all public feature flags below
# AND reelforge_public_launch_approved must be explicitly enabled after the
# provider/preflight and operator approval runbook has completed.
reelforge_launch_mode = "internal_pilot" # internal_pilot | public
reelforge_public_launch_approved = false
reelforge_signup_enabled = false
reelforge_checkout_enabled = false
reelforge_publishing_enabled = false
# -----------------------------------------------------------------------------
# General / 通用设置
# -----------------------------------------------------------------------------
# Hide the basic configuration panel in the WebUI.
# 是否隐藏 WebUI 基础配置面板。
hide_config = false
# Timeout in seconds for a single Edge TTS streaming request.
# 单次 Edge TTS 流式请求超时时间。慢网络可适当调大,设置为 0 表示禁用超时。
edge_tts_timeout = 30
# Verify TLS certificates for external APIs and material downloads.
# 默认应保持开启;仅在可信代理或自签名证书环境中临时关闭。
tls_verify = true
# -----------------------------------------------------------------------------
# Video Materials / 视频素材
# -----------------------------------------------------------------------------
# Available values: "pexels", "pixabay", "coverr", "local".
video_source = "pexels"
# API key lists support key rotation. Use straight ASCII double quotes and
# separate multiple keys with commas, for example: ["key-1", "key-2"].
# Key 必须使用英文半角双引号,多个 Key 使用英文逗号分隔。
# Register at https://www.pexels.com/api/
pexels_api_keys = []
# Register at https://pixabay.com/api/docs/
pixabay_api_keys = []
# Register at https://coverr.co/developers?ctx=header_navigation
coverr_api_keys = []
# Optional TwelveLabs integration for semantic material ranking and video QA.
# Install the optional dependency with: uv sync --extra twelvelabs
# Create an API key at https://playground.twelvelabs.io/
twelvelabs_api_keys = []
# Reorder search terms using Marengo before downloading materials. This option
# is ignored when match_materials_to_script is enabled.
twelvelabs_rerank_terms = false
# Optional model overrides. Uncomment only when a different model is required.
# twelvelabs_marengo_model = "marengo3.0"
# twelvelabs_pegasus_model = "pegasus1.5"
# Match search terms and downloaded materials to the script narrative order.
# 默认关闭,开启后会减少随机性,使素材顺序更贴近文案结构。
match_materials_to_script = false
# Optional Sonilo video-matched original background music.
# Create a key at https://platform.sonilo.com/dashboard. The WebUI can also save
# this value, or you can set the SONILO_API_KEY environment variable instead.
sonilo_api_key = ""
sonilo_base_url = "https://api.sonilo.com"
# 单次生成流连续无数据时的最长等待秒数;它不是整个请求的总耗时上限。
sonilo_timeout = 600
# -----------------------------------------------------------------------------
# LLM Providers / 大模型提供商
# -----------------------------------------------------------------------------
# Provider definitions, default models, and default Base URLs are maintained in
# app/models/llm_provider.py. Leave model_name and base_url empty to follow the
# Registry defaults; only set them when you need an explicit override.
llm_provider = "moonshot"
# Kimi / Moonshot AI
# API key: https://platform.kimi.com/console/api-keys
moonshot_api_key = ""
moonshot_base_url = ""
moonshot_model_name = ""
# OpenAI or another OpenAI Chat Completions-compatible provider.
# API key: https://platform.openai.com/api-keys
openai_api_key = ""
openai_base_url = ""
openai_model_name = ""
# Google Gemini
# API key: https://aistudio.google.com/app/apikey
gemini_api_key = ""
gemini_model_name = ""
# DeepSeek
# API key: https://platform.deepseek.com/api_keys
deepseek_api_key = ""
deepseek_base_url = ""
deepseek_model_name = ""
# Alibaba Cloud Qwen
# API key: https://dashscope.console.aliyun.com/apiKey
qwen_api_key = ""
qwen_model_name = ""
# Microsoft Azure OpenAI. model_name is the deployment name.
# Documentation: https://learn.microsoft.com/azure/ai-services/openai/reference
azure_api_key = ""
azure_base_url = ""
azure_model_name = ""
azure_api_version = "2024-02-15-preview"
# ByteDance VolcEngine Ark
# Console: https://console.volcengine.com/ark
volcengine_api_key = ""
volcengine_base_url = ""
volcengine_model_name = ""
# xAI Grok
# API key: https://console.x.ai/
grok_api_key = ""
grok_base_url = ""
grok_model_name = ""
# MiniMax. The API key and Base URL must use the same platform.
# China: https://platform.minimaxi.com/ | https://api.minimaxi.com/v1
# International: https://platform.minimax.io/ | https://api.minimax.io/v1
minimax_api_key = ""
minimax_base_url = ""
minimax_model_name = ""
# Xiaomi MiMo
# Documentation: https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call
mimo_api_key = ""
mimo_base_url = ""
mimo_model_name = ""
# Cloudflare AI Gateway. The token requires AI Gateway Read/Edit and Workers AI
# Read permissions. Leave gateway_id empty to use the Registry default.
# Dashboard: https://dash.cloudflare.com/
cloudflare_api_key = ""
cloudflare_account_id = ""
cloudflare_gateway_id = ""
cloudflare_model_name = ""
# Alibaba ModelScope. Bind an Alibaba Cloud account before using API inference.
# Documentation: https://modelscope.cn/docs/model-service/API-Inference/intro
modelscope_api_key = ""
modelscope_base_url = ""
modelscope_model_name = ""
# AIHubMix, an OpenAI-compatible multi-model gateway.
# API key: https://aihubmix.com/
aihubmix_api_key = ""
aihubmix_base_url = ""
aihubmix_model_name = ""
# AIML API, an OpenAI-compatible multi-model API.
# API key: https://aimlapi.com/app/keys
aimlapi_api_key = ""
aimlapi_base_url = ""
aimlapi_model_name = ""
# EvoLink, an OpenAI-compatible multi-model gateway.
# API key: https://evolink.ai/dashboard/keys
evolink_api_key = ""
evolink_base_url = ""
evolink_model_name = ""
# Ollama. Leave base_url empty to use the environment-aware local default.
# Set model_name to a model installed by `ollama pull` or shown by `ollama list`.
ollama_base_url = ""
ollama_model_name = ""
# OneAPI. Use the token, Base URL, and model ID from your OneAPI deployment.
# Project: https://github.com/songquanpeng/one-api
oneapi_api_key = ""
oneapi_base_url = ""
oneapi_model_name = ""
# LiteLLM uses provider credentials from environment variables, such as
# OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, or AWS_ACCESS_KEY_ID.
# Model formats: openai/gpt-4o, anthropic/claude-sonnet-4, ollama/llama3.
# Providers: https://docs.litellm.ai/docs/providers
litellm_model_name = ""
# Groq
# API key: https://console.groq.com/keys
groq_api_key = ""
groq_base_url = ""
groq_model_name = ""
# Pollinations AI: https://enter.pollinations.ai/
pollinations_api_key = ""
pollinations_base_url = ""
pollinations_model_name = ""
# -----------------------------------------------------------------------------
# Speech, Subtitles, and Video / 语音、字幕与视频
# -----------------------------------------------------------------------------
# Xiaomi MiMo TTS shares mimo_api_key and mimo_base_url with the MiMo LLM.
mimo_tts_model_name = "mimo-v2.5-tts"
mimo_tts_style_prompt = "请用自然、清晰、适合短视频旁白的语气朗读。"
# Subtitle provider: "edge" or "whisper". Whisper is loaded only when selected
# explicitly; Edge failures do not trigger an automatic Whisper model download.
# Leave empty to skip generation.
subtitle_provider = "edge"
# FFmpeg is normally downloaded and detected automatically. If detection fails,
# download it from https://www.gyan.dev/ffmpeg/builds/ and set the executable.
# Windows example: ffmpeg_path = "C:\\path\\to\\ffmpeg.exe"
# ffmpeg_path = ""
# Leave unset to follow the app default (libx264). Hardware encoders are optional;
# unsupported encoders automatically fall back to libx264.
# Available values: "libx264", "h264_nvenc", "h264_amf", "h264_qsv",
# "h264_mf", "h264_videotoolbox".
# video_codec = "libx264"
# -----------------------------------------------------------------------------
# Storage and Task Runtime / 存储与任务运行
# -----------------------------------------------------------------------------
# Public base URL used to build generated video download links. Leave empty to
# use the current API service address, or set an external reverse-proxy URL.
endpoint = ""
# Material storage: "" uses ./storage/cache_videos, "task" stores materials in
# each task directory, and an absolute path stores materials in that directory.
# Example: material_directory = "/path/to/videos"
material_directory = ""
# Optional Redis-backed task state. Keep Redis private to this application;
# untrusted writers must not be able to modify serialized task records.
enable_redis = false
redis_host = "localhost"
redis_port = 6379
redis_db = 0
redis_password = ""
# OAuth CSRF states always use Redis (independent of enable_redis) and expire
# after this many seconds. Redis outages fail account-connect closed.
reelforge_oauth_state_ttl_s = 600
# Timeout (seconds) for the provider OAuth token-exchange/refresh HTTP calls.
reelforge_oauth_http_timeout_s = 10
# Retain durable job-create idempotency keys long enough for safe client
# retries, then remove them in a bounded daily Celery beat sweep.
reelforge_idempotency_retention_hours = 24
# Maximum estimated provider COGS per ReelForge job variant in USD. Set to 0
# only to explicitly disable admission-time cost protection.
reelforge_max_job_cost_usd = 1.00
# Maximum number of concurrent and queued API video-generation tasks.
max_concurrent_tasks = 5
max_queued_tasks = 100
# -----------------------------------------------------------------------------
# Cross-platform Publishing / 跨平台发布
# -----------------------------------------------------------------------------
# Upload-Post can publish generated videos to TikTok, Instagram, and YouTube.
# Create an account and API key at https://upload-post.com/
# API documentation: https://docs.upload-post.com/
upload_post_enabled = false
upload_post_api_key = ""
upload_post_username = ""
# Available values: "tiktok", "instagram", "youtube".
upload_post_platforms = ["tiktok", "instagram"]
# Automatically publish successful video outputs after generation.
upload_post_auto_upload = false
# YouTube privacy: "public", "unlisted", or "private".
upload_post_youtube_privacy_status = "public"
# Maximum number of running and queued cross-post jobs per process. When the
# limit is reached, video generation still succeeds and only cross-posting is
# rejected.
# Cross-post jobs run in the current process and are not resumed after restart.
upload_post_max_pending_tasks = 10
# =============================================================================
# Whisper Subtitles / Whisper 字幕
# =============================================================================
[whisper]
# The model is downloaded automatically on first use unless a matching local
# directory exists at ./models/whisper-{model_size}.
model_size = "large-v3"
# device: "cpu" or "cuda". Common compute types include "int8" for CPU and
# "float16" or "int8_float16" for CUDA.
device = "cpu"
compute_type = "int8"
# Optional prompt that biases Whisper's decoder toward specific vocabulary
# (brand names, technical terms). Passed as initial_prompt to transcribe().
# Leave empty to disable.
# initial_prompt = ""
# =============================================================================
# Material Request Proxy / 素材请求代理
# =============================================================================
[proxy]
# Optional proxy used by Pexels, Pixabay, Coverr, and material downloads.
# Format: "http://<username>:<password>@<proxy>:<port>"
# Documentation: https://requests.readthedocs.io/en/latest/user/advanced/#proxies
# http = "http://127.0.0.1:3128"
# https = "http://127.0.0.1:1080"
# =============================================================================
# TTS Providers / 语音合成服务
# =============================================================================
[azure]
# Azure Speech TTS credentials. These are separate from Azure OpenAI settings.
# API key: https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices
speech_key = ""
speech_region = ""
[siliconflow]
# SiliconFlow TTS API key: https://siliconflow.cn/
api_key = ""
[elevenlabs]
# API key: https://elevenlabs.io/app/settings/api-keys
# Favorite voices in the ElevenLabs voice library are shown in the WebUI.
api_key = ""
# Available models include eleven_multilingual_v2, eleven_flash_v2_5, and eleven_v3.
model_id = "eleven_multilingual_v2"
# Video-to-Music uses a separate model family while sharing the same API key.
music_model_id = "music_v2"
music_timeout = 600
# Route TTS through the /with-timestamps adapter so ReelForge karaoke captions and
# avatar-duration validation share one timing authority. Set false for plain TTS.
word_timestamps = true
[chatterbox]
# OpenAI-compatible Chatterbox TTS server. The defaults target
# travisvn/chatterbox-tts-api running locally on port 4123.
base_url = "http://127.0.0.1:4123/v1"
api_key = ""
model_id = "chatterbox"
# Voice names exposed by the configured Chatterbox server.
voices = ["default-Female"]
# =============================================================================
# ReelForge Services / ReelForge 服务
# =============================================================================
# These sections power the ReelForge UGC avatar pipeline. Every secret can also
# be supplied via an environment variable (ANTHROPIC_API_KEY, HEYGEN_API_KEY,
# R2_ACCOUNT_ID / R2_ACCESS_KEY_ID / R2_SECRET_ACCESS_KEY / R2_BUCKET, and
# NEON_DATABASE_URL), which takes precedence over the values below.
[anthropic]
# Claude access is routed through litellm (set [app] llm_provider = "litellm" and
# litellm_model_name = "anthropic/claude-sonnet-5"); litellm reads ANTHROPIC_API_KEY.
api_key = ""
model = "claude-sonnet-5"
[heygen]
# HeyGen v2 audio-driven avatar API. Uses the X-Api-Key header.
# API key: https://app.heygen.com/settings?nav=API
api_key = ""
[r2]
# Cloudflare R2 object storage (S3-compatible). Create an R2 API token and a
# bucket, then set public_base_url to the bucket's public/custom-domain URL.
account_id = ""
access_key_id = ""
secret_access_key = ""
bucket = ""
public_base_url = ""
[neon]
# Neon/Postgres connection string, e.g.
# postgresql+psycopg://user:password@host/dbname?sslmode=require
database_url = ""
# Use Neon’s pooled/PgBouncer endpoint for the API and workers. Per-process
# caps prevent Celery fan-out from exhausting the database connection budget.
pool_size = 2
max_overflow = 2
pool_timeout_s = 30
pool_recycle_s = 1800
[runpod]
# RunPod Serverless endpoint powering the LatentSync talking-head tier.
# Create an endpoint and API key at https://www.runpod.io/console/serverless
# endpoint_id / api_key can also be supplied via RUNPOD_ENDPOINT_ID /
# RUNPOD_API_KEY, which take precedence over the values below.
endpoint_id = ""
api_key = ""
# Hard cap (seconds) for a single render poll loop. Defaults to 1800 (30 min).
timeout_s = 1800
[comfyui]
# comfyui-deploy instance powering the AI B-roll studio (text/image -> motion
# clip via a ComfyUI/Wan workflow on serverless GPU). Self-host comfyui-deploy
# (https://github.com/BennyKok/comfyui-deploy) or use a hosted instance.
# base_url / api_key / deployment ids can also be supplied via COMFYUI_BASE_URL /
# COMFYUI_API_KEY / COMFYUI_DEPLOYMENT_ID / COMFYUI_DEPLOYMENT_ID_I2V, which take
# precedence over the values below.
base_url = "" # e.g. https://your-comfyui-deploy.example.com
api_key = "" # comfyui-deploy API key (sent as Bearer token)
deployment_id = "" # default text->video (t2v) workflow deployment id
deployment_id_i2v = "" # optional image->video (i2v) deployment id
allowed_deployment_ids = "" # comma-separated additional reviewed preset deployments
# Hard cap (seconds) for a single render poll loop. Defaults to 1800 (30 min).
timeout_s = 1800
[rocketride]
# Both targets run this same official-editor artifact unchanged. Keep the file
# relative to pipeline_root; absolute paths and traversal outside the root are
# rejected. Leave pipeline_file empty until the visual editor artifact exists.
pipeline_root = "pipelines/rocketride"
pipeline_file = ""
# The local VS Code extension chooses a dynamic URI; copy the current URI here
# or provide ROCKETRIDE_LOCAL_URI. Do not assume a fixed localhost port.
local_uri = ""
local_api_key = ""
# Managed cloud/on-prem connection. The managed target requires a credential.
managed_uri = ""
managed_api_key = ""
ttl_seconds = 3600
connect_timeout_seconds = 60
# Optional SDK field. Keep empty unless the installed SDK/runtime supports it.
pipeline_trace_level = ""
# =============================================================================
# Billing / Credit Purchases / 计费与积分购买
# =============================================================================
# Credit packs (locked): Free = 3 (signup grant), Starter = 30, Pro = 120.
# 1 credit = 1 rendered video. Every secret below can also be supplied via an
# environment variable, which takes precedence: STRIPE_SECRET_KEY,
# STRIPE_WEBHOOK_SECRET, STRIPE_PRICE_STARTER, STRIPE_PRICE_PRO, IYZICO_API_KEY,
# IYZICO_SECRET_KEY, IYZICO_BASE_URL, CREEM_API_KEY, CREEM_WEBHOOK_SECRET,
# POLAR_ACCESS_TOKEN, POLAR_WEBHOOK_SECRET, REVENUECAT_SECRET_API_KEY,
# REVENUECAT_PRO_ENTITLEMENT_ID, REVENUECAT_API_BASE_URL.
[stripe]
# Stripe (global). Dashboard: https://dashboard.stripe.com/apikeys
# secret_key: server-side API key (sk_live_... / sk_test_...).
# webhook_secret: signing secret for the checkout webhook (whsec_...).
secret_key = ""
webhook_secret = ""
# Prebuilt Stripe Price ids for the purchasable packs (price_...).
starter_price_id = ""
pro_price_id = ""
# Hosted Checkout redirect targets.
success_url = ""
cancel_url = ""
[iyzico]
# iyzico (Turkey local cards). Dashboard: https://merchant.iyzipay.com/
# Use the sandbox base_url for testing: https://sandbox-api.iyzipay.com
api_key = ""
secret_key = ""
base_url = "https://api.iyzipay.com"
currency = "TRY"
# Callback URL iyzico redirects to after payment (exchanged server-to-server).
callback_url = ""
# Per-plan charge amounts in the local currency (decimal strings, e.g. "49.00").
starter_amount = ""
pro_amount = ""
[creem]
# Creem (creem.io) — merchant-of-record checkout. Dashboard: https://creem.io/
# api_key: server-side API key (creem_...).
# webhook_secret: signing secret for the checkout webhook.
api_key = ""
webhook_secret = ""
# Prebuilt Creem Product ids for the purchasable packs (prod_...).
starter_product_id = ""
pro_product_id = ""
# Hosted Checkout redirect targets.
success_url = ""
cancel_url = ""
[polar]
# Polar (polar.sh) — merchant-of-record checkout. Dashboard: https://polar.sh/
# access_token: organization access token (polar_oat_...).
# webhook_secret: signing secret for the checkout webhook.
access_token = ""
webhook_secret = ""
# Prebuilt Polar Price ids for the purchasable packs.
starter_price_id = ""
pro_price_id = ""
# Hosted Checkout redirect targets.
success_url = ""
cancel_url = ""
[revenuecat]
# Native-app entitlement verification. This key is SECRET and server-only.
# The Expo app uses separate public, app-specific SDK keys.
secret_api_key = ""
entitlement_id = "pro"
api_base_url = "https://api.revenuecat.com/v1"
timeout_seconds = 5
# =============================================================================
# Error Monitoring / Sentry
# =============================================================================
# Optional. Leave dsn empty to disable Sentry entirely (the app runs as a NO-OP,
# no key required to ship). dsn / environment can also be supplied via the
# SENTRY_DSN / SENTRY_ENVIRONMENT environment variables, which take precedence.
[sentry]
# Sentry project DSN, e.g. https://<key>@<org>.ingest.sentry.io/<project>.
dsn = ""
# Deployment environment tag reported to Sentry (e.g. "production", "staging").
environment = ""
# Performance-tracing sample rate in [0.0, 1.0]. 0.0 = errors only (no tracing).
traces_sample_rate = 0.0
# =============================================================================
# WebUI Preferences / WebUI 偏好
# =============================================================================
[ui]
# Hide generation logs in the WebUI.
hide_log = false
# The WebUI writes the remaining preferences automatically. Uncomment values
# below only when you want to define initial defaults manually.
# language = "zh"
# tts_server = "azure-tts-v1"
# voice_name = ""
# font_name = "MicrosoftYaHeiBold.ttc"
# font_size = 60
# text_fore_color = "#FFFFFF"
# subtitle_position = "bottom" # "top", "center", "bottom", or "custom"
# custom_position = 70.0 # Percentage from the top when using "custom"
# subtitle_background_enabled = false
# subtitle_background_color = "#000000"
# rounded_subtitle_background = false