Skip to main content
All usage endpoints are mounted under /usage and require an authenticated session (authMiddleware).

Overview

GoBetter grants each user a complimentary usage allowance (perUserSpendLimit = $0.30 USD) for platform-hosted models. Once this allowance is exhausted, reviews require a configured BYOK key.

Endpoints

1. Get Current Spend & Quota

GET /usage
GET /usage/:userId
Retrieves the authenticated user’s accumulated spend against the platform limit. The :userId parameter defaults to the current session’s authenticated user ID.
cURL
Response (200 OK)

Field Explanations