LIVE · Friday 4 December

Cheapest LLM API for an AI Companion App in 2026: Monthly Cost at 1M, 10M and 100M Messages

Qwen3.7-Flash is the cheapest per million tokens for companion and roleplay chat, at about $2,560 for 10 million messages. But the resent chat history, not the price list, decides most of the bill.

By Nick11 min read

The cheapest LLM API for an AI companion or roleplay chat app in November 2026 is Alibaba's Qwen3.7-Flash, which costs about $2,560 a month for 10 million messages on a typical roleplay workload, against about $9,000 for Claude Haiku 5.5 or GPT-6 Luna and about $10,200 for DeepSeek's flash model off-peak. That lead holds only while each request stays under 32,000 tokens; in long chats it nearly disappears. At scale, the bigger saving comes from how much chat history the app resends: trimming it and capping reply length cuts a Haiku bill by about two-thirds, more than most model switches do.

Why a companion app's bill is mostly input

A companion app is stateless from the model's point of view. Every time a user sends a message, the app sends the character's persona, the conversation so far and the new message, and the model writes one reply. TokenReply, which tracks roleplay costs by model, puts it plainly: "Your app resends the whole chat with every message, so input is most of the cost." Its tracker assumes a typical message sends about 10,700 tokens and gets 700 back, and that in a long chat the input grows to about 38,000 tokens.

Two consequences follow. First, the input price matters far more than in a coding or question-answering app, because each message carries ten or fifteen times as many input tokens as output tokens. Second, most of that input is identical to what the app sent a moment earlier, which is what prompt caching is for. TokenReply estimates that about 64% of a typical message's input is billed at the cached price, falling to 41% in long chats. Cached tokens cost a tenth of the normal rate or less on most of the budget models, so the cached share moves the bill as much as the headline price does.

The default workload used here

All the figures below use one stated workload so they can be compared. The heavy profile follows TokenReply: 10,700 input tokens, 64% of them cached, and 700 output tokens per message. The lean profile is what a companion app looks like after deliberate context control: a 1,500-token persona, a 500-token running summary of older turns and about 2,000 tokens of recent conversation, for 4,000 input tokens, 75% cached, with replies capped at 300 tokens.

The cost of one message is the uncached input times the input rate, plus the cached input times the cache-hit rate, plus the output times the output rate. Where a provider charges extra to write tokens into the cache, the uncached input is billed at that write rate, because in a chat the new turn becomes the cached prefix of the next message. Anthropic's pricing page lists Haiku 5.5's five-minute cache write at $0.125 per million tokens against $0.10 base. OpenAI's caching guide says cache writes cost 1.25 times the uncached input rate for GPT-5.6 and later models; the guide doesn't name Luna, so this piece assumes Luna follows that rule. Without the premium, Luna's heavy-profile bill falls from $9,000 to about $8,040 at 10 million messages. Prices are as each provider's official page lists them on November 17, 2026. Readers can rerun the formula with their own token counts and the rates linked in the Sources.

What each model costs at 1M, 10M and 100M messages

Model and host (heavy profile) 1M messages 10M messages 100M messages
Qwen3.7-Flash, Alibaba (Singapore) $256 $2,560 $25,600
GPT-OSS 20B, Groq $756 $7,557 $75,570
Claude Haiku 5.5 or GPT-6 Luna $900 $9,000 $90,000
deepseek-flash, DeepSeek (off-peak) $1,018 $10,183 $101,834
GLM-5.3-Flash, Z.ai or Together $1,133 $11,332 $113,324
Gemini 3.1 Flash-Lite, Google $2,184 $21,842 $218,420

The rates behind the table explain the order. Alibaba's pricing page lists qwen3.7-flash at $0.03 per million input tokens and $0.13 per million output for requests up to 32,000 tokens. Its context-cache page sets explicit cache hits at 10% of the input price and writes at 125%, as general rules rather than a figure printed for this model, which gives about $0.003 cached. DeepSeek's page lists deepseek-flash at $0.15 for a cache miss, $0.003 for a hit and $0.60 output off-peak. OpenAI lists Luna at $0.10, $0.01 and $0.50; Anthropic lists Haiku 5.5 at the same three figures for prompts up to 100,000 tokens. Groq lists GPT-OSS 20B at $0.075 input and $0.30 output, with cached input at half price. Z.ai and Together both list GLM-5.3-Flash at $0.15, $0.03 cached and $0.50. Google lists Gemini 3.1 Flash-Lite at $0.25 input, $0.025 cached and $1.50 output, which includes thinking tokens; its explicit context cache also charges $1.00 per million tokens per hour of storage, which the table leaves out.

On the lean profile every bill shrinks by roughly two-thirds, and the order holds: Qwen3.7-Flash about $855 at 10 million messages, GPT-OSS 20B on Groq about $2,775, Haiku or Luna about $3,050, deepseek-flash off-peak about $3,390, GLM-5.3-Flash about $3,900 and Gemini 3.1 Flash-Lite about $7,750.

The pricing traps that change the winner

Context-length tiers. Alibaba bills every token in a request at the tier set by that request's total input. Above 32,000 tokens, qwen3.7-flash moves to $0.10 input and $0.40 output. On TokenReply's long-chat profile of 38,000 tokens with 41% cached, Qwen costs about $32,400 per 10 million messages, against about $33,100 for Haiku or Luna and about $24,800 for GPT-OSS 20B on Groq. A companion app that lets chats grow without limit loses most of Qwen's advantage the moment conversations cross 32K. Even a minority of long chats dominates the bill: at 5 million messages a month, with 80% on the typical profile and 20% on the long-chat profile, Qwen3.7-Flash costs about $4,260 instead of $1,280, and the long chats account for about three-quarters of it. Haiku 5.5 has a similar cliff at 100,000 tokens: Anthropic's page lists $0.50 input and $2.50 output above it, and says the whole request pays the higher price, cache reads included. OpenAI's higher Luna tier starts at 272,000 tokens, beyond where most companion chats go.

DeepSeek's peak hours, by where users live. DeepSeek's page sets peak hours at 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, when every rate doubles. In November that first window is 8 to 11 pm on the US East Coast, the whole evening there, and the second is 7 to 11 am in Central Europe and 2 to 6 pm in Beijing. US West Coast evenings fall off-peak. If 40% of an East Coast app's weekday traffic arrived between 8 and 11 pm, about 29% of all messages would be billed at peak, and the heavy-profile bill would rise from about $10,200 to about $13,100 at 10 million messages, making deepseek-flash dearer than Haiku or Luna.

Cache lifetime and minimum length. A cache only pays if the user's next message arrives before the cached prefix expires. Anthropic's default lifetime is five minutes, refreshed free on each use; a longer one-hour write costs $0.20 per million on Haiku 5.5. Alibaba's explicit cache also lasts five minutes. OpenAI's default for GPT-5.6 and later is 30 minutes. Groq's cache expires after two hours without use, and DeepSeek says its cache is usually cleared "within a few hours to a few days." A companion user who pauses for ten minutes between messages hits a warm cache on DeepSeek or Groq and a cold one on Haiku's default setting. How this changes the cached share for any particular app has not been measured; it is the first thing to log. Minimums matter less here, because companion prompts are long: Haiku 5.5 caches from 512 tokens, OpenAI and Alibaba from 1,024, and Groq from 128 to 1,024 depending on the model.

Same model, different host. Open weights do not mean one price. GPT-OSS 120B costs $0.15 input and $0.60 output on Groq, Fireworks and Together alike, but Fireworks lists cached input at $0.015, Groq's half-price rule gives $0.075, and Together's page lists no cached rate. On the heavy profile that is about $11,000, $15,100 and $20,300 per 10 million messages. DeepSeek's own V4.1 Flash model costs twice as much on Fireworks and Together, at $0.30, $0.006 and $1.20, as on DeepSeek's off-peak rate.

The lever that beats switching models

Switching from Haiku 5.5 to Qwen3.7-Flash on the heavy profile saves about 72%. Controlling the context on Haiku alone saves nearly as much, and the two stack.

Step on Claude Haiku 5.5, 10M messages a month Monthly cost
Whole history resent, no caching $14,200
Persona and history cached (64% hit rate) $9,000
History trimmed to 4,000 tokens (75% cached) $5,050
Replies capped at 300 tokens $3,050
Plus a summary call every 20 messages $3,675

