feat: add openrouter limits reporting script

This commit is contained in:
kevin-bruton 2025-09-27 10:21:19 +02:00
parent 12187b5603
commit fa1f8f70a0
1 changed files with 13 additions and 0 deletions

13
openrouter_status.py Normal file
View File

@ -0,0 +1,13 @@
import requests
import json
import os
from dotenv import load_dotenv
load_dotenv()
response = requests.get(
url="https://openrouter.ai/api/v1/key",
headers={
"Authorization": f"Bearer {os.getenv('OPENROUTER_API_KEY')}"
}
)
print(json.dumps(response.json(), indent=2))