NEWS

7 min read

AI features in mobile apps turn into losses with exactly the most engaged user

AI features in mobile apps turn into losses with exactly the most engaged user
Image: Redação iMasters
News
Reading
7 min
Tables
1
In short

An InfoQ article shows how per-token billing turns the engagement metric, once synonymous with success, into a financial risk for those integrating generative AI on mobile.

Por quase uma década, o modelo de custo de um app mobile foi estável... [translated below]

For nearly a decade, the cost model of a mobile app was stable: you pay to acquire the user, pay almost nothing to serve them, and the rest is margin. Every retention lever (streak, push notification, daily reward) starts from the premise that more engagement always means more value. An article published on InfoQ on December 2, 2026, written by architect Omer Dogan, argues that per-token-billed inference quietly breaks that premise, and proposes treating cost per interaction and latency ceilings as architecture decisions, made before writing the integration, not adjusted after launch.

The problem: engagement turned into cost

When generative AI is billed per token, per image, or per second of audio, the cost of serving starts scaling with usage. A conversational feature that costs a fraction of a cent per turn is nearly free for someone who opens it once a week, but turns into real money for someone who uses it 40 minutes a day. The engagement curve and the margin curve start pointing in opposite directions.

The article illustrates this with hypothetical numbers: a feature that costs $0.004 per interaction, on a base that monetizes $0.90 per monthly active user. The light user (60% of the base) yields a positive margin of $0.59. The heavy user (10% of the base, with 700 interactions a month) already closes at a loss of $1.20. The overall average looks healthy, but it hides the fact that the most engaged decile, exactly the one that generates word of mouth, is served at a loss.

Chart shows revenue and inference cost per user based on monthly engagement, with a positive margin of +$0.59 for light users, +$0.79 for regular users, and a loss of -$1.20 for heavy users after the inversion point at ~380 interactions/month
Chart shows revenue and inference cost per user based on monthly engagement, with a positive margin of +$0.59 for light users, +$0.79 for regular users, and a loss of -$1.20 for heavy users after the inversion point at ~380 interactions/month. Reprodução: infoq.com.

The moment the users you most want to keep become the users you can least afford.

Omer Dogan, author at InfoQ

The author calls this phenomenon cost inversion, and reports that the first sign wasn't the bill itself, but its slope: inference spend was growing faster than the active user base, about four months after launch. The problem tends to show up one or two quarters after launch, when it's already too late for a simple fix.

Two ceilings before writing the integration

The article's central recommendation is to derive a cost-per-interaction ceiling from revenue per user, not from the price advertised by the model provider. In the cited example, if monthly revenue per user is $0.90 and the feature can consume a quarter of that, the budget is $0.225 per month. Dividing by 90th-percentile usage (300 interactions), the ceiling becomes $0.00075 per interaction, about five times lower than the example's actual cost ($0.004). Knowing this before coding already signals that calling the model on every request won't add up.

