api-keys
Get Token Costs
Return the full token cost table.
Lists every endpoint pattern and how many tokens each request costs. Use this to estimate usage before making API calls. No authentication required.
curl example:
curl https://api.halalterminal.com/api/keys/token-costs
Python example:
import requests
resp = requests.get("https://api.halalterminal.com/api/keys/token-costs")
for cost in resp.json()["costs"]:
print(f"{cost['pattern']} ({cost['method']}): {cost['tokens']} tokens")
get/api/keys/token-costs
Request
- Base URL: https://api.halalterminal.com
- URL: https://api.halalterminal.com/api/keys/token-costs
- Auth: none required
Response
Token cost table for all endpoint categories
Example response
{
"costs": [
{
"method": "*",
"pattern": "/api/health",
"tokens": 0
},
{
"method": "GET",
"pattern": "/api/screen",
"tokens": 5
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.