The workspace lacks sufficient available credit. Inspect its grant and paid balance before submitting new inference.
Identification
Extends APIError. The status property contains the HTTP status returned by the server.
Handle in application code
import {InsufficientCreditError} from "./ngila.mjs";
try {
await client.models();
} catch (error) {
if (!(error instanceof InsufficientCreditError)) throw error;
console.error(error.name, error.status);
}