Skip to content

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

chore: update project resources

harry0703003ffdbe18d1
diff --git a/README-en.md b/README-en.md
index 9fdaf138..006afd1b 100644
--- a/README-en.md
+++ b/README-en.md
@@ -79,6 +79,14 @@ Thanks to [Kimi](https://platform.kimi.ai?track_id=track-f6b0a640d35c41deb03b247
🎁 Sign up through the <a href="https://metaso.cn/minimax-h3/?s=MPT">exclusive MoneyPrinterTurbo link</a> to receive bonus credits and special offers.
</td>
</tr>
+ <tr>
+ <td align="center" width="120">
+ <a href="https://ofox.ai/?utm_source=github&amp;utm_medium=sponsorship&amp;utm_content=moneyprinterturbo"><img src="docs/sponsors/ofox-logo.svg" alt="OfoxAI" width="120"></a>
+ </td>
+ <td align="left">
+ Thanks to <a href="https://ofox.ai/?utm_source=github&amp;utm_medium=sponsorship&amp;utm_content=moneyprinterturbo">OfoxAI</a> for sponsoring this project! MoneyPrinterTurbo already supports Ofox multi-model text-to-video generation—just configure your API key to get started. Create video assets with Seedance, MiniMax H3, and Wan; design cover images with GPT Image 2.5 and Seedream; and refine scripts or build applications with GPT, Claude, Gemini, and DeepSeek. <strong>One key and a shared balance for text, image, and video models</strong>, with OpenAI-compatible endpoints and native Anthropic and Gemini interfaces. <strong>Pay-as-you-go billing, transparent pricing, and official model-provider channels deliver stable, high-speed, unlimited access.</strong> Explore <a href="https://ofox.ai/?utm_source=github&amp;utm_medium=sponsorship&amp;utm_content=moneyprinterturbo">OfoxAI models and pricing</a>.
+ </td>
+ </tr>
<tr>
<td align="center" width="120">
<a href="https://infistar.cc/register?aff=6T4EYXP2&amp;ref_source=link"><img src="docs/sponsors/infistar-logo.svg" alt="Infistar.ai" height="56"></a><br>
@@ -111,7 +119,7 @@ Thanks to [Kimi](https://platform.kimi.ai?track_id=track-f6b0a640d35c41deb03b247
<td align="left">
Thanks to <a href="https://www.ucloud.cn/site/active/astraflow?ytag=geo_waituo_Money">AstraFlow</a> for sponsoring this project!<br>
🎬 <strong>One platform for leading video models</strong>: access MiniMax-H3, Seedance-2.5, and more. Generate scripts and videos in one place, without separate accounts or integrations.<br>
- 🚀 <strong>200+ AI models, with new models available on release day</strong>: access DeepSeek V4.1, Kimi K3, Qwen 3.8 Max, GLM 5.3, GPT-6, Claude, and more through a single platform.<br>
+ 🚀 <strong>200+ AI models, with new models available on release day</strong>: access DeepSeek V4.1, Kimi K3, Qwen 3.8 Max, GLM 5.3, and more through a single platform.<br>
💰 <strong>Built by publicly listed UCloud, with transparent billing and cost control</strong>: track costs by API key and view detailed usage records.<br>
🎁 <strong>Exclusive offer for MoneyPrinterTurbo users</strong>: register through <a href="https://www.ucloud.cn/site/active/astraflow?ytag=geo_waituo_Money">our referral link</a> to receive new-user credits and get started right away! <a href="https://f.howxm.com/xs/u/HVFW5X8EIYV1">Claim CNY 50 in compute credits</a>.
</td>
diff --git a/README.md b/README.md
index 76e85616..56ef5aa8 100644
--- a/README.md
+++ b/README.md
@@ -79,6 +79,14 @@
🎁 通过 <a href="https://metaso.cn/minimax-h3/?s=MPT">MoneyPrinterTurbo专属链接注册</a>,即可领取赠送额度及专属优惠。
</td>
</tr>
+ <tr>
+ <td align="center" width="120">
+ <a href="https://ofox.ai/?utm_source=github&amp;utm_medium=sponsorship&amp;utm_content=moneyprinterturbo"><img src="docs/sponsors/ofox-logo.svg" alt="OfoxAI" width="120"></a>
+ </td>
+ <td align="left">
+ 感谢 <a href="https://ofox.ai/?utm_source=github&amp;utm_medium=sponsorship&amp;utm_content=moneyprinterturbo">OfoxAI</a> 赞助本项目!MoneyPrinterTurbo 已集成 Ofox 多模型文生视频,配置 API Key 即可使用。Seedance、MiniMax H3、Wan 生成视频素材,GPT Image 2.5、Seedream 制作封面配图,GPT、Claude、Gemini、DeepSeek 打磨脚本、辅助开发。<strong>一个 Key,文本、图像、视频共用余额</strong>;提供 OpenAI 兼容接口及 Anthropic、Gemini 原生接口。<strong>按量付费、价格公开、官方渠道接入,稳定高速不限量</strong>,前往 <a href="https://ofox.ai/?utm_source=github&amp;utm_medium=sponsorship&amp;utm_content=moneyprinterturbo">OfoxAI 查看模型与价格</a>。
+ </td>
+ </tr>
<tr>
<td align="center" width="120">
<a href="https://infistar.cc/register?aff=6T4EYXP2&amp;ref_source=link"><img src="docs/sponsors/infistar-logo.svg" alt="Infistar.ai 无限星河" height="56"></a><br>
@@ -111,7 +119,7 @@
<td align="left">
感谢 <a href="https://www.ucloud.cn/site/active/astraflow?ytag=geo_waituo_Money">星图 AstraFlow</a> 赞助本项目!<br>
🎬 <strong>视频模型一站式调用</strong>:聚合 MiniMax-H3,Seedance-2.5 等主流视频生成模型,文案生成 + 视频生成一个平台全搞定,无需多端注册、多处对接<br>
- 🚀 <strong>200+ 大模型一键调用,新模型当日上架</strong>:聚合 DeepSeek V4.1、Kimi K3、Qwen 3.8 Max、GLM 5.3、GPT-6、Claude 等 200+ 主流大模型,新模型上线当天即可接入<br>
+ 🚀 <strong>200+ 大模型一键调用,新模型当日上架</strong>:聚合 DeepSeek V4.1、Kimi K3、Qwen 3.8 Max、GLM 5.3 等 200+ 主流大模型,新模型上线当天即可接入<br>
💰 <strong>UCloud 上市公司出品,调用计费透明可控</strong>:按 Key 级别计费,调用明细全程可查<br>
🎁 <strong>MoneyPrinterTurbo 用户专属福利</strong>:通过<a href="https://www.ucloud.cn/site/active/astraflow?ytag=geo_waituo_Money">专属推广链接</a>注册,即享新用户赠送额度,开箱即用!<a href="https://f.howxm.com/xs/u/HVFW5X8EIYV1">点击领取 50 元算力金</a>
</td>
diff --git a/docs/sponsors/ofox-logo.svg b/docs/sponsors/ofox-logo.svg
new file mode 100644
index 00000000..27339396
--- /dev/null
+++ b/docs/sponsors/ofox-logo.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080" width="1920" height="1080"><g><svg x="230.39999999999998" y="257.5741935483871" width="1459.2" height="564.8516129032258" viewBox="0 0 62 24" preserveAspectRatio="xMidYMid meet">
+<path d="M1.46151 1.03795C1.29369 1.10277 1.15258 1.23242 1.07629 1.37741C1 1.52229 1 1.62146 1 6.22503C1 10.9201 1 10.9278 1.08011 11.0918C1.22887 11.4007 1.65604 11.538 2.00696 11.3931C2.08702 11.3587 3.04052 10.4396 4.49371 8.99787C5.79426 7.71251 6.98046 6.5416 7.12922 6.39667C7.44957 6.09156 7.5602 5.89326 7.5602 5.62622C7.55638 5.36687 7.45339 5.16094 7.23216 4.97783C6.81264 4.6346 2.01838 1.06842 1.93062 1.03407C1.81244 0.98831 1.58357 0.98831 1.46151 1.03795Z" fill="#FF5000"/>
+<path d="M16.3706 1.02266C16.3173 1.04177 15.3943 1.7321 14.0441 2.76189C13.7618 2.97548 12.9761 3.57046 12.3011 4.07774C11.626 4.58879 11.0195 5.06559 10.9585 5.13805C10.7411 5.38599 10.7144 5.74445 10.8975 6.04961C10.9776 6.18691 11.9234 7.13659 15.1501 10.3251C16.1799 11.3397 16.2028 11.3626 16.4088 11.4084C16.6643 11.4656 16.8817 11.4159 17.061 11.2672C17.2975 11.0651 17.286 11.3512 17.286 6.2212C17.286 1.69011 17.2822 1.52229 17.2136 1.385C17.1296 1.22483 17.0496 1.14471 16.8779 1.05701C16.7597 0.999777 16.4889 0.980717 16.3706 1.02266Z" fill="#FF5000"/>
+<path d="M8.95998 6.55684C8.87222 6.59501 8.15519 7.27393 7.07199 8.33802C5.23363 10.1497 2.27772 13.0408 1.81239 13.4832C1.47675 13.7997 1.36999 14.0057 1.36999 14.3032C1.37381 14.6541 1.45005 14.7762 2.00314 15.3139C2.28155 15.5847 3.62409 16.9044 4.9857 18.2508C8.59759 21.8093 8.75017 21.958 8.89511 22.0305C8.96758 22.0686 9.12775 22.1068 9.25745 22.1144C9.45579 22.1296 9.51297 22.1182 9.68461 22.0229C9.82955 21.9466 10.7907 21.0121 13.308 18.5178C15.1921 16.6489 16.7864 15.0736 16.855 15.0165C17.1526 14.7685 17.2631 14.2269 17.0915 13.876C17.0457 13.7807 16.8016 13.5099 16.5041 13.22C16.2257 12.9455 15.3637 12.1063 14.5933 11.3512C13.8191 10.5998 12.4155 9.2267 11.4772 8.2999C10.4779 7.31969 9.70749 6.59501 9.62738 6.55684C9.54732 6.51872 9.40238 6.49202 9.29557 6.49202C9.19262 6.49202 9.04009 6.51867 8.95998 6.55684Z" fill="#FF5000"/>
+<path d="M29.0631 16.576C28.4551 16.576 27.9057 16.4747 27.4151 16.272C26.9351 16.0693 26.5244 15.7813 26.1831 15.408C25.8524 15.0347 25.5964 14.5813 25.4151 14.048C25.2337 13.5147 25.1431 12.9173 25.1431 12.256C25.1431 11.5947 25.2337 10.9973 25.4151 10.464C25.5964 9.93067 25.8524 9.47733 26.1831 9.104C26.5244 8.73067 26.9351 8.44267 27.4151 8.24C27.9057 8.03733 28.4551 7.936 29.0631 7.936C29.6711 7.936 30.2151 8.03733 30.6951 8.24C31.1857 8.44267 31.5964 8.73067 31.9271 9.104C32.2684 9.47733 32.5297 9.93067 32.7111 10.464C32.8924 10.9973 32.9831 11.5947 32.9831 12.256C32.9831 12.9173 32.8924 13.5147 32.7111 14.048C32.5297 14.5813 32.2684 15.0347 31.9271 15.408C31.5964 15.7813 31.1857 16.0693 30.6951 16.272C30.2151 16.4747 29.6711 16.576 29.0631 16.576ZM29.0631 15.2C29.7031 15.2 30.2097 15.008 30.5831 14.624C30.9671 14.2293 31.1591 13.648 31.1591 12.88V11.632C31.1591 10.864 30.9671 10.288 30.5831 9.904C30.2097 9.50933 29.7031 9.312 29.0631 9.312C28.4231 9.312 27.9111 9.50933 27.5271 9.904C27.1537 10.288 26.9671 10.864 26.9671 11.632V12.88C26.9671 13.648 27.1537 14.2293 27.5271 14.624C27.9111 15.008 28.4231 15.2 29.0631 15.2Z" fill="black"/>
+<path d="M35.1048 14.976H37.7448V9.536H34.9448V8.128H37.7448V6.64C37.7448 6.02133 37.9155 5.52 38.2568 5.136C38.5981 4.74133 39.1315 4.544 39.8568 4.544H42.6408V5.952H39.4888V8.128H42.6408V9.536H39.4888V14.976H42.2728V16.384H35.1048V14.976Z" fill="black"/>
+<path d="M48.2506 16.576C47.6426 16.576 47.0932 16.4747 46.6026 16.272C46.1226 16.0693 45.7119 15.7813 45.3706 15.408C45.0399 15.0347 44.7839 14.5813 44.6026 14.048C44.4212 13.5147 44.3306 12.9173 44.3306 12.256C44.3306 11.5947 44.4212 10.9973 44.6026 10.464C44.7839 9.93067 45.0399 9.47733 45.3706 9.104C45.7119 8.73067 46.1226 8.44267 46.6026 8.24C47.0932 8.03733 47.6426 7.936 48.2506 7.936C48.8586 7.936 49.4026 8.03733 49.8826 8.24C50.3732 8.44267 50.7839 8.73067 51.1146 9.104C51.4559 9.47733 51.7172 9.93067 51.8986 10.464C52.0799 10.9973 52.1706 11.5947 52.1706 12.256C52.1706 12.9173 52.0799 13.5147 51.8986 14.048C51.7172 14.5813 51.4559 15.0347 51.1146 15.408C50.7839 15.7813 50.3732 16.0693 49.8826 16.272C49.4026 16.4747 48.8586 16.576 48.2506 16.576ZM48.2506 15.2C48.8906 15.2 49.3972 15.008 49.7706 14.624C50.1546 14.2293 50.3466 13.648 50.3466 12.88V11.632C50.3466 10.864 50.1546 10.288 49.7706 9.904C49.3972 9.50933 48.8906 9.312 48.2506 9.312C47.6106 9.312 47.0986 9.50933 46.7146 9.904C46.3412 10.288 46.1546 10.864 46.1546 11.632V12.88C46.1546 13.648 46.3412 14.2293 46.7146 14.624C47.0986 15.008 47.6106 15.2 48.2506 15.2Z" fill="black"/>
+<path d="M53.7643 16.384L56.8363 12.192L53.8923 8.128H55.9243L57.0123 9.696L57.8763 10.944H57.9723L58.8203 9.696L59.9083 8.128H61.7963L58.8363 12.128L61.9403 16.384H59.8923L58.6603 14.608L57.8123 13.392H57.7163L55.6683 16.384H53.7643Z" fill="black"/>
+</svg></g></svg>
\ No newline at end of file
diff --git a/test/services/test_webui_ofox_placement.py b/test/services/test_webui_ofox_placement.py
new file mode 100644
index 00000000..7cf43e85
--- /dev/null
+++ b/test/services/test_webui_ofox_placement.py
@@ -0,0 +1,73 @@
+"""验证 OFox 展示顺序调整,不改变已保存的生成配置或触发付费请求。"""
+
+import ast
+import json
+from pathlib import Path
+from unittest.mock import patch
+
+import pytest
+from streamlit.testing.v1 import AppTest
+
+from app.config import config
+
+
+WEBUI = Path(__file__).resolve().parents[2] / "webui" / "Main.py"
+
+
+def test_ai_video_source_order_keeps_ofox_below_metaso():
+ # 常量控制视频来源选择器,设置弹窗则通过下面的真实控件测试验证。
+ tree = ast.parse(WEBUI.read_text(encoding="utf-8"))
+ assignment = next(
+ node for node in tree.body
+ if isinstance(node, ast.Assign)
+ and any(isinstance(target, ast.Name) and target.id == "VIDEO_SOURCE_GROUPS"
+ for target in node.targets)
+ )
+ groups = ast.literal_eval(assignment.value)
+ assert groups["ai_video"] == (
+ "metaso_minimax", "ofox", "loomloom", "volcengine_seedance", "wavespeed"
+ )
+ assert groups["stock_video"] == ("pexels", "pixabay", "coverr")
+
+
[email protected]("language", sorted(file.stem for file in (WEBUI.parent / "i18n").glob("*.json")))
+def test_ofox_settings_order_and_saved_values(language):
+ # 使用虚构配置并禁止保存,打开设置不得覆盖本机凭据或改写既有 OFox 选择。
+ values = {
+ "llm_provider": "openai",
+ "ofox_api_key": "review-only-fake-key",
+ "ofox_text_to_video_model": "custom-model",
+ "ofox_base_url": "https://example.invalid/v1",
+ "ofox_provider": "volcengine",
+ }
+ expected = dict(values)
+ with (
+ patch.object(config, "app", values),
+ patch.object(config, "try_save_config", return_value=True),
+ ):
+ app = AppTest.from_file(str(WEBUI), default_timeout=60)
+ app.session_state["ui_language"] = language
+ app.run()
+ app.session_state["settings_dialog_open"] = True
+ app.run()
+ assert not app.exception
+ keys = [item.key for item in app.text_input]
+ assert keys.index("metaso_minimax_api_key_input") < keys.index("ofox_api_key_input")
+ assert keys.index("ofox_api_key_input") < keys.index("loomloom_api_token_input")
+ # 获取密钥入口也要携带同一组跟踪参数,防止切换语言后丢失推广来源。
+ api_key_input = next(item for item in app.text_input if item.key == "ofox_api_key_input")
+ assert "https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo" in api_key_input.label
+ assert any(item.value == "**OfoxAI**" for item in app.markdown)
+ # 每种语言均实际渲染,仅品牌名保留推广链接,官方上游说明使用普通文字。
+ messages = json.loads((WEBUI.parent / "i18n" / f"{language}.json").read_text(encoding="utf-8"))
+ help_text = messages["Translation"]["OFox AI Video Help"]
+ assert "http" not in help_text
+ assert any(
+ "[OfoxAI](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo)" in item.value
+ and help_text in item.value
+ for item in app.caption
+ )
+ app.run()
+ assert not app.exception
+ for key, value in expected.items():
+ assert values[key] == value
diff --git a/webui/Main.py b/webui/Main.py
index 7b05262b..579d0360 100644
--- a/webui/Main.py
+++ b/webui/Main.py
@@ -108,17 +108,17 @@ VOICE_MODE_UPLOAD = "upload"
VOICE_MODE_NONE = "none"
LOOMLOOM_MAX_POLL_FAILURES = 5
# WebUI 按素材能力分组展示视频来源,但底层仍保存原有 video_source 值。
-# AI 视频组与设置页共用同一业务顺序:合作服务商优先,并按秘塔、胜算云、
-# 火山引擎排列;其余服务随后展示。这样用户在两个入口看到的顺序一致,同时
+# AI 视频组与设置页共用同一业务顺序:合作服务商优先,并按秘塔、OFox、
+# 胜算云、火山引擎排列;其余服务随后展示。这样两个入口的顺序一致,同时
# 不改变 config.toml、历史任务和 API 请求中的字段语义,旧用户无需迁移配置。
VIDEO_SOURCE_GROUPS = {
"stock_video": ("pexels", "pixabay", "coverr"),
"ai_video": (
"metaso_minimax",
+ "ofox",
"loomloom",
"volcengine_seedance",
"wavespeed",
- "ofox",
),
"ai_image": ("openai_image",),
"local": ("local",),
@@ -128,6 +128,11 @@ VIDEO_SOURCE_GROUPS = {
# 也方便用户从 WebUI 直接完成首次配置和后续账号维护。
UPLOAD_POST_API_KEYS_URL = "https://app.upload-post.com/api-keys"
UPLOAD_POST_MANAGE_USERS_URL = "https://app.upload-post.com/manage-users"
+# 素材设置与视频来源说明共用推广入口,避免两个位置的链接参数不一致。
+OFOX_REFERRAL_URL = (
+ "https://ofox.ai/?utm_source=github"
+ "&utm_medium=sponsorship&utm_content=moneyprinterturbo"
+)
# “默认”是 WebUI 专用哨兵,不会写入 config.toml,也不会传给 FFmpeg。
# 后端在 video_codec 未配置时继续采用稳定的 libx264;单独保留该哨兵可以区分
# “跟随项目默认策略”和“用户明确固定 libx264”,便于未来安全调整默认策略。
@@ -3493,7 +3498,7 @@ def _render_settings_dialog():
st.caption(tr("AI Video Generation APIs Help"))
# 视频生成 Provider 按赞助商优先展示,赞助商内部顺序
- # 与商务约定保持一致:秘塔、胜算云、火山引擎。
+ # 与 VIDEO_SOURCE_GROUPS 一致:秘塔、OFox、胜算云、火山引擎。
st.markdown(f"**{tr('Metaso MiniMax H3')}**")
metaso_api_key = st.text_input(
tr("Metaso MiniMax API Key"),
@@ -3573,6 +3578,78 @@ def _render_settings_dialog():
"app", "metaso_minimax_resolution", metaso_resolution
)
+ st.divider()
+ st.markdown("**OfoxAI**")
+ st.caption(f"[OfoxAI]({OFOX_REFERRAL_URL}) · {tr('OFox AI Video Help')}")
+ ofox_api_key = st.text_input(
+ tr("OFox API Key"),
+ value=str(config.app.get("ofox_api_key", "") or ""),
+ type="password",
+ key="ofox_api_key_input",
+ )
+ _set_runtime_config("app", "ofox_api_key", ofox_api_key.strip())
+ ofox_model = st.text_input(
+ tr("OFox Text-to-Video Model"),
+ value=str(
+ config.app.get(
+ "ofox_text_to_video_model",
+ ofox.DEFAULT_MODEL_ID,
+ )
+ or ofox.DEFAULT_MODEL_ID
+ ),
+ key="ofox_text_to_video_model_input",
+ )
+ _set_runtime_config(
+ "app", "ofox_text_to_video_model", ofox_model.strip()
+ )
+ configured_ofox_base_url = str(
+ config.app.get("ofox_base_url", ofox.DEFAULT_BASE_URL)
+ or ofox.DEFAULT_BASE_URL
+ ).strip()
+ ofox_base_url = st.text_input(
+ tr("OFox Base URL"),
+ value=(
+ ""
+ if configured_ofox_base_url == ofox.DEFAULT_BASE_URL
+ else configured_ofox_base_url
+ ),
+ placeholder=ofox.DEFAULT_BASE_URL,
+ key="ofox_base_url_input",
+ )
+ _set_runtime_config(
+ "app",
+ "ofox_base_url",
+ ofox_base_url.strip() or ofox.DEFAULT_BASE_URL,
+ )
+ ofox_vendor_options = [
+ (tr("OFox Vendor BytePlus"), "byteplus"),
+ (tr("OFox Vendor Volcengine"), "volcengine"),
+ (tr("OFox Vendor Auto"), ""),
+ ]
+ configured_ofox_vendor = str(
+ config.app.get("ofox_provider", ofox.DEFAULT_PROVIDER_TYPE)
+ or ""
+ ).strip()
+ if configured_ofox_vendor not in {
+ value for _, value in ofox_vendor_options
+ }:
+ # 用户在 config.toml 手工钉定了其它厂商名时保留该选择,
+ # 避免打开设置页就被下拉框覆盖回默认值。
+ ofox_vendor_options.append(
+ (configured_ofox_vendor, configured_ofox_vendor)
+ )
+ selected_ofox_vendor = stable_selectbox(
+ tr("OFox Upstream Vendor"),
+ options=[value for _, value in ofox_vendor_options],
+ default_value=configured_ofox_vendor,
+ key="ofox_provider_select",
+ format_func=lambda value: dict(
+ (v, label) for label, v in ofox_vendor_options
+ )[value],
+ help=tr("OFox Upstream Vendor Help"),
+ )
+ _set_runtime_config("app", "ofox_provider", selected_ofox_vendor)
+
st.divider()
st.markdown(f"**{tr('Shengsuan Cloud AI Video')}**")
app_config_snapshot = config.snapshot_config_with_pending(config.app)
@@ -3690,76 +3767,6 @@ def _render_settings_dialog():
)
_save_material_api_keys("wavespeed_api_keys", wavespeed_api_key)
- st.divider()
- st.markdown("**OFox**")
- ofox_api_key = st.text_input(
- tr("OFox API Key"),
- value=str(config.app.get("ofox_api_key", "") or ""),
- type="password",
- key="ofox_api_key_input",
- )
- _set_runtime_config("app", "ofox_api_key", ofox_api_key.strip())
- ofox_model = st.text_input(
- tr("OFox Text-to-Video Model"),
- value=str(
- config.app.get(
- "ofox_text_to_video_model",
- ofox.DEFAULT_MODEL_ID,
- )
- or ofox.DEFAULT_MODEL_ID
- ),
- key="ofox_text_to_video_model_input",
- )
- _set_runtime_config(
- "app", "ofox_text_to_video_model", ofox_model.strip()
- )
- configured_ofox_base_url = str(
- config.app.get("ofox_base_url", ofox.DEFAULT_BASE_URL)
- or ofox.DEFAULT_BASE_URL
- ).strip()
- ofox_base_url = st.text_input(
- tr("OFox Base URL"),
- value=(
- ""
- if configured_ofox_base_url == ofox.DEFAULT_BASE_URL
- else configured_ofox_base_url
- ),
- placeholder=ofox.DEFAULT_BASE_URL,
- key="ofox_base_url_input",
- )
- _set_runtime_config(
- "app",
- "ofox_base_url",
- ofox_base_url.strip() or ofox.DEFAULT_BASE_URL,
- )
- ofox_vendor_options = [
- (tr("OFox Vendor BytePlus"), "byteplus"),
- (tr("OFox Vendor Volcengine"), "volcengine"),
- (tr("OFox Vendor Auto"), ""),
- ]
- configured_ofox_vendor = str(
- config.app.get("ofox_provider", ofox.DEFAULT_PROVIDER_TYPE)
- or ""
- ).strip()
- if configured_ofox_vendor not in {
- value for _, value in ofox_vendor_options
- }:
- # 用户在 config.toml 手工钉定了其它厂商名时保留该选择,
- # 避免打开设置页就被下拉框覆盖回默认值。
- ofox_vendor_options.append(
- (configured_ofox_vendor, configured_ofox_vendor)
- )
- selected_ofox_vendor = stable_selectbox(
- tr("OFox Upstream Vendor"),
- options=[value for _, value in ofox_vendor_options],
- default_value=configured_ofox_vendor,
- key="ofox_provider_select",
- format_func=lambda value: dict(
- (v, label) for label, v in ofox_vendor_options
- )[value],
- help=tr("OFox Upstream Vendor Help"),
- )
- _set_runtime_config("app", "ofox_provider", selected_ofox_vendor)
with st.container(border=True):
st.markdown(f"#### {tr('AI Image Generation APIs')}")
@@ -4977,7 +4984,7 @@ def _render_video_settings(panel, params):
if params.video_source == "volcengine_seedance":
st.caption(tr("Volcano Engine Seedance Help"))
if params.video_source == "ofox":
- st.caption(tr("OFox AI Video Help"))
+ st.caption(f"[OfoxAI]({OFOX_REFERRAL_URL}) · {tr('OFox AI Video Help')}")
if params.video_source == "metaso_minimax":
st.caption(tr("Metaso MiniMax H3 Help"))
if params.video_source == "local":
diff --git a/webui/i18n/az.json b/webui/i18n/az.json
index 46b15265..c7eb8090 100644
--- a/webui/i18n/az.json
+++ b/webui/i18n/az.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Avtomatik paylaşımı aktivləşdirməzdən əvvəl:\n1. [API açarları]({api_keys_url}) səhifəsində API açarı yaradılmalıdır.\n2. [İstifadəçilərin idarə edilməsi]({manage_users_url}) səhifəsində paylaşım istifadəçisi yaradılmalı və ya seçilməli, sonra hədəf platformalar qoşulmalıdır.\n\nAşağıda Upload-Post hesabının e-poçtu deyil, həmin paylaşım istifadəçisinin **istifadəçi adı** daxil edilməlidir.",
"YouTube Privacy Status": "YouTube məxfilik vəziyyəti",
"OFox AI Video": "OFox süni intellekt videosu",
- "OFox AI Video Help": "OFox çoxmodelli video API-si vasitəsilə tamamilə yeni kliplər yaradır (Seedance, Wan və digər modellər bir açarla). Göndərilən hər klip ödənişli tapşırıqdır.",
- "OFox API Key": "OFox API açarı ([API açarını al](https://ofox.ai))",
+ "OFox AI Video Help": "Bir açarla müxtəlif modellərlə video yaradın, rəsmi model təminatçılarına birbaşa qoşulun. İstifadəyə görə ödəniş — sabit, sürətli və limitsiz.",
+ "OFox API Key": "OFox API açarı ([API açarını al](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "OFox mətndən video yaratma modeli",
"OFox Base URL": "OFox əsas URL-i",
"Please Enter the OFox API Key": "**OFox API açarı** daxil edilməlidir",
diff --git a/webui/i18n/de.json b/webui/i18n/de.json
index c05cfc9c..538cd1d4 100644
--- a/webui/i18n/de.json
+++ b/webui/i18n/de.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Bevor Sie die automatische Veröffentlichung aktivieren:\n1. Erstellen Sie unter [API Keys]({api_keys_url}) einen API-Schlüssel.\n2. Erstellen oder wählen Sie unter [Manage Users]({manage_users_url}) einen Veröffentlichungsbenutzer und verbinden Sie die Zielplattformen.\n\nGeben Sie unten dessen **Benutzernamen** ein, nicht die E-Mail-Adresse Ihres Upload-Post-Kontos.",
"YouTube Privacy Status": "YouTube-Datenschutzstatus",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Erzeugen Sie neue Clips über die offizielle OFox API. Jeder eingereichte Clip ist ein kostenpflichtiger OFox-Auftrag.",
- "OFox API Key": "OFox API-Schlüssel ([API-Schlüssel abrufen](https://ofox.ai))",
+ "OFox AI Video Help": "Ein API-Key für Videokreation mit mehreren Modellen und direktem Zugang zu offiziellen Modellanbietern. Nutzungsbasierte Abrechnung – stabil, schnell und unbegrenzt.",
+ "OFox API Key": "OFox API-Schlüssel ([API-Schlüssel abrufen](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "OFox Text-zu-Video-Modell",
"OFox Base URL": "OFox Base-URL",
"Please Enter the OFox API Key": "Bitte geben Sie den **OFox API-Schlüssel** ein",
diff --git a/webui/i18n/en.json b/webui/i18n/en.json
index 229bf921..bbaff226 100644
--- a/webui/i18n/en.json
+++ b/webui/i18n/en.json
@@ -500,8 +500,8 @@
"Upload-Post Setup Guide": "Before enabling auto-publish:\n1. Create an API key on [API Keys]({api_keys_url}).\n2. Create or select a publishing user on [Manage Users]({manage_users_url}), then connect the target platforms.\n\nEnter that publishing user's **Username** below, not your Upload-Post account email.",
"YouTube Privacy Status": "YouTube Privacy Status",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Generate brand-new clips through the OFox multi-model video API (Seedance, Wan, and more behind one key). Each submitted clip is a paid task.",
- "OFox API Key": "OFox API Key ([Get API Key](https://ofox.ai))",
+ "OFox AI Video Help": "One key for multi-model video creation, with direct access to official model providers. Pay as you go—stable, fast, and unlimited.",
+ "OFox API Key": "OFox API Key ([Get API Key](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "OFox Text-to-Video Model",
"OFox Base URL": "OFox Base URL",
"Please Enter the OFox API Key": "Please enter the **OFox API Key**",
diff --git a/webui/i18n/es.json b/webui/i18n/es.json
index b8364a5e..97a0c152 100644
--- a/webui/i18n/es.json
+++ b/webui/i18n/es.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Antes de activar la publicación automática:\n1. Crea una clave API en [API Keys]({api_keys_url}).\n2. Crea o selecciona un usuario de publicación en [Manage Users]({manage_users_url}) y conecta las plataformas de destino.\n\nIntroduce abajo el **nombre de usuario** de publicación, no el correo de tu cuenta de Upload-Post.",
"YouTube Privacy Status": "Estado de privacidad de YouTube",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Genera clips nuevos mediante la API oficial OFox. Cada clip enviado crea una tarea de pago en OFox.",
- "OFox API Key": "Clave API de OFox ([Obtener clave API](https://ofox.ai))",
+ "OFox AI Video Help": "Una clave para crear vídeos con múltiples modelos y acceso directo a los proveedores oficiales. Pago por uso: estable, rápido y sin límites.",
+ "OFox API Key": "Clave API de OFox ([Obtener clave API](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "Modelo de texto a vídeo de OFox",
"OFox Base URL": "URL base de OFox",
"Please Enter the OFox API Key": "Introduce la **clave API de OFox**",
diff --git a/webui/i18n/fr.json b/webui/i18n/fr.json
index 4439109f..5309608e 100644
--- a/webui/i18n/fr.json
+++ b/webui/i18n/fr.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Avant d'activer la publication automatique :\n1. Créez une clé API dans [API Keys]({api_keys_url}).\n2. Créez ou sélectionnez un utilisateur de publication dans [Manage Users]({manage_users_url}), puis connectez les plateformes cibles.\n\nSaisissez ci-dessous son **nom d'utilisateur**, et non l'adresse e-mail de votre compte Upload-Post.",
"YouTube Privacy Status": "Statut de confidentialité YouTube",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Générez de nouveaux clips avec l’API officielle OFox. Chaque clip soumis crée une tâche OFox payante.",
- "OFox API Key": "Clé API OFox ([Obtenir une clé API](https://ofox.ai))",
+ "OFox AI Video Help": "Une clé pour créer des vidéos avec plusieurs modèles et un accès direct aux fournisseurs officiels. Paiement à l’usage : stable, rapide et sans limites.",
+ "OFox API Key": "Clé API OFox ([Obtenir une clé API](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "Modèle texte-vidéo OFox",
"OFox Base URL": "URL de base OFox",
"Please Enter the OFox API Key": "Saisissez la **clé API OFox**",
diff --git a/webui/i18n/id.json b/webui/i18n/id.json
index 10187d5a..c4156d72 100644
--- a/webui/i18n/id.json
+++ b/webui/i18n/id.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Sebelum mengaktifkan publikasi otomatis:\n1. Buat kunci API di [API Keys]({api_keys_url}).\n2. Buat atau pilih pengguna penerbitan di [Manage Users]({manage_users_url}), lalu hubungkan platform tujuan.\n\nMasukkan **Username** pengguna penerbitan tersebut di bawah, bukan email akun Upload-Post Anda.",
"YouTube Privacy Status": "Status Privasi YouTube",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Buat klip baru melalui API resmi OFox. Setiap klip yang dikirim merupakan tugas OFox berbayar.",
- "OFox API Key": "Kunci API OFox ([Dapatkan Kunci API](https://ofox.ai))",
+ "OFox AI Video Help": "Satu key untuk membuat video dengan berbagai model melalui akses langsung ke penyedia model resmi. Bayar sesuai pemakaian—stabil, cepat, dan tanpa batas.",
+ "OFox API Key": "Kunci API OFox ([Dapatkan Kunci API](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "Model teks-ke-video OFox",
"OFox Base URL": "URL Dasar OFox",
"Please Enter the OFox API Key": "Masukkan **Kunci API OFox**",
diff --git a/webui/i18n/it.json b/webui/i18n/it.json
index 3bece7cb..b12e7313 100644
--- a/webui/i18n/it.json
+++ b/webui/i18n/it.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Prima di abilitare la pubblicazione automatica:\n1. Crea una chiave API in [API Keys]({api_keys_url}).\n2. Crea o seleziona un utente di pubblicazione in [Manage Users]({manage_users_url}), quindi collega le piattaforme di destinazione.\n\nInserisci qui sotto il suo **nome utente**, non l'email del tuo account Upload-Post.",
"YouTube Privacy Status": "Stato di privacy di YouTube",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Genera nuovi clip tramite l’API ufficiale OFox. Ogni clip inviato crea un’attività OFox a pagamento.",
- "OFox API Key": "Chiave API OFox ([Ottieni chiave API](https://ofox.ai))",
+ "OFox AI Video Help": "Una chiave per creare video con più modelli e accesso diretto ai fornitori ufficiali. Pagamento a consumo: stabile, veloce e senza limiti.",
+ "OFox API Key": "Chiave API OFox ([Ottieni chiave API](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "Modello testo-video OFox",
"OFox Base URL": "URL di base OFox",
"Please Enter the OFox API Key": "Inserisci la **chiave API OFox**",
diff --git a/webui/i18n/ko.json b/webui/i18n/ko.json
index 0b56e1ed..84663834 100644
--- a/webui/i18n/ko.json
+++ b/webui/i18n/ko.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "자동 게시를 활성화하기 전에:\n1. [API 키]({api_keys_url})에서 API 키를 생성하세요.\n2. [사용자 관리]({manage_users_url})에서 게시 사용자를 생성하거나 선택한 다음 대상 플랫폼을 연결하세요.\n\n아래에 Upload-Post 계정 이메일이 아닌 해당 게시 사용자의 **사용자 이름**을 입력하세요.",
"YouTube Privacy Status": "YouTube 공개 상태",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "공식 OFox API로 새로운 클립을 생성합니다. 제출하는 각 클립은 유료 OFox 작업입니다.",
- "OFox API Key": "OFox API 키 ([API 키 발급](https://ofox.ai))",
+ "OFox AI Video Help": "하나의 Key로 다양한 모델을 활용한 영상 제작, 공식 모델 제공업체 직접 연결. 사용량 기반 과금, 안정적이고 빠르게, 제한 없이.",
+ "OFox API Key": "OFox API 키 ([API 키 발급](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "OFox 텍스트-비디오 모델",
"OFox Base URL": "OFox 기본 URL",
"Please Enter the OFox API Key": "**OFox API 키**를 입력하세요",
diff --git a/webui/i18n/pt.json b/webui/i18n/pt.json
index 1168ae97..d117406a 100644
--- a/webui/i18n/pt.json
+++ b/webui/i18n/pt.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Antes de ativar a publicação automática:\n1. Crie uma chave API em [API Keys]({api_keys_url}).\n2. Crie ou selecione um usuário de publicação em [Manage Users]({manage_users_url}) e conecte as plataformas de destino.\n\nInforme abaixo o **nome de usuário** de publicação, não o e-mail da sua conta Upload-Post.",
"YouTube Privacy Status": "Status de Privacidade do YouTube",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Gere novos clipes pela API oficial OFox. Cada clipe enviado cria uma tarefa OFox paga.",
- "OFox API Key": "Chave de API do OFox ([Obter chave de API](https://ofox.ai))",
+ "OFox AI Video Help": "Uma chave para criar vídeos com vários modelos e acesso direto aos provedores oficiais. Pague conforme o uso: estável, rápido e sem limites.",
+ "OFox API Key": "Chave de API do OFox ([Obter chave de API](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "Modelo de texto para vídeo OFox",
"OFox Base URL": "URL base do OFox",
"Please Enter the OFox API Key": "Insira a **chave de API do OFox**",
diff --git a/webui/i18n/ru.json b/webui/i18n/ru.json
index 1f40f3d0..741048bb 100644
--- a/webui/i18n/ru.json
+++ b/webui/i18n/ru.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Перед включением автопубликации:\n1. Создайте API-ключ на странице [API Keys]({api_keys_url}).\n2. Создайте или выберите пользователя публикации на странице [Manage Users]({manage_users_url}) и подключите целевые платформы.\n\nНиже введите его **имя пользователя**, а не адрес электронной почты аккаунта Upload-Post.",
"YouTube Privacy Status": "Статус конфиденциальности YouTube",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Создавайте новые клипы через официальный API OFox. Каждый отправленный клип является платной задачей OFox.",
- "OFox API Key": "API-ключ OFox ([Получить API-ключ](https://ofox.ai))",
+ "OFox AI Video Help": "Один ключ для создания видео с разными моделями и прямым доступом к официальным поставщикам моделей. Оплата по факту использования — стабильно, быстро и без ограничений.",
+ "OFox API Key": "API-ключ OFox ([Получить API-ключ](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "Модель текст-в-видео OFox",
"OFox Base URL": "Базовый URL OFox",
"Please Enter the OFox API Key": "Введите **API-ключ OFox**",
diff --git a/webui/i18n/tr.json b/webui/i18n/tr.json
index c506f8e8..2a8586a5 100644
--- a/webui/i18n/tr.json
+++ b/webui/i18n/tr.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Otomatik yayınlamayı etkinleştirmeden önce:\n1. [API Keys]({api_keys_url}) sayfasında bir API anahtarı oluşturun.\n2. [Manage Users]({manage_users_url}) sayfasında bir yayın kullanıcısı oluşturun veya seçin ve hedef platformları bağlayın.\n\nAşağıya Upload-Post hesap e-postanızı değil, bu yayın kullanıcısının **kullanıcı adını** girin.",
"YouTube Privacy Status": "YouTube Gizlilik Durumu",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Resmî OFox API’siyle yeni klipler oluşturun. Gönderilen her klip ücretli bir OFox görevidir.",
- "OFox API Key": "OFox API Anahtarı ([API Anahtarı Al](https://ofox.ai))",
+ "OFox AI Video Help": "Tek anahtarla çok modelli video üretimi ve resmî model sağlayıcılarına doğrudan erişim. Kullandıkça öde—kararlı, hızlı ve sınırsız.",
+ "OFox API Key": "OFox API Anahtarı ([API Anahtarı Al](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "OFox metinden videoya modeli",
"OFox Base URL": "OFox Temel URL’si",
"Please Enter the OFox API Key": "Lütfen **OFox API Anahtarını** girin",
diff --git a/webui/i18n/vi.json b/webui/i18n/vi.json
index 0be99c10..6bf49424 100644
--- a/webui/i18n/vi.json
+++ b/webui/i18n/vi.json
@@ -399,8 +399,8 @@
"Upload-Post Setup Guide": "Trước khi bật tự động xuất bản:\n1. Tạo khóa API tại [API Keys]({api_keys_url}).\n2. Tạo hoặc chọn người dùng xuất bản tại [Manage Users]({manage_users_url}), sau đó kết nối các nền tảng đích.\n\nNhập **tên người dùng** xuất bản đó bên dưới, không phải email tài khoản Upload-Post.",
"YouTube Privacy Status": "Trạng thái quyền riêng tư của YouTube",
"OFox AI Video": "OFox AI Video",
- "OFox AI Video Help": "Tạo clip mới qua API OFox chính thức. Mỗi clip được gửi là một tác vụ OFox có tính phí.",
- "OFox API Key": "Khóa API OFox ([Lấy khóa API](https://ofox.ai))",
+ "OFox AI Video Help": "Một Key để sáng tạo video với nhiều mô hình, kết nối trực tiếp với nhà cung cấp mô hình chính thức. Trả phí theo mức sử dụng—ổn định, tốc độ cao, không giới hạn.",
+ "OFox API Key": "Khóa API OFox ([Lấy khóa API](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "Mô hình chuyển văn bản thành video OFox",
"OFox Base URL": "URL cơ sở OFox",
"Please Enter the OFox API Key": "Vui lòng nhập **Khóa API OFox**",
diff --git a/webui/i18n/zh.json b/webui/i18n/zh.json
index 0c110832..562ee68b 100644
--- a/webui/i18n/zh.json
+++ b/webui/i18n/zh.json
@@ -500,8 +500,8 @@
"Upload-Post Setup Guide": "启用自动发布前,请先:\n1. 在 [API Keys]({api_keys_url}) 页面创建 API Key。\n2. 在 [Manage Users]({manage_users_url}) 页面创建或选择发布用户,并连接目标平台。\n\n下方请填写该发布用户的 **Username**,而不是 Upload-Post 登录邮箱。",
"YouTube Privacy Status": "YouTube 隐私状态",
"OFox AI Video": "OFox AI 视频",
- "OFox AI Video Help": "通过 OFox 多模型视频 API(一个 Key 可调 Seedance、Wan 等文生视频模型)按脚本关键词生成全新视频素材。每段素材都会创建一个付费任务。",
- "OFox API Key": "OFox API Key([获取 API Key](https://ofox.ai))",
+ "OFox AI Video Help": "一个 Key,畅用多模型视频创作,官方渠道接入,按需付费,稳定高速不限量。",
+ "OFox API Key": "OFox API Key([获取 API Key](https://ofox.ai/?utm_source=github&utm_medium=sponsorship&utm_content=moneyprinterturbo))",
"OFox Text-to-Video Model": "OFox 文生视频模型",
"OFox Base URL": "OFox Base URL",
"Please Enter the OFox API Key": "请输入 **OFox API Key**",