Cost Per Generation
Research brief — desk research, not a decision

Cost per generation

Three questions for the IONOS AI App & Sitebuilder prep: where can we out-position Lovable, how do we keep the token math honest, and which models are even in scope. Nothing here is a recommendation — you asked to see everything before anyone picks.

Prepared Sept 17, 2026 For IONOS PM AI App & Sitebuilder prep Status no model chosen
01 — Competitor read

Lovable: where it's strong, where it opens a door

Lovable is the closest thing to a category leader in AI app generation right now. It's not weak — it's optimized for a specific 80%, and it says so implicitly by pushing power users elsewhere for the last 20%.

Strengths

  • Fastest path from idea to a clickable prototype — hours, sometimes minutes
  • Full-stack by default via Supabase: auth, database, and backend wiring come with the generation, not just a UI shell
  • Clean, competent default UI — skips the boilerplate of buttons, forms, layout
  • One flow from generation to live deployment, no separate publish step

Weaknesses

  • Falls apart on original UI, custom API integrations, and complex backend logic — the "last 20%" pushes serious users out to Cursor or Claude Code
  • Credit spend is opaque — users report not knowing what a given action cost until after it's gone, making monthly budgets a guess
  • Reported freezing and reliability issues under load — risky for anyone treating it as their only build environment
  • Hard message/complexity limits — complex logic trips the AI, and power users hit the ceiling

Leverage points — ranked by how directly they turn a weakness into a feature

01
Targets: credit opacity

Show the price before the person pays it

Lovable's most repeated complaint is not knowing what a credit bought. A live, pre-commit estimate — "this edit will cost ~2 credits" before the user clicks generate, not a balance that just goes down — turns the JD's "token economics as a core product parameter" into a visible trust feature, not just a backend cost model.

02
Targets: the last-20% cliff

Don't out-code it — build the exit ramp

Lovable is explicitly strongest at 0→80%, then hands users off to a real IDE. IONOS doesn't need to win the "complex custom logic" fight — it needs the 80→100% stretch to be survivable inside the product: a clean code export, or a documented handoff path to a developer, rather than pretending the AI can finish everything.

03
Targets: reliability under load

Let infrastructure be the differentiator it already is

IONOS's core business is hosting and uptime — the exact muscle needed to fix "it freezes mid-generation." A builder that leans on "99.99% uptime" messaging only earns that claim if the builder itself doesn't stall. This is a genuine structural advantage over an AI-first startup with no infrastructure legacy.

04
Targets: hard complexity limits

Degrade gracefully instead of failing hard

Instead of a wall when a request is too complex, route it to a stronger model automatically and ask for confirmation if it costs materially more — flagged plainly, not silently charged. Same trust-cue instinct as "AI-drafted, review before publishing," applied to cost instead of content.


02 — Token economics

Five levers, in the order they pay for themselves

Case studies stacking all five report 60–90% cost reduction with no measured quality loss. This isn't "use a cheaper model" — it's an engineering discipline with its own tooling market.

1

Prompt caching

Cache the stable parts of a prompt — system instructions, the brand/style guide, the page's existing structure — so a small edit only bills for what actually changed.

~90% off cached input (Anthropic) · ~50% (OpenAI)
2

Model routing / cascading

Try a cheap, fast model first for routine work; escalate to a frontier model only when the task actually needs it. A common split is roughly 70% cheap / 20% mid / 10% frontier.

60–80% cost reduction
3

Context engineering

Every token sent is billed, including the ones that don't help. Summarize prior state instead of replaying full history; don't resend the whole page for a one-line copy edit.

40–60% of typical agent spend is low-value context
4

Output length control

Ask for a patch, not a rewrite — structured diffs or JSON instead of "regenerate the whole file." Output tokens cost several times more than input tokens on nearly every provider, so this lever moves cost disproportionately.

output tokens ≈ 4–8× input price, most providers
5

Monitoring & attribution

Track cost per generation type so credit pricing can be set honestly — the direct fix for Lovable's "I can't predict my bill" complaint. Tooling lanes: AI gateways (Portkey, Helicone, LiteLLM), auto-routers (OpenRouter, Not Diamond), and observability/semantic caching (Langfuse, GPTCache).

makes the other four measurable

03 — The full model landscape

Every candidate worth knowing about

Grouped by tier, not by preference. Filter by tag to narrow the list — nothing here is pre-selected.

