Changelog
Outcome billing: pay per verified successful task
Plans include a number of tasks; beyond that you pay only for tasks you confirm as solved. Tokens spent on unconfirmed work are refunded when you confirm.
- Billing
- Gateway
- API
codai now bills on outcomes. A plan includes a number of tasks each month; past that, you pay a flat price only for tasks you confirm codai actually solved.
How it works
- Every request carries a task id, echoed back in the
X-Codai-Task-Idheader. Your IDE, CLI or desktop app can group the turns of one job under it. - While a task is unconfirmed, tokens are metered at cost from your wallet — the task is never blocked.
- When you confirm the task (in the hub, the CLI or the desktop app), we charge the flat success price and refund the tokens spent on it. Reject it and nothing further is charged.
- Tasks that are verified mechanically — a fix that passes its tests in Resolve, the sandbox or the desktop harness — are confirmed automatically.
Also in this release
- A prepaid wallet in euros replaces the old credit packs. Existing credits were converted at the price you paid.
- Failed upstream requests refund whatever was consumed before dispatch.
- The API exposes
GET /v1/tasksandPOST /v1/tasks/:id/confirm|reject, and browsers can read theX-Codai-*headers cross-origin. - Plan changes take effect on every gateway instance within a second, instead of after a cache expiry.
Full details are on /pricing.