Get Account
Get the account, plan, limits and balance behind these credentials. Call it before submitting work to check plan limits and remaining credits or free allowance, and after a 402, 403 or 429 to decide how to recover: billingModel says whether to top up credits (credits), pay or update the payment method (usage), upgrade (free) or contact sync. (enterprise). Send people to billingUrl for anything that needs a payment.
Autenticación
Respuesta
The user this credential acts for: the signed-in user for sessions and OAuth tokens, or the API key owner. Null for an API key that has no owner.
api_key: an x-api-key header. oauth: an access token issued to a connected app such as an MCP client. session: a Studio sign-in.
How generations are paid for, which decides how to recover from a 402. credits: prepaid credits; top up, turn on auto top-up or upgrade at billingUrl. usage: usage is metered and invoiced; pay the open invoice or update the payment method at billingUrl. free: a monthly free allowance; upgrade at billingUrl. enterprise: negotiated billing; contact your sync. account team.
Prepaid credit balance when billingModel is credits; null otherwise.
Free monthly allowance when billingModel is free; null otherwise.
Studio billing page where a person can change plan, pay, top up or update the payment method. It needs a signed-in browser.