On these numbers: pulled from third-party rate-tracking sites in September 2026, not each provider's own pricing page — a few figures conflicted across sources and are marked † with "confirm" in the notes. Treat as directional for comparison, verify before committing real budget math. Open-weight models don't have one fixed price — cost depends on which inference host runs them, or your own GPU cost if self-hosted.
ModelProviderInput $/MOutput $/MContextNotes
Frontier
Claude Fable 5.1Anthropic††—Adaptive-reasoning flagship; leads the reported coding index (81.6). Pricing not published in this pass — confirm with Anthropic.frontiercoding
Claude Opus 5Anthropic$5.00$25.00200KFigure conflicts with an older Opus-tier quote (~$15 in) elsewhere — confirm current rate.†frontier
GPT-6 AstraOpenAI$10.00$50.00—Newest OpenAI flagship, released Sept 3, 2026.frontier
GPT-5.5OpenAI$5.00$30.00—Prior-gen flagship, still in the lineup below GPT-6 Astra.frontier
Gemini 3.1 ProGoogle$2.00$12.00200K+Rate doubles ($4/$18) past 200K context — a real cliff for long documents.frontiermultimodal
Grok 4.5 / 4.3xAI††—Both also double past a long-context threshold; base rate not confirmed in this pass.†frontier
DeepSeek V4-ProDeepSeek††—Sparse MoE, 1.6T total / 49B active params. Pricing not confirmed in this pass.frontieropen-weight
DeepSeek V3.2DeepSeek††—Called out specifically for competitive coding, long-context, tool-integrated use.coding
Mistral Large 3Mistral††—Sparse MoE, 675B total / 41B active. Pricing not confirmed.open-weight
Qwen3 235B-A22BAlibabahost-dep.host-dep.—MoE, 235B total / 22B active. Open-weight — price depends on inference host.open-weight
Balanced / mid-tier
Claude Sonnet 5Anthropic$2.00$10.00200KGood default for the "plan" step — strong reasoning without frontier pricing.mid
Gemini 3 FlashGoogle$0.50$3.00—Google's budget-friendly mid tier.mid
Kimi K2.7 CodeMoonshot$0.74$3.50262KCoding-dedicated product line, long context.coding
Command ACohere$2.50$10.00—Cohere's flagship tier.mid
Llama 4 MaverickMetahost-dep.host-dep.—Sparse MoE, 400B total / 17B active. Open-weight.open-weight
Small & cheap — high-volume, routine tasks
Claude Haiku 4.5Anthropic$1.00$5.00200KMatches Sonnet 4 on coding/agent tasks at a fraction of the cost — a strong default for per-section fill work.cheap
GPT-5 MiniOpenAI$0.25$2.00—cheap
GPT-5 NanoOpenAI$0.05$0.40—Cheapest model OpenAI lists publicly.cheap
DeepSeek V4-FlashDeepSeek$0.14$0.28—Cheapest listed API found in this research (Aug 2026).cheap
Command R (08-2024)Cohere$0.15$0.60—cheap
Command R7BCohere$0.0375$0.15—Smallest Command tier — extremely cheap for simple classification work.cheap
Grok 4.1xAI$0.20$0.50—cheap
Llama 4 ScoutMetahost-dep.host-dep.—Smaller MoE than Maverick, open-weight.open-weight
Ministral 8BMistralhost-dep.host-dep.—Roughly on par with GLM-4.7 Flash on simple tasks.open-weight
GLM-4.7 FlashZ.aihost-dep.host-dep.—Open-weight, competitive small/efficient tier.open-weight
Phi-4Microsofthost-dep.host-dep.—Built for small-scale/edge deployment — near-zero marginal cost if self-hosted or run on-device.open-weight
Nova family (Micro/Lite/Pro/Premier)Amazon††—Not confirmed in this pass — check AWS Bedrock pricing directly if IONOS infra touches AWS.†
Coding-specialized
CodestralMistral$0.30$0.90—FIM completions and chat-based code generation.coding
Codex lineOpenAI††—Dedicated coding models; pricing tied to underlying GPT tier, not separately confirmed.†coding
Qwen3 CoderAlibabahost-dep.host-dep.—Open-weight coding line.codingopen-weight
DevstralMistral††—Coding-agent-focused; pricing not confirmed in this pass.†coding

04 — Where each model could actually fit

Candidates per feature, not a decision

Shortlist only — pick nothing yet

If the builder runs on a plan-then-fill architecture, each step has different requirements — no reason to pay frontier prices for a step a $0.05-input model can handle. Want to feel this out yourself? Try the drag-and-drop cost estimator →

Feature / stepWhat it actually needsCandidates, cheap → frontier
Brief parsing & category routingFast, cheap, simple classificationCommand R7B → GPT-5 Nano → Claude Haiku 4.5 → DeepSeek V4-Flash
Layout / plan drafting ("plan" step)Structured reasoning, doesn't need frontierGemini 3 Flash → Claude Sonnet 5 → Kimi K2.7 Code → Qwen3 235B
Section copy drafting ("fill" step, run per section)Solid writing quality, cheap enough to call many times per pageClaude Haiku 4.5 → GPT-5 Mini → Llama 4 Maverick → Mistral Large 3
Code / component generation (App features — booking, dashboards)Strong coding + tool use, worth paying more forDeepSeek V3.2 → Kimi K2.7 Code → Qwen3 Coder → Codestral → Claude Fable 5.1
Chat-based edit requests (targeted regeneration)Fast, cheap, good at diffs — not full rewritesClaude Haiku 4.5 → GPT-5 Mini → Grok 4.1
Screenshot / image-to-spec understandingGenuinely multimodalGemini 3.1 Pro → GPT-5.5 → Claude Opus 5 / Fable 5.1
Factual-claim / quality flagging before publishCheap, reliable structured classification — no creativity neededCommand R7B → GPT-5 Nano → Claude Haiku 4.5

That last row is the "AI-drafted — review before publishing" cue from the work sample, made concrete: it's a cheap classification call, not a creative-writing one — no reason to spend frontier money confirming whether a phone number looks like a phone number.