HeyPuter/puter · error · HttpError
insufficient_funds
insufficient_funds
Error message
Insufficient funds
What it means
Error "Insufficient funds" thrown in HeyPuter/puter.
Source
Thrown at src/backend/drivers/ai-tts/providers/openai/OpenAITTSProvider.ts:194
},
);
}
const format = response_format || 'mp3';
const contentType =
RESPONSE_CONTENT_TYPES[format] || RESPONSE_CONTENT_TYPES.mp3;
const actor = Context.get('actor')!;
const usageType = `openai:${model}:character`;
const ucentsPerChar = OPENAI_TTS_COSTS[model] ?? 0;
const totalCost = ucentsPerChar * text.length;
const usageAllowed = await this.meteringService.hasEnoughCredits(
actor,
totalCost,
);
if (!usageAllowed) {
throw new HttpError(402, 'Insufficient funds', {
legacyCode: 'insufficient_funds',
});
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const payload: any = {
model,
voice,
input: text,
};
if (instructions) {
payload.instructions = instructions;
}
if (response_format) {
payload.response_format = response_format;
}View on GitHub (pinned to 908ec23eda)
Solutions
- Add credits to the account before retrying the TTS request.
- Reduce usage or upgrade the plan to restore sufficient funds.
When it happens
Trigger: Thrown at src/backend/drivers/ai-tts/providers/openai/OpenAITTSProvider.ts:194 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HeyPuter/puter@908ec23eda (2026-08-12).
Data as JSON: /api/errors/0add94a69aaa1a4d.
Report an issue: GitHub.