Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
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.
37 lines
1.5 KiB
Python
37 lines
1.5 KiB
Python
"""License-class registry + paying-user exclusion rule (mirror of ``src/license``).
|
|
|
|
Extracted so the routing engine, SDKs, and burn-preview UIs agree on which model
|
|
weights are safe for paid/commercial output. Feeds ``routing/_license_class.py``.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
# commercial-safe = usable for paying customers' commercial output.
|
|
# non-commercial = weights forbid paid/commercial use (research only).
|
|
# territorial = commercial-OK but with regional / scale caveats — gate.
|
|
LICENSE_CLASSES: tuple[str, ...] = ("commercial-safe", "non-commercial", "territorial")
|
|
|
|
LICENSE_REGISTRY: dict[str, str] = {
|
|
"wan/wan-2.2": "commercial-safe",
|
|
"lightricks/ltx-video": "commercial-safe",
|
|
"black-forest-labs/flux-schnell": "commercial-safe",
|
|
"genmo/mochi-1": "commercial-safe",
|
|
"kwaivgi/kling-v1.6": "commercial-safe",
|
|
"black-forest-labs/flux-dev": "non-commercial",
|
|
"coqui/xtts-v2": "non-commercial",
|
|
"SWivid/f5-tts": "non-commercial",
|
|
"stabilityai/stable-video-diffusion": "non-commercial",
|
|
"tencent/hunyuan-video": "territorial",
|
|
"THUDM/cogvideox-5b": "territorial",
|
|
}
|
|
|
|
|
|
def license_class(model_id: str) -> str:
|
|
"""License class for a model (defaults to ``territorial`` = gate-before-use)."""
|
|
return LICENSE_REGISTRY.get(model_id, "territorial")
|
|
|
|
|
|
def can_use_for_paid(model_id: str) -> bool:
|
|
"""May a paying customer use this model for commercial output?"""
|
|
return license_class(model_id) == "commercial-safe"
|