aivideowatch 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.4
2
+ Name: aivideowatch
3
+ Version: 1.0.0
4
+ Summary: Zero-dependency Python SDK & CLI for live AI video generation pricing, cost-per-usable-clip budgets, and cross-platform model arbitrage from AIVideoWatch.com (CC BY 4.0).
5
+ Author: AIVideoWatch Research
6
+ License: MIT
7
+ Project-URL: Homepage, https://aivideowatch.com
8
+ Project-URL: Documentation, https://aivideowatch.com/api-docs
9
+ Project-URL: Repository, https://github.com/watchingyourback1/ai-video-pricing-index
10
+ Project-URL: Dataset, https://aivideowatch.com/datasets
11
+ Keywords: ai-video,pricing,seedance,kling,wan,veo,magi-2,cost-per-clip,benchmark,open-data
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+
15
+ # aivideowatch
16
+
17
+ [![Seedance 2.5 Pricing](https://aivideowatch.com/api/v1/badge/model/seedance-2-5.svg)](https://aivideowatch.com/models/seedance-2-5)
18
+ [![Kling 4.0 Pricing](https://aivideowatch.com/api/v1/badge/model/kling-4-0.svg)](https://aivideowatch.com/models/kling-4-0)
19
+ [![Wan 3.0 Pricing](https://aivideowatch.com/api/v1/badge/model/wan-3-0.svg)](https://aivideowatch.com/models/wan-3-0)
20
+
21
+ Zero-dependency Python SDK & CLI for live AI video generation pricing, usable cost-per-clip budgets, and cross-platform model arbitrage across **53 platforms** and **31 canonical models** from **[AIVideoWatch.com](https://aivideowatch.com)** (`CC BY 4.0`, zero authentication).
22
+
23
+ ## Quick Start
24
+
25
+ ```bash
26
+ pip install aivideowatch
27
+
28
+ # CLI
29
+ aivideowatch
30
+ aivideowatch cheapest seedance-2-5
31
+ aivideowatch clip kling-4-0 30 3
32
+ ```
33
+
34
+ ```python
35
+ import aivideowatch
36
+
37
+ print(aivideowatch.cheapest("seedance-2-5"))
38
+ print(aivideowatch.calculate_clip_cost("kling-4-0", duration_sec=10, tries=2.5))
39
+ ```
40
+
41
+ ## Links & Open Data
42
+ - **Interactive Cost-Per-Clip Calculator:** https://aivideowatch.com/cost-per-clip-calculator
43
+ - **Direct API Pricing Index:** https://aivideowatch.com/api-pricing
44
+ - **Open Datasets & OpenAPI 3.1:** https://aivideowatch.com/datasets
45
+ - **Hugging Face Dataset:** https://huggingface.co/datasets/aivideowatch/ai-video-pricing-index-2026
46
+ - **CERN Zenodo DOI:** https://doi.org/10.5281/zenodo.24715193
@@ -0,0 +1,32 @@
1
+ # aivideowatch
2
+
3
+ [![Seedance 2.5 Pricing](https://aivideowatch.com/api/v1/badge/model/seedance-2-5.svg)](https://aivideowatch.com/models/seedance-2-5)
4
+ [![Kling 4.0 Pricing](https://aivideowatch.com/api/v1/badge/model/kling-4-0.svg)](https://aivideowatch.com/models/kling-4-0)
5
+ [![Wan 3.0 Pricing](https://aivideowatch.com/api/v1/badge/model/wan-3-0.svg)](https://aivideowatch.com/models/wan-3-0)
6
+
7
+ Zero-dependency Python SDK & CLI for live AI video generation pricing, usable cost-per-clip budgets, and cross-platform model arbitrage across **53 platforms** and **31 canonical models** from **[AIVideoWatch.com](https://aivideowatch.com)** (`CC BY 4.0`, zero authentication).
8
+
9
+ ## Quick Start
10
+
11
+ ```bash
12
+ pip install aivideowatch
13
+
14
+ # CLI
15
+ aivideowatch
16
+ aivideowatch cheapest seedance-2-5
17
+ aivideowatch clip kling-4-0 30 3
18
+ ```
19
+
20
+ ```python
21
+ import aivideowatch
22
+
23
+ print(aivideowatch.cheapest("seedance-2-5"))
24
+ print(aivideowatch.calculate_clip_cost("kling-4-0", duration_sec=10, tries=2.5))
25
+ ```
26
+
27
+ ## Links & Open Data
28
+ - **Interactive Cost-Per-Clip Calculator:** https://aivideowatch.com/cost-per-clip-calculator
29
+ - **Direct API Pricing Index:** https://aivideowatch.com/api-pricing
30
+ - **Open Datasets & OpenAPI 3.1:** https://aivideowatch.com/datasets
31
+ - **Hugging Face Dataset:** https://huggingface.co/datasets/aivideowatch/ai-video-pricing-index-2026
32
+ - **CERN Zenodo DOI:** https://doi.org/10.5281/zenodo.24715193
@@ -0,0 +1,84 @@
1
+ """Zero-dependency Python client for live AIVideoWatch.com AI video pricing (CC BY 4.0)."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import json
6
+ import re
7
+ import urllib.request
8
+ from typing import Any, Dict, Optional
9
+
10
+ BASE_URL = "https://aivideowatch.com/api/v1"
11
+ USER_AGENT = "aivideowatch-pypi/1.0.0 (+https://aivideowatch.com)"
12
+
13
+
14
+ def _fetch_json(endpoint: str) -> Dict[str, Any]:
15
+ req = urllib.request.Request(
16
+ f"{BASE_URL}/{endpoint}", headers={"User-Agent": USER_AGENT}
17
+ )
18
+ with urllib.request.urlopen(req, timeout=20) as resp:
19
+ return json.loads(resp.read().decode("utf-8"))
20
+
21
+
22
+ def get_pricing() -> Dict[str, Any]:
23
+ """Return full live platform pricing catalog (/api/v1/pricing.json)."""
24
+ return _fetch_json("pricing.json")
25
+
26
+
27
+ def get_models() -> Dict[str, Any]:
28
+ """Return canonical model arbitrage catalog (/api/v1/models.json)."""
29
+ return _fetch_json("models.json")
30
+
31
+
32
+ def get_cost_per_clip() -> Dict[str, Any]:
33
+ """Return live usable cost-per-clip benchmark (/api/v1/cost-per-clip.json)."""
34
+ return _fetch_json("cost-per-clip.json")
35
+
36
+
37
+ def cheapest(model_query: str) -> Optional[Dict[str, Any]]:
38
+ """Find cheapest verified subscription & direct API host for a canonical video model."""
39
+ data = get_cost_per_clip()
40
+ q = model_query.strip().lower()
41
+ norm = re.sub(r"[^a-z0-9]+", "-", q).strip("-")
42
+ models = data.get("models", [])
43
+ match = (
44
+ next((m for m in models if m["slug"] in (q, norm)), None)
45
+ or next((m for m in models if m["name"].lower() == q), None)
46
+ or next(
47
+ (m for m in models if norm in m["slug"] or q in m["name"].lower()),
48
+ None,
49
+ )
50
+ )
51
+ if not match:
52
+ return None
53
+ return {
54
+ "verified_at": data.get("meta", {}).get("verifiedAt"),
55
+ "slug": match["slug"],
56
+ "name": match["name"],
57
+ "url": f"https://aivideowatch.com/models/{match['slug']}",
58
+ "hosts": match.get("platformCount") or match.get("hostCount"),
59
+ "spread_multiple": match.get("arbitrageSpreadMultiple"),
60
+ "cheapest_subscription": match.get("cheapestRetail"),
61
+ "cheapest_api": match.get("cheapestApi"),
62
+ }
63
+
64
+
65
+ def calculate_clip_cost(
66
+ model_query: str, duration_sec: float = 10.0, tries: float = 3.0
67
+ ) -> Optional[Dict[str, Any]]:
68
+ """Compute raw 1x and retry-adjusted usable clip cost for a canonical model."""
69
+ info = cheapest(model_query)
70
+ if not info:
71
+ return None
72
+ sub_pps = (info["cheapest_subscription"] or {}).get("usdPerSec")
73
+ api_pps = (info["cheapest_api"] or {}).get("usdPerSec")
74
+ candidates = [x for x in (sub_pps, api_pps) if x is not None]
75
+ best_pps = min(candidates) if candidates else None
76
+ return {
77
+ **info,
78
+ "duration_sec": duration_sec,
79
+ "tries": tries,
80
+ "raw_usd": round(best_pps * duration_sec, 2) if best_pps is not None else None,
81
+ "usable_2_5x_usd": round(best_pps * duration_sec * 2.5, 2) if best_pps is not None else None,
82
+ "usable_3x_usd": round(best_pps * duration_sec * 3.0, 2) if best_pps is not None else None,
83
+ "usable_custom_usd": round(best_pps * duration_sec * tries, 2) if best_pps is not None else None,
84
+ }
@@ -0,0 +1,52 @@
1
+ from __future__ import annotations
2
+
3
+ import sys
4
+ from . import calculate_clip_cost, cheapest, get_cost_per_clip
5
+
6
+
7
+ def main() -> None:
8
+ args = sys.argv[1:]
9
+ cmd = args[0] if args else "top"
10
+
11
+ if cmd == "cheapest" and len(args) >= 2:
12
+ info = cheapest(args[1])
13
+ if not info:
14
+ print(f"Model '{args[1]}' not found.", file=sys.stderr)
15
+ sys.exit(1)
16
+ print(f"{info['name']} ({info['hosts']} hosts, {info['spread_multiple']}x spread)")
17
+ if info["cheapest_subscription"]:
18
+ s = info["cheapest_subscription"]
19
+ print(f" Cheapest Sub: {s['toolName']} — ${s['usdPerSec']:.3f}/s")
20
+ if info["cheapest_api"]:
21
+ a = info["cheapest_api"]
22
+ print(f" Cheapest API: {a['toolName']} — ${a['usdPerSec']:.3f}/s")
23
+ print(f" Full table: {info['url']}")
24
+ return
25
+
26
+ if cmd == "clip" and len(args) >= 2:
27
+ sec = float(args[2]) if len(args) >= 3 else 10.0
28
+ tries = float(args[3]) if len(args) >= 4 else 3.0
29
+ res = calculate_clip_cost(args[1], duration_sec=sec, tries=tries)
30
+ if not res:
31
+ print(f"Model '{args[1]}' not found.", file=sys.stderr)
32
+ sys.exit(1)
33
+ print(f"{res['name']} — {sec:g}s clip ({tries:g}x tries):")
34
+ print(f" Raw (1x): ${res['raw_usd']:.2f}")
35
+ print(f" Usable 2.5x: ${res['usable_2_5x_usd']:.2f}")
36
+ print(f" Usable {tries:g}x: ${res['usable_custom_usd']:.2f}")
37
+ return
38
+
39
+ data = get_cost_per_clip()
40
+ flagships = ["seedance-2-5", "kling-4-0", "wan-3-0", "veo-3-1", "magi-2", "runway-gen-4-5"]
41
+ print(f"AIVideoWatch Live AI Video Pricing ({str(data.get('meta', {}).get('verifiedAt', ''))[:10]}) — https://aivideowatch.com\n")
42
+ for slug in flagships:
43
+ m = next((x for x in data.get("models", []) if x["slug"] == slug), None)
44
+ if not m:
45
+ continue
46
+ sub = f"{m['cheapestRetail']['toolName']} (${m['cheapestRetail']['usdPerSec']:.3f}/s)" if m.get("cheapestRetail") else "—"
47
+ api = f"{m['cheapestApi']['toolName']} (${m['cheapestApi']['usdPerSec']:.3f}/s)" if m.get("cheapestApi") else "—"
48
+ print(f"{m['name']:<16} | Sub: {sub:<28} | API: {api:<28} | Spread: {m.get('arbitrageSpreadMultiple', '—')}x")
49
+
50
+
51
+ if __name__ == "__main__":
52
+ main()
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.4
2
+ Name: aivideowatch
3
+ Version: 1.0.0
4
+ Summary: Zero-dependency Python SDK & CLI for live AI video generation pricing, cost-per-usable-clip budgets, and cross-platform model arbitrage from AIVideoWatch.com (CC BY 4.0).
5
+ Author: AIVideoWatch Research
6
+ License: MIT
7
+ Project-URL: Homepage, https://aivideowatch.com
8
+ Project-URL: Documentation, https://aivideowatch.com/api-docs
9
+ Project-URL: Repository, https://github.com/watchingyourback1/ai-video-pricing-index
10
+ Project-URL: Dataset, https://aivideowatch.com/datasets
11
+ Keywords: ai-video,pricing,seedance,kling,wan,veo,magi-2,cost-per-clip,benchmark,open-data
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+
15
+ # aivideowatch
16
+
17
+ [![Seedance 2.5 Pricing](https://aivideowatch.com/api/v1/badge/model/seedance-2-5.svg)](https://aivideowatch.com/models/seedance-2-5)
18
+ [![Kling 4.0 Pricing](https://aivideowatch.com/api/v1/badge/model/kling-4-0.svg)](https://aivideowatch.com/models/kling-4-0)
19
+ [![Wan 3.0 Pricing](https://aivideowatch.com/api/v1/badge/model/wan-3-0.svg)](https://aivideowatch.com/models/wan-3-0)
20
+
21
+ Zero-dependency Python SDK & CLI for live AI video generation pricing, usable cost-per-clip budgets, and cross-platform model arbitrage across **53 platforms** and **31 canonical models** from **[AIVideoWatch.com](https://aivideowatch.com)** (`CC BY 4.0`, zero authentication).
22
+
23
+ ## Quick Start
24
+
25
+ ```bash
26
+ pip install aivideowatch
27
+
28
+ # CLI
29
+ aivideowatch
30
+ aivideowatch cheapest seedance-2-5
31
+ aivideowatch clip kling-4-0 30 3
32
+ ```
33
+
34
+ ```python
35
+ import aivideowatch
36
+
37
+ print(aivideowatch.cheapest("seedance-2-5"))
38
+ print(aivideowatch.calculate_clip_cost("kling-4-0", duration_sec=10, tries=2.5))
39
+ ```
40
+
41
+ ## Links & Open Data
42
+ - **Interactive Cost-Per-Clip Calculator:** https://aivideowatch.com/cost-per-clip-calculator
43
+ - **Direct API Pricing Index:** https://aivideowatch.com/api-pricing
44
+ - **Open Datasets & OpenAPI 3.1:** https://aivideowatch.com/datasets
45
+ - **Hugging Face Dataset:** https://huggingface.co/datasets/aivideowatch/ai-video-pricing-index-2026
46
+ - **CERN Zenodo DOI:** https://doi.org/10.5281/zenodo.24715193
@@ -0,0 +1,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ aivideowatch/__init__.py
4
+ aivideowatch/__main__.py
5
+ aivideowatch.egg-info/PKG-INFO
6
+ aivideowatch.egg-info/SOURCES.txt
7
+ aivideowatch.egg-info/dependency_links.txt
8
+ aivideowatch.egg-info/entry_points.txt
9
+ aivideowatch.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ aivideowatch = aivideowatch.__main__:main
@@ -0,0 +1 @@
1
+ aivideowatch
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "aivideowatch"
7
+ version = "1.0.0"
8
+ description = "Zero-dependency Python SDK & CLI for live AI video generation pricing, cost-per-usable-clip budgets, and cross-platform model arbitrage from AIVideoWatch.com (CC BY 4.0)."
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.9"
12
+ authors = [{ name = "AIVideoWatch Research" }]
13
+ keywords = ["ai-video", "pricing", "seedance", "kling", "wan", "veo", "magi-2", "cost-per-clip", "benchmark", "open-data"]
14
+
15
+ [project.urls]
16
+ Homepage = "https://aivideowatch.com"
17
+ Documentation = "https://aivideowatch.com/api-docs"
18
+ Repository = "https://github.com/watchingyourback1/ai-video-pricing-index"
19
+ Dataset = "https://aivideowatch.com/datasets"
20
+
21
+ [project.scripts]
22
+ aivideowatch = "aivideowatch.__main__:main"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+