Widget Openrouter integration #6453
Unanswered
morettigiorgio
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
A OpenRouter widget to pay attention of our spend
Other
The widget should be like this:
icon: https://openrouter.ai/favicon.ico
href: https://openrouter.ai/activity
description: LLM API Gateway
widget:
type: customapi
url: https://openrouter.ai/api/v1/credits
refreshInterval: 60000
method: GET
headers:
Authorization: "Bearer HOMEPAGE_VAR_OPENROUTER_API_KEY"
mappings:
- field:
data: total_credits
label: Credits acquistati
format: float
prefix: "$"
- field:
data: total_usage
label: Spesi
format: float
prefix: "$"
- field:
data: total_credits
label: Saldo residuo
format: float
prefix: "$"
Beta Was this translation helpful? Give feedback.
All reactions