Skip to content

fix(billing): withhold hosted Fal.ai image generation from free-plan payers - #10136

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/gate-hosted-fal-image
Nov 17, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/gate-hosted-fal-image

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Mark the Image Generator's hosted Fal.ai key requiresPaidPlan, the same gate the Video tool's hosted Fal.ai key already uses
  • A free-plan payer without prepaid credits now gets the 402 "available on paid plans" error instead of Sim's key; a workspace BYOK key or a key passed on the block still runs, and other image providers are unaffected (hosting is only enabled for the falai provider)
  • Covers every surface that runs the tool, including deployed chats, which bill the chat owner's workspace

Type of Change

  • Bug fix

Testing

  • Gate logic is the existing requiresPaidPlan path in tools/index.ts, covered by the requiresPaidPlan suite in tools/index.test.ts (refusal before key acquisition, paid payer admitted, workspace-payer fallback, missing payer refused, BYOK bypass)
  • generate:tool-metadata produces no drift; biome clean; full suite and audits run in CI

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 17, 2026 5:49pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Adds requiresPaidPlan: true to the Image Generator’s hosted Fal.ai configuration.

  • Free payers can no longer use Sim's hosted Fal.ai image key.

Reviews (2) · Last reviewed commit: "fix(billing): withhold hosted Fal.ai ima..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit 769e5ba into staging Nov 17, 2026
62 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/gate-hosted-fal-image branch November 17, 2026 17:53

This branch was previously deployed

1 inactive deployment
Preview — 8cd4127a Deployed Nov 17, 2026 by vercel[bot]
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.

1 participant