The Floodgate REST API allows you to manage your account programmatically. Using your Personal Access Token (PAT), you can check your credit balance, monitor daily quotas, review recent request logs, and check available models without needing to open the web dashboard.
Base URL & Authentication
All account management endpoints use the base URL:
To authenticate, include your Personal Access Token in the Authorization header:
You can generate a Personal Access Token from the Floodgate dashboard under Profile Page> Access Tokens.
Balance & Quota
Get Account Profile & Balance
Retrieve your current credit balance, lifetime usage, and account tier.
Quota Conversion
Floodgate measures balance in standard quota units:
- 500,000 units = $1.00 USD
- To convert quota units to USD:
USD = quota / 500,000
Example Response
quota: Current remaining balance in quota units.
used_quota: Total quota units consumed over the lifetime of the account.
request_count: Total number of API requests processed.
group: The pricing and rate-limit group assigned to your account.
Get Daily Quota Status
Check your daily spending limits, current daily spend, and when the limit resets.
Example Response
enabled: Whether daily quota limits are active for your group.
limit_usd: Maximum allowed spend per day in USD.
used_usd: USD spent during the current 24-hour cycle.
remaining_usd: Remaining spending allowance before the next reset.
reset_at: Unix timestamp when the daily limit resets (UTC).
Subscriptions
Get Active Subscriptions
Check active subscription tiers and billing preference.
Example Response
Usage & Activity Logs
Get Request Logs
Retrieve a paginated history of your API calls, tokens consumed, latency, and cost per request.
Query Parameters
Example Response
quota: Credits consumed by this specific request.
prompt_tokens: Input tokens sent.
completion_tokens: Output tokens generated.
use_time: Request duration / latency in seconds.
Get Aggregate Usage Statistics
Get a quick aggregate summary of total quota consumed, average requests per minute (RPM), and tokens per minute (TPM).
Example Response
Models & Top-Up History
List Available Models
Retrieve the list of model identifiers currently enabled for your user tier.
Example Response
View Top-Up History
View past credit recharges, redeemed vouchers, and payment records.
Example Response