The second ceiling is latency, derived from abandonment data the product likely already has (search, media loading). The article cites Jakob Nielsen's response time limits: about one second keeps the user in their flow of thought, and about ten seconds is the limit for holding attention. The suggested pair for a conversational feature is 1.5 seconds until the first visible response and 8 seconds until a useful completion. Without these numbers set, the timeout defaults to the HTTP client's default (60 seconds in iOS's URLSession), and nobody chose that value on purpose.

The decision table

With both ceilings fixed, every model-based interaction should be classified into one of four columns before being implemented:

Decision flowchart that classifies an AI interaction into precompute, cache, on-device execution, or compute fresh, based on the predictability, personalization, and time sensitivity of the output
Decision flowchart that classifies an AI interaction into precompute, cache, on-device execution, or compute fresh, based on the predictability, personalization, and time sensitivity of the output. Reprodução: infoq.com.
ColumnMeaningCost profileLatency profile
Compute freshCalls the model at request time, with full contextFull price, every timeDepends on the provider
CacheServes an already computed result when inputs matchNear zero on a hitMilliseconds
PrecomputeGenerates ahead of time for predictable inputsBatch price, amortized—
On-deviceRuns a smaller model on the deviceZero marginal cost, fixed engineering and battery costPredictable, limited to the device

The practical rule is that compute fresh isn't the default: only an interaction that is unpredictable, personalized, and time-sensitive belongs in that column. In the article's composite example, half the requests for a generation feature fell into a few hundred distinct input formats, and started being precomputed in a batch overnight; another portion became cache hits within the same session. Compute fresh traffic shrank to less than a third, with no loss of quality.

The privacy risk hidden in the cache

The article describes a common failure: a request that looks generic ("summarize this") may carry user-specific context that the client attached without the cache layer's knowledge. If the cache key ignores that context, user A gets user B's response. The suggested fix is to build the key from the full set of inputs that influence the output, always separating a shared bucket (task, model version, language) from a personal bucket (user ID, preferences, recent history).

For those operating in Brazil, this detail isn't just engineering: it's LGPD (Brazil's data protection law). A response leak between users caused by a poorly designed cache key is a data incident, exactly the kind of failure the law requires documenting and, depending on the case, reporting to ANPD (Brazil's data protection authority). It's worth reviewing cache key construction with the same rigor used to review a database query handling personal data.

What the client does while waiting

The article treats a slow response and a missing response as the same event from the user's point of view: the session ends. That's why timeout is a product decision, not an infrastructure setting. For generative features, streaming is pointed to as the highest-leverage technique: it swaps the "time to completion" ceiling for "time to first token," typically an order of magnitude smaller. A user who sees words appearing in 1.2 seconds will happily wait for a 7-second completion; the same user staring at a spinner for 7 seconds has already left.

The article also describes the cost of a common mistake: an unbounded retry loop, embedded in an app already in production, multiplied spending during a provider slowdown, in the exact week successful responses were dropping. Since distributed apps don't get an immediate hotfix, the fix required a server-side killswitch. The practical lesson: budget guards and circuit breakers belong on the backend or behind remote config, never only in client code, because an old version of the app keeps running until the user updates it, which for some never happens.

Measuring per user, not by average

The provider's bill arrives consolidated and monthly; it says how much was spent, not on whom or in which code path. The article recommends logging, on every call, an anonymized user identifier, the app version, the executed path code, units consumed, latency to first token and to completion, and the outcome (success, timeout, provider error, budget denied). From there, the relevant dashboard is cost per user segmented by engagement decile, with an alert when the heaviest decile increases its share of total spend, not when total spend rises (which, according to the article, usually just means the base grew).

Where the frontier is heading

The article situates this debate at a moment when on-device inference is maturing: Apple's Foundation Models framework exposes the on-device language model to third-party apps starting with iOS 26, on devices compatible with Apple Intelligence; Google distributes Gemini Nano via ML Kit GenAI APIs, running on the AICore system service; and smaller open models already run via Core ML, MediaPipe, and ExecuTorch on hardware a good share of users already carry.

But on-device is cheap, not free: marginal cost drops to zero, but fixed costs appear for device coverage (an older phone, still a meaningful share of the base in Brazil, may lack the required hardware or operating system version), battery, app size, and iteration speed, since swapping an embedded model isn't a server deploy on a Tuesday afternoon.

The pattern the article calls durable is hybrid routing: classifying, extracting, and doing short rewrites on the device itself, and reserving heavier generation for the remote model. For Brazilian teams, this has an extra component the article doesn't address directly, but that follows from the analysis itself: API pricing is usually quoted in dollars, and the local currency's exchange-rate swings against the dollar directly affect the margin described in the cost inversion table, making the cost-per-interaction ceiling a figure that needs revisiting more often than in a market with a stable currency.

Translated from the Brazilian Portuguese original · Read the original