The summary line assumes the app asks the same model to compress older turns once every 20 messages, sending 8,000 tokens and getting 500 back. That adds about $625 a month on Haiku, $183 on Qwen3.7-Flash and $750 on deepseek-flash. Put the stable parts first: persona, then summary, then recent turns, so the cached prefix survives each new message.

For a DeepSeek user, the comparison is starker. Trimming the heavy profile to the lean one takes deepseek-flash from about $10,200 to about $3,400 a month; switching to Haiku without trimming saves only about 12%. And for long chats, where TokenReply's 38,000-token profile costs about $33,100 on Haiku, capping context at the lean profile cuts the bill by about 90%.

The cost of this lever is quality. Whether a 500-token summary keeps a character's memory and voice as well as the full transcript has not been measured, by any provider or tracker. It has to be tested on the app's own conversations.

When a small model of your own wins

The other way to cut volume is to stop paying for a general model to read a long persona on every turn, and instead serve a small model trained on the app's own conversations, so that less of the persona has to be spelled out in each prompt. Training is cheap: Together lists LoRA fine-tuning for models up to 16 billion parameters at $0.34 per million tokens, so 50 million tokens of conversation costs about $17. Serving is the real cost. Together lists a dedicated H100 at $5.49 an hour, about $3,950 for a 30-day month whether busy or idle; Fireworks lists an H100 at $8.00, about $5,760.

On the heavy profile, one Together H100 matches the Haiku or Luna bill at about 4.4 million messages a month, and the Qwen3.7-Flash bill at about 15.4 million. Against Qwen on the lean profile it needs about 46 million. Whether one H100 can serve that much traffic, with 10,700-token prompts and evening peaks, has not been measured, and neither has whether a tuned small model holds a persona better than a prompted general one. On these list prices, a single dedicated GPU cannot undercut Qwen3.7-Flash below about 15 million heavy-profile messages a month; well above that, a specialised model becomes worth testing.

Parsec, a small language model lab, sells this as a managed service: it traces production requests, builds datasets and evaluations the customer approves, post-trains models on that traffic and serves them on a shared cluster, sending requests the model is not confident about to a closed frontier model. Its routers comparison page claims "savings on real workloads" of 60% and a first post-trained model in about four weeks; neither figure comes with a stated workload or baseline. Its inference page says customers can download the weights, but publishes no price, and its only code sample uses the Anthropic SDK.

Non-price fit: content rules and data terms

For many companion apps the policy check removes options before price does. Anthropic's Usage Policy, effective November 12, 2026, prohibits sexually explicit content including "erotic chats," forbids sexualising minors "including in fictional settings or via roleplay," and requires consumer chatbots to tell users they are talking to AI. Haiku 5.5 is therefore a fit only for apps that stay non-sexual. OpenAI's API data page does not address adult content; its usage policies govern that and should be read before launch. DeepSeek's open-platform terms are governed by the law of mainland China, and its privacy policy says it stores personal data in China.

On training: Anthropic's commercial terms say it "may not train models on Customer Content," OpenAI says API data is not used for training unless the customer opts in and keeps abuse-monitoring logs for up to 30 days, Google's pricing page marks paid-tier data as not used to improve its products (the free tier is), and Fireworks lists zero data retention as its default.

How to choose

Before committing, replay about 1,000 real conversations, sampled to include long chats and evening traffic, through the top two or three candidates. Log cached and uncached tokens per message, the share of requests above 32K, and the time of day in UTC. Have reviewers score persona consistency and refusals blind. Then rerun the formula above with the logged numbers rather than any tracker's.

Bottom line

For a non-sexual companion app that keeps every request under 32,000 tokens, Qwen3.7-Flash is the cheapest listed option at every volume. If a Western lab's contract matters more than the last dollar, Haiku 5.5 and GPT-6 Luna cost the same on list prices, and if Luna follows OpenAI's 30-minute default cache it suits users who pause between messages; Haiku is out for erotic roleplay. DeepSeek's flash model fits apps whose users are mostly off its peak hours, which excludes US East Coast evenings. GPT-OSS on Groq is the cheapest option with portable open weights. Whichever you pick, cap context and output first: on these prices it saves about as much as the cheapest model switch, it stacks with any switch, and it is the only lever that also protects you from the long-chat tiers.

Sources

More in Products

All Products →