Account
/account
Your plan, limits, and credits right now: the history window, the per-minute rate limit, and how many credits are left in the current cycle, plan and purchased, with the cycle's dates. It is free and does not count against your credits, so check it as often as you need.
The same numbers arrive on every response as the RateLimit-* and X-Credits-* headers; this is the place to read them without making a data request.
Parameters
No parameters for this endpoint.
cURL Example
curl --request GET \
--url 'https://nebula-api.hiddensystems.ai/api/v1/public/account' \
--header 'X-API-Key: YOUR_API_KEY'
Responses
Media type application/json
credits
object
The account's credit position this cycle; absent for keys that are not metered.
credits
The account's credit position this cycle; absent for keys that are not metered.
credits.cycle_end
UTC end of the current credit cycle, when plan credits renew.
credits.cycle_start
UTC start of the current credit cycle.
credits.plan_credits
Credits the plan includes this cycle.
credits.plan_credits_remaining
Plan credits left this cycle.
credits.plan_credits_used
Plan credits spent this cycle.
credits.purchased_credits_remaining
Unexpired purchased credits left, spent after plan credits.
credits.total_remaining
Everything left to spend: plan plus purchased credits.
history_window_days
How many days back the plan can read; null when unbounded.
plan
The account's API plan, such as free or pro.
rate_limit_per_minute
Requests allowed per minute; null when the key is not rate limited.
{
"history_window_days": 3650,
"plan": "pro",
"rate_limit_per_minute": 300
}