Skip to content

Billing: add cost and credit accounting safeguards #50

Description

@LoggeL

Goal

Strengthen cost and credit accounting around paid external providers.

Scope

  • ensure credits are deducted exactly once per successful/started processing job according to the intended policy
  • make refunds/failure states explicit
  • add admin-visible accounting for provider runs and failed attempts
  • test race conditions and duplicate submissions
  • document cost-control behavior for self-hosters

Why this matters

MelodAI calls paid APIs for separation, transcription, and LLM processing. Clear accounting protects maintainers and users from accidental overspend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions