Manuscript Offprint

arXiv:2610.11333

TokenBank: Financial Infrastructure for AI Services

Cary Chang, Jialin Zhou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

AI services incur inference costs during execution, while the revenue needed to cover those costs may arrive later. Changing API prices, limited upfront capital, and service failures can therefore constrain an operator's ability to sustain or expand a service. Reducing per-request costs addresses only part of this problem: operators also need to plan future spending, fund execution before revenue arrives, and obtain compensation for specified losses. Supporting these needs requires clear agreements across services with different pricing and execution conditions. These agreements must distinguish the right to consume a service from the right to receive payments, define obligations despite uncertain costs and income, and specify which failures qualify for compensation and how much can be paid. We present TOKENBANK, a financial infrastructure that represents these commitments through structured contracts. It supports service-consumption rights, agreements that settle API-price differences in cash (forwards), financing through limited rights to future service revenue, and protection claims for specified service failures. Each contract records its participants, covered services, validity period, ownership, fulfillment conditions, and settlement rules. We evaluate TOKENBANK through replay of 899,441 API requests, real model-driven agent execution, and contract API tests. In a zero-discount rising-price resampling scenario, forwards reduce mean expenditure by USD 304.88, while its standard deviation increases from USD 1,152.45 to USD 1,190.82. A controlled replication with five portfolios per capital condition finds mean contribution differences between financing and self-funding of +1.0635, -0.1406, and -0.2962 experimental USD under low, baseline, and ample capital, respectively. The evaluation distinguishes contract correctness from economic effectiveness under declared economic and failure assumptions; supplier invoices and commercial revenue are unavailable. ab^{ab}

a^{a}https://github.com/Nexilume-AI/nexus-cloud

b^{b}https://cloud.nexilume.com

∗^{*}Correspondence: research@nexilume.com

Classification: Research Manuscript

1 Introduction

Large language models are increasingly delivered through APIs and embedded in Agents, applications, and automated workflows. These systems may call multiple Providers, switch among models, and accumulate substantial inference costs over long-running tasks. As their use expands, model inference is becoming an

NX-2026-002

economic resource as well as a computational one: Agent operators purchase API capacity, Providers monetize model access, and applications turn model calls into downstream revenue. Managing the associated cost, financing, revenue, and service risk is therefore becoming increasingly important.

Most existing AI infrastructure, however, focuses on making model execution cheaper and more reliable. Caching and batching reduce repeated computation, model routers select lower-cost models, and retries or failover recover failed requests. Systems such as FrugalGPT and RouteLLM show that better model selection and request execution can substantially reduce inference cost [6, 11]. Yet these techniques mainly optimize how requests are executed. They do not specify how heterogeneous AI services should be contracted, how future API spending can be hedged, how future Agent or Provider revenue can finance current usage, or how losses from unrecovered service failures should be shared.

These questions become increasingly important as Agents move from short-lived demonstrations to continuously running services. First, AI services are not interchangeable. Different providers offer different models, capabilities, prices, latency, reliability, and usage conditions. Therefore, a contract for “AI service” must specify what service is promised, by whom, for what period, and under what conditions it is considered delivered. Second, future API cost is uncertain. An Agent may know that it will need a large amount of inference next month, but it does not know what that inference will ultimately cost. Third, payment and revenue often occur at different times. An Agent may need to pay API bills before receiving money from its own users. If part of its future revenue could be contractually promised to a financier, that future income could potentially support today’s API expenditure. Finally, API failures can still create monetary losses after retries and failover have been attempted. A failed request may lead to a refund, a lost customer transaction, or other business loss. Technical recovery determines whether the request can still be completed; a separate mechanism is needed to determine who pays for the loss when it cannot.

Financial mechanisms for computing services already have substantial precedents. Service agreements describe what providers promise, cloud forward contracts manage future price risk, revenue-based financing exchanges current funding for future payments, and outage protection compensates eligible failures [2, 7–9]. These mechanisms provide a starting point for AI-service markets. Our question is how to specify their different obligations and connect their payments to the services, prices, revenue, and failures they concern. This connection matters because the same operating workload affects several contracts: changing models changes API expenditure, available funding affects how much demand can be served, and recovery changes the losses remaining after a failure.

