Billing for agents
An agent can read the plans, price a billing change, and ask for it. An owner or a billing admin approves or rejects every change, and pays in the browser. No card, bank account or payment detail passes through an agent.
Not live yet. PromptCompute holds the code in review, and it stays off until it is switched on.
| Step | Tool and route | State |
|---|---|---|
| Read the plans: price per user, requests per user a month, step cap per run | list_plans, GET /v1/billing/plans | Built |
| Read the billing account: the Stripe customer and the family subscription with each item and the product it pays for | get_billing_account, GET /v1/billing/account | Built |
| Read the bill: plan, seats, pool use and invoices | get_billing and list_invoices, GET /v1/billing and GET /v1/billing/invoices | Built |
| Price a change: before and after, the prorated amount, the next invoice | preview_billing_change, POST /v1/billing/preview | Built |
| Ask for the change, with a preview from the last 15 minutes | request_billing_change, POST /v1/billing/changes | Built |
| Follow the change | get_billing_change, GET /v1/billing/changes/:id | Built |
| Start a sign-up the person finishes in the browser | start_signup and get_signup, POST /v1/signup and GET /v1/signup/:id | Planned |
Price first
Call preview_billing_change with the kind of change: seats, plan, product_add, product_remove, interval or cancel. It answers the price before and after, the prorated amount for the rest of the period and the next invoice, from Stripe, with a preview_id that lasts 15 minutes. Nothing changes. Tell the person the price before you ask for anything.
A person approves every change
request_billing_change takes the preview_id. It is refused after 15 minutes, or when the figures moved since the preview. Otherwise it files one approval request in PromptCompute, sent to the organization's owners and billing admins. One of them approves or rejects it; an agent never can, including the one that asked. Only an approved change reaches Stripe, and the organization's signed ledger records it.
The page people use
Owners and billing admins see the same figures on the billing page at accounts.promptreports.ai/orgs/<org>/billing, where requests from agents wait under Requests from agents with their preview. Every button on that page calls a handler a tool also calls, so an agent and a person see the same plan, seats, pool use and caps.
No payment details
No tool or route takes or returns a card number, a bank account or a Stripe client secret. Paying for a first plan happens at Stripe Checkout in the person's browser; the agent sees only the state of the change. There is no free tier and no trial: the plans are $25 per user a month for 100 workflow requests and $50 for 500, pooled across the organization, with Enterprise above 500.
Sign-up
An agent without an account calls POST https://accounts.promptreports.ai/v1/signup and gets a sign-in URL, a signup_id and a poll_token. The person opens the URL, signs in or creates the account, and picks or creates the organization. Reading GET /v1/signup/:id with the poll token answers waiting_for_person until then, and the organization id after. A sign-up the person does not finish expires in 24 hours.
MCP tools on mcp.promptreports.ai: list_plans, get_billing_account, get_billing, list_invoices, preview_billing_change (kind, then the change's own fields), request_billing_change (preview_id), get_billing_change (id), start_signup (agent_name), get_signup (signup_id, poll_token)