Skip to main content
Use Floodgate’s account APIs to check your balance, account tier, and usage. Account requests use a Personal Access Token. Model requests use the API key from your API Keys page.

Hosts and credentials

Create a Personal Access Token from the Access Tokens controls in your profile.
Most account responses contain success, message, and data. Check success as well as the HTTP status.

Balance

GET /api/payg/wallet returns your balance and recent transactions. Divide amounts by quota_per_usd to get USD. The current value is 500,000. Reserved funds and completed charges appear as separate transactions.

Account tier

The response’s data includes tier, paid_usd, next_tier, remaining_usd, progress_percent, unverified_payments, and the current tiers policy list. Each tier includes group, name, threshold_usd, discount_percent, rpm, concurrency, and log_retention_days. GET /api/user/tier/groups returns the account-tier identifiers. These are separate from API-key routing groups. See Billing and tiers for payment and discount rules.

Conversion receipt

GET /api/payg/conversion returns the account’s unacknowledged conversion notice, or data: null when none remains. A notice includes id, amount, exact_usd, rounding_usd, quota_per_usd, eligible, created_at, and items. Line items can show the converted balance or subscription value and applicable purchase basis. Acknowledge the receipt using its returned ID:
Replace 123 with your receipt’s ID. Acknowledging the receipt marks it as read. Your balance stays the same.

Key usage and routing

This endpoint uses your model API key. Its response contains code, message, and data. The data object includes total_granted, total_used, total_available, unlimited_quota, model_limits, model_limits_enabled, and expires_at. Amounts use accounting units and describe the key’s budget. All keys spend from your account balance. GET /api/token/auto-groups uses account authentication and returns routing groups and the current manual-selection limit. Manage key routing and USD budgets in API Keys. See Routing groups.

Reseller enrollment and customers

Use the reseller account API with your Personal Access Token to apply, check approval, and read your account status. Approved resellers can list their own customer restrictions and violations. These account endpoints are separate from the X-Floodgate-Customer-Id header on model requests. See the reseller program for the header contract, safety thresholds, and retry rules.

Request and task history

Common log filters are p, page_size, type, model_name, start_timestamp, and end_timestamp. Use type=2 for inference consumption. Timestamps are Unix seconds.
Log quota is the request’s consumed accounting units. prompt_tokens and completion_tokens describe token usage; media requests can use other billing units. Request history is limited by your account tier. Use your balance history for credits and charges, and Task Logs for video jobs.

Deposits

Use Billing to add funds. GET /api/user/topup/info returns checkout information, and GET /api/user/topup/self returns your deposit history. See Billing and tiers for charges and refunds, and Video generation for task status and download endpoints.