Applying these mechanisms to AI services raises four design challenges. Figure 1 summarizes how the four challenges extend beyond request execution. First, contracts must distinguish what is being promised and what evidence determines payment. Access to a model, a payment based on a price difference, a share of revenue, and compensation for failure are different rights, even when they concern the same service. Second, price contracts must account for differences between planned and actual API spending. Changes in model selection or request volume can leave a contract poorly matched to the eventual bill. Third, revenue financing must connect additional funding to both recorded receipts and the income retained by each participant. Serving more requests is beneficial only when the additional earnings outweigh the associated costs and revenue sharing. Fourth, protection must distinguish service recovery from compensation. A contract must specify which remaining failures qualify, how much is payable, and which funds are available to cover the payment.

We present TOKENBANK, a financial market infrastructure for AI services that addresses these four problems. First, to describe precisely what is being bought or sold, TOKENBANK defines typed service commitments. Each commitment records the service being promised, the parties involved, the period in which it is valid, the conditions for successful delivery, and how payment is determined. Depending on the product, such commitments can be created through direct agreements, requests for quotation, public listings, or order matching. Second, to reduce uncertainty in future API spending, TOKENBANK supports cash-settled forward contracts. An operator can choose how much future API expenditure to cover, agree on a reference price in advance, pay the associated fee, and settle the price difference in cash when the contract expires. Third, to connect future revenue with current financing, TOKENBANK supports revenue-right contracts, through which an Agent or Provider can promise a defined share of future revenue in exchange for capital today. These contracts grant rights only to the specified revenue and do not represent ownership of the underlying company, model, or service. Fourth, to cover losses that remain after technical recovery, TOKENBANK provides SLA-like protection contracts. These contracts specify which service failures are eligible for compensation, how much loss is covered, how much the buyer pays for protection, and how reserves are used to make payments. Across these products, TOKENBANK records ownership, contract status, service and revenue events, and the resulting transfers of money, providing a common basis for issuing, transferring, and settling AI-service contracts.

Research Manuscript

NX-2026-002

Figure

Figure 1. Caching, batching, model routing, and failover improve request execution. TOKENBANK complements these approaches with service commitments that specify what is purchased, API-price forwards, revenue-right financing, and protection against covered service failures. These mechanisms address the financial consequences of AI-service use rather than replacing execution optimization.

We evaluate TOKENBANK through request-level API replay, real Qwen-driven Agent execution, and actual contract APIs. The separate real-model groups comprise a ten-trial retail baseline, 70 retail intervention cases, 84 initial controlled cases, 624 controlled repetition and boundary cases, and a prospectively fixed 540-case financing-capital replication. Their workloads and denominators remain distinct. For service commitments, we verify ownership, fulfillment and settlement, including an observed rounding-carry defect and its subsequent correction. For forwards, paired price and demand scenarios identify favorable and unfavorable expenditure and risk outcomes; settlement is real, but future indices remain assumed. For revenue-right financing, repeated portfolios and freshly executed capital, receipt and payment-delay boundaries show that additional capital can enable service, while revenue sharing can outweigh that growth. For service protection, local recovery changes completed service; protection redistributes eligible remaining loss subject to premiums, coverage and funded reserves. The shared upstream limits the recovery claim, and commercial prices, customer receipts and credit redemption remain explicit assumptions. The unified evaluation therefore reports both useful operating conditions and adverse outcomes.

This paper makes the following contributions:

• Contractible AI-service claims. We introduce a typed representation that makes heterogeneous AI services explicit economic claims with defined participants, service attributes, validity periods, fulfillment conditions, and settlement rules. The representation distinguishes rights to consume AI services from forward contracts, revenue rights, and service-protection claims, providing a common contractual foundation for their issuance, transfer, and settlement.

• Hedging future API expenditure. We design and implement cash-settled forward contracts that allow Agent operators to hedge a specified portion of future API-price exposure. Our request-level replay evaluates how hedge ratio, price movements, contract fees, and basis mismatch affect realized expenditure, showing when forward contracts reduce cost and when the hedge becomes unfavorable.

• Revenue-right financing for AI services. We design contractual revenue rights that allow Agents and Providers to exchange a bounded share of future revenue for current capital, without representing these rights

Research Manuscript

NX-2026-002

as ownership of the underlying model, service, or company. Our economic replay evaluates how additional capital, served demand, and revenue sharing jointly affect participant contribution profit, identifying when financing-enabled growth is sufficient to offset the reduction in retained revenue.

• Financial protection against service failures. We design SLA-like protection contracts that compensate eligible losses remaining after technical recovery, using explicit failure conditions, coverage limits, premiums, and dedicated reserves. By evaluating failover and financial protection separately, we show that failover improves request recovery, whereas protection determines how the remaining economic loss is distributed among participants.