What's a 402 error?
Last updated: October 3, 2026
A 402 error usually means there are not enough credits available for the request.
Open the TypeSafe console. In the account menu, select the organization associated with the API key you are using.
Choose Settings → Billing, or open Billing settings after selecting the organization. Check Available credits.
If the balance is depleted and you have not already paid to add credits, choose Add funds. Enter the amount and select or add a payment method, then follow the payment prompts.
If you have already paid, or an available balance is shown, check Billing history and contact support before making another purchase. Include any Pending status or payment-processing notice.
If Billing is not visible, include that in your support request along with the organization name.
Credits are available, but the request still fails
Email support@typesafe.ai with the organization name and ID if available, the current balance, exact error, request ID if shown, and the time and time zone of the failed request. If this followed a purchase, include the receipt reference, amount, and date.