Skip to content

pipelex.billing.credit_exhausted

The organization is out of credit

Type https://docs.pipelex.com/errors/pipelex.billing.credit_exhausted
Family pipelex.billing: Credit and subscriptions: what an organization's plan and balance allow.
Domain account: the account's owner acts
Retry no: repeating the operation fails the same way
HTTP status 402
Raised as a problem document, sent as the body of an HTTP response or kept in a run's record

What it means

The organization's credit is spent. The hosted platform keeps two credit ledgers, inference credit and usage credit, and refuses a run before queueing it while either is at zero or below, naming the ledger that refused it in params.ledger. A model call made once the credit has run out is refused as well, and names no ledger.

What to do

Add credit to the organization, or move it to a plan that includes more, then start the run again.

Next steps

A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the account's owner, and the second for any other reader.

Reader Kind Detail
The domain's actor check_account Add credit to the organization, or move it to a plan that includes more, then try again.
Any other reader contact_owner Ask the account's owner to add credit to the organization.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

The organization has no credit left, so the operation was refused.

Parameters

A parameter is present on every occurrence of the code unless it is marked optional, and one marked operator-only reaches only whoever runs the runtime, never a caller.

Name Type Description
ledger one of inference, usage (optional) The credit ledger whose balance refused the operation: the organization's inference credit or its usage credit.

See also