Skip to content

docs(agent): document the agent credit check and balance cap - #1673

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
autopilot/3b51056a
Open

mintlify[bot] wants to merge 1 commit into
mainfrom
autopilot/3b51056a

Conversation

@mintlify

@mintlify mintlify Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Adds an "Agent pre-flight credit check" note to the billing page, next to the crawl one, and a cost tip on the Agent page that links to it.

Paid /v2/agent runs now get a credit check on every plan. If a team has pay-as-you-go off and no auto-recharge, a run at zero balance gets a 402 that states the balance. For those teams, maxCredits is capped at the remaining balance, and the run stops if the balance runs out. Free daily runs and overage or auto-recharge teams are unchanged.

Based on fix(api): gate /v2/agent credits after free-request consumption and cap runs at the balance. That PR closed the credit-check bypass and added the balance cap.

Needs a human look: I didn't name a stopReason for a run that stops because the balance ran out, since the API repo doesn't show how that stop is reported. Add it if the agent service sets one.

@mintlify
mintlify Bot requested a review from rakshith48 October 20, 2026 15:34
@mintlify

mintlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
firecrawl 🟢 Ready View Preview Oct 20, 2026, 3:36 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

This branch was successfully deployed

1 active deployment
staging — 234eaa0d Deployed Oct 20, 2026 by mintlify[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