# witn > Outcome-based billing infrastructure for AI agent builders. witn lets teams building AI agents define what a successful outcome looks like, send product signals as events, and automatically settle charges when outcomes are verified — with built-in deduplication, settlement periods, dispute handling, reprocessing, and an auditable charge trail. No billing infrastructure to build. ## Core concepts - **Outcome contract**: defines the settlement period and billable condition for a billable event - **Billable condition**: a boolean expression tree (AND / OR / NOT) evaluated against incoming events to determine whether an outcome occurred - **Settlement period**: the time after the latest event before the current result becomes final; newer events push settlement forward - **Outcome**: a single billable unit tracked through states — OPEN → CONFIRMED or FAILED ## Pages - [Homepage](https://www.thewitn.com): Product overview, capabilities, and use cases - [Blog index](https://www.thewitn.com/blog): All posts on outcome-based billing and AI agent monetization ## Docs - [Authentication](https://www.thewitn.com/docs/authentication.mdx): All API requests are authenticated with a Bearer token. - [Introduction](https://www.thewitn.com/docs/introduction.mdx): witn is outcome-based billing infrastructure for AI agents. Define what a successful outcome looks like, send events and bill only for verified results. - [Quickstart](https://www.thewitn.com/docs/quickstart.mdx): Set up outcome-based billing for your AI agent and send your first event in under 2 minutes. - [Conditions](https://www.thewitn.com/docs/concepts/billable-conditions.mdx): A condition is a small logic expression on the task contract. It decides when an outcome confirms and when it fails. - [Outcome lifecycle](https://www.thewitn.com/docs/concepts/outcome-lifecycle.mdx): Outcomes are state machines. Understanding settlement tells you exactly when events are accepted and when an outcome resolves. - [Rate cards](https://www.thewitn.com/docs/concepts/rate-cards.mdx): Reusable pricing templates that map tasks to per-unit prices. Assign one to a customer to control what they pay per confirmed outcome. - [Error codes](https://www.thewitn.com/docs/errors.mdx): Every API error response uses the same JSON envelope. Use the code field to handle specific cases. - [INTERNAL_ERROR](https://www.thewitn.com/docs/errors/internal-error.mdx): An unexpected server-side error occurred. Retry with exponential back-off. - [PAYLOAD_TOO_LARGE](https://www.thewitn.com/docs/errors/payload-too-large.mdx): The event body was larger than the 256 KiB ingest limit. - [TOKEN_INVALID](https://www.thewitn.com/docs/errors/token-invalid.mdx): The Authorization header is missing, malformed, or the token is not recognised. - [VALIDATION_ERROR](https://www.thewitn.com/docs/errors/validation-error.mdx): The request body, query parameters, or path parameters failed schema validation. - [Writing a condition](https://www.thewitn.com/docs/guides/billable-conditions.mdx): A condition decides when an outcome confirms. You write it as text on the task contract. - [Create a customer](https://www.thewitn.com/docs/guides/create-a-customer.mdx): Customers are the top-level billing entity. Every outcome belongs to a customer. - [Create a task](https://www.thewitn.com/docs/guides/create-a-task.mdx): Tasks are contract templates. They define the condition and settlement window for your outcomes. - [How witn works](https://www.thewitn.com/docs/guides/how-witn-works.mdx): A short overview of outcome-based billing for AI agents and the building blocks you will use: tasks, customers, outcomes, events and rate cards. - [Notifications](https://www.thewitn.com/docs/guides/notifications.mdx): Receive a webhook when an outcome confirms or is missed. - [Open an outcome](https://www.thewitn.com/docs/guides/open-an-outcome.mdx): An outcome is a live instance of a task for one customer. You create it, then send events against it. - [Rate cards](https://www.thewitn.com/docs/guides/rate-cards.mdx): Rate cards map tasks to prices. Assign one to a customer to set what they pay per confirmed outcome. - [Send events](https://www.thewitn.com/docs/guides/send-events.mdx): Events are signals from your system. The billable condition is evaluated after each one. - [Submit a batch of events](https://www.thewitn.com/docs/api-reference/events/submit-event-batch.mdx): Submits many events in one request. Use this instead of many single calls when you have high volume. One request amortizes the cost of auth, parsing, and… - [Submit an event](https://www.thewitn.com/docs/api-reference/events/submit-event.mdx): Submits a signal to an existing outcome. The request body and token are validated immediately, then the event is enqueued for asynchronous processing. Identity… ## Blog - [witn vs Building In-House](https://www.thewitn.com/blog/witn-vs-building-in-house.mdx): Considering a DIY outcome-based billing system? Learn the hidden costs of settlement, idempotency and auditing that turn a simple project into a major build. - [witn vs Stigg](https://www.thewitn.com/blog/witn-vs-stigg.mdx): Compare witn and Stigg for AI agent billing. Where entitlement management fits, where outcome-native billing wins and how to choose for your product. - [witn vs Chargebee](https://www.thewitn.com/blog/witn-vs-chargebee.mdx): Compare outcome-native and subscription models to find the right fit for your AI agent. Learn how witn and Chargebee approach value measurement and invoicing. - [Engineering Leader's Guide to Outcome-Based Pricing](https://www.thewitn.com/blog/an-engineering-leaders-guide-to-implementing-outcome-based-pricing.mdx): A technical guide for engineering leaders on implementing outcome-based pricing for AI agents. Learn the data model, failure modes and rollout strategy. - [Moving Existing Customers to Outcome-Based Pricing](https://www.thewitn.com/blog/how-to-move-existing-customers-to-outcome-based-pricing.mdx): How to migrate existing customers to outcome-based pricing. A guide for AI founders on sequencing, comms and avoiding revenue loss. - [Deloitte ASC 606 Guidance for Outcome-Based Pricing](https://www.thewitn.com/blog/implementing-the-deloitte-asc-606-guidance-for-outcome-based-ai-pricing.mdx): A CFO's guide to Deloitte's ASC 606 for AI agents. The five system requirements for auditable outcome-based billing. - [AI Agent Monetization: The Complete Guide](https://www.thewitn.com/blog/ai-agent-monetization-the-complete-guide.mdx): How to monetize an AI agent in 2026. Pricing models compared, billable outcomes, risk tiers, backtesting, settlement and invoicing in one complete guide. - [AI Agent Pricing in 2026: Fin, Sierra, Decagon](https://www.thewitn.com/blog/ai-agent-pricing-in-2026-what-fin-sierra-decagon-and-agentforce-actually-charge.mdx): Real 2026 AI agent pricing from Fin, HubSpot and Salesforce. Calculate the true cost per successful resolution to choose vendors wisely. - [How to Test Your Outcome Pricing Model Before Launch](https://www.thewitn.com/blog/how-to-test-your-outcome-pricing-model-before-launch.mdx): De-risk your move to outcome-based billing. This guide shows AI agent builders how to simulate pricing against historical data and forecast revenue. - [Metronome Alternatives After the Stripe Acquisition](https://www.thewitn.com/blog/metronome-alternatives-after-the-stripe-acquisition.mdx): Stripe acquired Metronome in January 2026. Here are five alternatives for AI billing, from usage metering to outcome-based billing and how to choose. - [5 Paid.ai Alternatives for AI Agent Billing in 2026](https://www.thewitn.com/blog/paid-ai-alternatives-for-ai-agent-billing.mdx): Comparing Paid.ai with witn, Metronome, Orb, Lago and Nevermined. What each platform does well and how to pick billing infrastructure for your AI agent. - [witn vs Orb](https://www.thewitn.com/blog/witn-vs-orb.mdx): Compare witn and Orb for AI agent billing. Where usage-based metering fits, where outcome-native billing wins and how to choose for your product. - [Building witn's Low-Latency Outcome Resolution Layer](https://www.thewitn.com/blog/how-we-built-witn-s-outcome-resolution-layer-for-low-latency-and-reliability.mdx): Explore the engineering of a low-latency, high-reliability outcome resolution layer for AI agent billing. Learn how we solved for correctness and scale. - [Why Per-Minute Billing Is a Trap for Voice AI](https://www.thewitn.com/blog/how-voice-ai-companies-price-today-and-why-per-minute-billing-is-a-trap.mdx): Why per-minute billing traps voice AI companies. How outcome-based pricing aligns incentives with the value you deliver. - [How Transparent Invoicing Stops AI Billing Disputes](https://www.thewitn.com/blog/how-transparent-invoicing-stops-ai-billing-disputes.mdx): Reduce billing disputes and lower support costs for your AI product. This guide shows how to build transparent, self-explanatory invoices that earn trust. - [Why Selling AI Got Hard: Proof, Not Promises](https://www.thewitn.com/blog/why-selling-ai-got-hard-buyers-want-proof-not-promises.mdx): Find out why AI deals are stalling in 2026. Buyers demand proof, not promises. Learn how outcome-based pricing builds trust and closes deals. - [What Counts as a Resolution? Per-Resolution Pricing](https://www.thewitn.com/blog/what-counts-as-a-resolution-the-fine-print-of-per-resolution-pricing.mdx): Why per-resolution pricing varies so widely. How fine print, resolution definitions and reopen windows drive your real AI agent costs. - [Pricing AI Outcomes as Risk Contracts](https://www.thewitn.com/blog/pricing-ai-outcomes-as-risk-contracts.mdx): Learn to price AI agent outcomes as risk contracts. Move beyond simple unit pricing and build a ladder of offers that reflects true value. - [The Missing Layer in AI Agent Monetization](https://www.thewitn.com/blog/the-missing-layer-in-ai-agent-monetization.mdx): Metered billing falls short for AI agents. Learn why monetization needs a resolution layer that turns stateful agent activity into billable outcomes. - [witn vs Lago](https://www.thewitn.com/blog/witn-vs-lago.mdx): Compare witn and Lago for AI agent billing. Where open source usage metering fits, where outcome-native billing wins and how to choose for your product. - [witn vs Stripe](https://www.thewitn.com/blog/witn-vs-stripe.mdx): An honest comparison of witn and Stripe for AI agent billing. Where usage metering fits, where outcome resolution wins and how to combine them in one stack. - [Revenue Recognition for Outcome-Based AI Billing](https://www.thewitn.com/blog/revenue-recognition-for-outcome-based-ai-billing.mdx): Learn how to apply ASC 606 to outcome-based AI billing. This guide for finance leaders offers a framework for clean revenue recognition and audit readiness. - [A Buyer's Guide to Outcome-Based AI Pricing](https://www.thewitn.com/blog/a-buyer-s-guide-to-outcome-based-ai-pricing.mdx): A practical playbook for buying outcome-based AI agents. What to ask vendors, what to demand in the contract and how to compare quotes on equal terms. - [Defining Concrete Billable Outcomes for AI Agents](https://www.thewitn.com/blog/defining-concrete-billable-outcomes-for-ai-agents.mdx): Learn to define concrete, defensible billable outcomes for AI agents. Move past usage metrics to simple, auditable events that price what customers value. - [Monetizing AI Agents: From Seats to Outcomes](https://www.thewitn.com/blog/strategies-for-monetizing-ai-agents-from-seats-to-outcomes.mdx): A decision framework for AI agent monetization. Choose between seat, usage, workflow and outcome-based models to align pricing with value. - [Why Your AI Product's Success Can Shrink Revenue](https://www.thewitn.com/blog/why-your-ai-product-s-success-could-shrink-your-revenue.mdx): Usage and token pricing punish AI products for getting better. Learn how outcome-based and hybrid billing align revenue with the value your agent delivers. ## Glossary - [Billable condition](https://www.thewitn.com/glossary/billable-condition.mdx): A billable condition is the machine-checkable boolean rule that decides when an AI agent's outcome becomes billable, evaluated against the events the system emits. - [Glossary](https://www.thewitn.com/glossary.mdx): Definitions of the core terms in AI agent monetization and outcome-based billing: outcomes, billable conditions, settlement periods, resolution layers and more. - [Outcome-based pricing](https://www.thewitn.com/glossary/outcome-based-pricing.mdx): Outcome-based pricing is a model where the customer is charged only when a predefined, verifiable business result is achieved, not for access or activity. - [Per-resolution pricing](https://www.thewitn.com/glossary/per-resolution-pricing.mdx): Per-resolution pricing charges for each successfully resolved support issue. The definition of resolution and the reopen window determine what it actually costs. - [Rate card](https://www.thewitn.com/glossary/rate-card.mdx): A rate card is a named pricing table that maps each task an agent performs to a price per unit, and is assigned to a customer to set what they pay per confirmed outcome. - [Resolution layer](https://www.thewitn.com/glossary/resolution-layer.mdx): A resolution layer is the billing infrastructure that turns an AI agent's event stream into settled, auditable billable outcomes: evaluating conditions, managing settlement and preserving evidence. - [Settlement period](https://www.thewitn.com/glossary/settlement-period.mdx): A settlement period is the time a billing system waits after the latest event before a provisional outcome becomes final, absorbing reversals like reopened tickets. - [Usage-based pricing](https://www.thewitn.com/glossary/usage-based-pricing.mdx): Usage-based pricing is a model where the customer is charged for measured consumption such as tokens, API calls or minutes, whether or not that consumption produced a result. ## Full content - [llms-full.txt](https://www.thewitn.com/llms-full.txt): every docs page and blog post in one markdown file ## Contact - Website: https://www.thewitn.com - Twitter/X: https://x.com/the_witn