Skip to content

feat(settings): show AI usage on the plans as tiers of Starter's, Growth at 5x - #1298

Merged
gkhngyk merged 5 commits into
ansvisor:mainfrom
cihan-gyk:feature/ai-usage-tiers
Oct 21, 2026
Merged

gkhngyk merged 5 commits into
ansvisor:mainfrom
cihan-gyk:feature/ai-usage-tiers

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

AI usage gets tiers the billing cards can name. AI usage is the monthly USD budget Improve spends, and the Content Editor's AI will spend it too. The cards show it as a multiple of Starter's: Starter 1x, Growth 5x.

Stacked on #1297, and includes #1296. Please merge #1296 and #1297 first. This PR's own change is 3396d7c.

Budgets (improveMonthlyBudgetUsd; server/src/config/plans.js and web/src/config/plans.ts kept in step)

Plan Before After
Starter $0 on main, $1 in #1296 $1 (1x)
Growth $2.49 (1% of $249) $5 (5x)
Enterprise (default) $4.99 $10
  • Enterprise: at least $10 now, so it never falls below Growth. plan_overrides.contractMonthlyUsd still raises it to 1% of the contract, and an explicit plan_overrides.improveMonthlyBudgetUsd still wins.
  • Comments: the ones in plan-guard.js and improve-cost.js said the budget was "1% of the plan price". They now say what's true: the tiers, plus 1% of an Enterprise contract.
  • Enforcement (enforceImproveQuota, real token cost) is unchanged.

Billing cards (plan-switcher.tsx)

  • A new line after site audits: "1x AI usage" / "5x AI usage". It's worked out from the budgets against Starter's, so it stays true if a budget changes.
  • Hovering it explains: "A monthly allowance for Ansvisor's AI features: Improve suggestions and the Content Editor's AI. Agent Chat runs on your own AI key." Agent Chat is bring-your-own-key, so it isn't part of this budget.
  • Copy is in en.json (settings.planCards.aiUsage, aiUsageHint).

Cost note: Growth's AI spend cap goes from $2.49 to $5 per organization a month, about 2% of its price instead of 1%. Enterprise's floor goes from $4.99 to $10.

Related issue

Follows #1296 (Starter's $1 Improve trial) and #1297 (Billing cards from the pricing page). Product decision 2026-10-21. The marketing pricing page (www.ansvisor.com) isn't in this repo and will be updated separately.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

With NEXT_PUBLIC_IS_CLOUD=true (and IS_CLOUD=true on the server for enforcement):

  1. Settings → Billing → Change Plan. Starter reads 1x AI usage and Growth 5x AI usage. Hovering shows what it covers.
  2. On a Growth organization, the Improve tab's "About N generations left" reflects a $5 budget, roughly twice what $2.49 gave.

Checked locally with the demo organization on Starter, which was set back afterwards. Checked in light and dark.

Tests:

  • Server: prompt-improve.test.js checks the new tiers (Starter $1, Growth $5, Enterprise $10, self-hosted unlimited). The contract-override tests in plan-guard.test.js use their own fixture and are unchanged.
  • Web: plan-switcher.test.tsx checks both cards' lists with the AI usage lines, and the hover note.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/) (0 errors; the 6 warnings are in untouched files, as on main)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Web: yarn test (1,914 tests) and yarn build pass. Server: npm run format, npm run lint and npm test (1,919 tests, also without a .env, as CI runs them) pass. No migration.

🤖 Generated with Claude Code

cihan-gyk and others added 4 commits October 21, 2026 01:20
…ce it's spent

Starter now has the Improve tab (prompt_improve) on a $1 monthly budget,
a trial rather than 1% of its $49 price, so it can see what Improve does.
PROMPT-003 kept Improve to Growth and above.

- server/src/config/plans.js and web/src/config/plans.ts: Starter gets
  prompt_improve and improveMonthlyBudgetUsd 1.
- Improve tab: the budget note reads from en.json
  (prompts.improve.quota); once the budget is spent, Starter gets an
  "Upgrade for more" link to the billing page. A spent budget is said
  once, by the note, instead of also repeating the server's error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings → Billing's plan cards and custom plan box now follow
www.ansvisor.com/pricing.

- Each card lists, with a check: brands, unlimited seats, prompts
  tracked, the answer engines it tracks by name (Starter: ChatGPT &
  Microsoft Copilot; Growth: ChatGPT, Perplexity, Gemini, Microsoft
  Copilot, Google AI Mode and Google AI Overviews, instead of
  "8 answer engines"), content briefs and site audits a month, and what
  the plan adds; the taglines are the pricing page's.
- "Need a custom plan?" says who it's for and that it starts at
  $499/month, with six of the custom plan's points.
- The copy is in en.json (settings.planCards, customPlanPoints); the card
  keys nothing uses any more are removed. Plan limits are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…wth at 5x

AI usage (the monthly budget Improve and, later, the Content Editor's AI
spend) now comes in tiers the billing cards can name: Starter $1 (1x),
Growth $5 (5x, up from $2.49), Enterprise $10 at the least (up from $4.99,
so it stays above Growth; 1% of the contract still raises it).

- server/src/config/plans.js and web/src/config/plans.ts: the new budgets,
  with comments; plan-guard.js and improve-cost.js no longer say the
  budget is 1% of the plan price.
- Billing cards: "{n}x AI usage", worked out from the budgets against
  Starter's, with a hover note on what it covers (Agent Chat runs on the
  customer's own key).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@gkhngyk This is a product decision from today, built on #1296 and #1297 (please merge those first).

AI usage now comes in tiers. It's the Improve budget, which the Content Editor's AI will share:

  • Starter $1 (1x)
  • Growth $5 (5x, up from $2.49)
  • Enterprise $10 at the least (up from $4.99, so it stays above Growth; 1% of a contract still raises it)

The billing cards show "1x AI usage" / "5x AI usage", worked out from the budgets.

Cost: Growth's monthly AI spend cap per organization roughly doubles, to about 2% of its price. Enforcement is unchanged (real token cost, enforceImproveQuota). Agent Chat stays bring-your-own-key and isn't part of this budget.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Enterprise's default now sits above Growth, and contractMonthlyUsd or an explicit improveMonthlyBudgetUsd still win as before. The card's multiple is worked out from the budgets, so it stays true if one changes.

@gkhngyk
gkhngyk merged commit 3867cb8 into ansvisor:main Oct 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants