Feature: show cost estimate and spend confirmation before generation

Aberta
#186 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
full-stack, payments

Direção de pesquisa

Start by locating the generation panel, provider integrations, project data model, and settings UI; the issue does not name specific files or tests. Trace how generation jobs receive provider and usage information, then determine how estimates, thresholds, confirmations, and actual spend fit those entry points. Done means the listed acceptance criteria work across paid and free providers, with documentation explaining estimate limits.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

area:provider type:feat

Why

Users hesitate to try paid models when the bill is opaque. Publishing example films with explicit dollar costs and requiring confirmation before spend builds trust and reduces surprise bills.

Proposal

Before kicking off image / video / TTS / music generation that uses a paid provider:

  1. Estimate expected cost for the planned job (shots × models × duration).
  2. Show the estimate in the UI (and optionally in chat) with the selected providers.
  3. Require an explicit confirm when estimated spend exceeds a user-configurable threshold.
  4. Track actual spend per project and surface it next to the estimate.

Acceptance criteria

  • Generation panel shows an estimated cost (or "unknown / local") before submit.
  • Settings allow a soft spend cap and a confirm-above threshold.
  • Jobs above the threshold cannot start without confirmation.
  • Project shows estimated vs actual spend for completed generations when the provider reports usage or unit prices are configured.
  • Local / free providers are clearly labeled as $0 so users know the free path.
  • Docs explain how estimates work and their limits.

Out of scope

  • Perfect billing reconciliation with every third-party invoice.
  • Blocking local / self-hosted model runs with payment UX.

Notes

Pair with the zero-key / free-footage path so users always have a non-paid first win.

Linguagem predominante
TypeScript
Estrelas
119
Forks
16
Merge médio
16h 13min
PRs com merge (30d)
195

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de ThinkFlowLab/OpenDirector

Todas as issues de ThinkFlowLab/OpenDirector

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.