feat: add pricing sync script and update model prices from OpenRouter (#27)

* fix: pin npm package versions in MCP integration templates

Prevent supply chain attacks by pinning exact versions instead of
using unpinned `npx -y @package` which pulls latest on every run.

23 of 25 integrations pinned. sqlite-mcp and aws skipped (packages
not found on npm registry).

* fix: use stable azure/mcp version instead of beta

* feat: add pricing sync script and update model prices from OpenRouter API

- scripts/sync-pricing.py fetches real-time pricing from OpenRouter
- Updated 64 price fields across 13 provider files
- Run periodically or in CI to keep prices current
This commit is contained in:
Evan authored and GitHub committed 2026-03-25 23:43:13 +09:00
1 parent a00e813bdf
commit 553ecc6947
42 files changed
+1388 -64

No files matched your search

+12 -12
View File
@@ -15,8 +15,8 @@ display_name = "Gemini 3.1 Pro Preview"
tier = "frontier"
context_window = 1048576
max_output_tokens = 65536
input_cost_per_m = 2.50
output_cost_per_m = 15.0
input_cost_per_m = 2.0
output_cost_per_m = 12.0
supports_tools = true
supports_vision = true
supports_streaming = true
@@ -28,8 +28,8 @@ display_name = "Gemini 3 Flash Preview"
tier = "smart"
context_window = 1048576
max_output_tokens = 65536
input_cost_per_m = 0.15
output_cost_per_m = 0.60
input_cost_per_m = 0.5
output_cost_per_m = 3.0
supports_tools = true
supports_vision = true
supports_streaming = true
@@ -41,8 +41,8 @@ display_name = "Gemini 3.1 Flash Lite Preview"
tier = "fast"
context_window = 1048576
max_output_tokens = 8192
input_cost_per_m = 0.04
output_cost_per_m = 0.15
input_cost_per_m = 0.25
output_cost_per_m = 1.5
supports_tools = true
supports_vision = true
supports_streaming = true
@@ -54,8 +54,8 @@ display_name = "Gemini 2.5 Flash Lite"
tier = "fast"
context_window = 1048576
max_output_tokens = 8192
input_cost_per_m = 0.04
output_cost_per_m = 0.15
input_cost_per_m = 0.09999999999999999
output_cost_per_m = 0.39999999999999997
supports_tools = true
supports_vision = true
supports_streaming = true
@@ -80,8 +80,8 @@ display_name = "Gemini 2.5 Flash"
tier = "smart"
context_window = 1048576
max_output_tokens = 65536
input_cost_per_m = 0.15
output_cost_per_m = 0.60
input_cost_per_m = 0.3
output_cost_per_m = 2.5
supports_tools = true
supports_vision = true
supports_streaming = true
@@ -93,8 +93,8 @@ display_name = "Gemini 2.0 Flash"
tier = "fast"
context_window = 1048576
max_output_tokens = 8192
input_cost_per_m = 0.10
output_cost_per_m = 0.40
input_cost_per_m = 0.075
output_cost_per_m = 0.3
supports_tools = true
supports_vision = true
supports_streaming = true