cURL
curl --request GET \ --url https://api.k-router.com/v1/usage \ --header 'Authorization: <authorization>'
크레딧 잔액 및 사용량 조회
Bearer kr-your-api-key
{ "credits_remaining": 5000.00, "credits_used": 1234.56, "usage_this_month": 890.12, "customer": { "name": "My Company", "credits": 5000.00 }, "recentUsage": [ { "model": "kr/gpt54", "inputTokens": 150, "outputTokens": 500, "credits": 0.85, "createdAt": "2026-03-20T04:00:00.000Z" } ] }
credits_remaining
credits_used
usage_this_month
recentUsage
curl https://api.k-router.com/v1/usage \ -H "Authorization: Bearer kr-your-api-key"
import requests r = requests.get( "https://api.k-router.com/v1/usage", headers={"Authorization": "Bearer kr-your-api-key"} ) data = r.json() print(f"남은 크레딧: {data['credits_remaining']}") print(f"이번 달 사용: {data['usage_this_month']}")