Email me

Glossary / LLM APIs and AI

Glossary · LLM APIs and AI · checked Oct 24, 2026

RAG (retrieval-augmented generation)

Short answerRAG answers a question by first retrieving relevant passages from your own documents (usually by embedding search) and putting them in the prompt, so the model answers from that text instead of memory.

Why it matters

It is the standard way to make a chatbot answer about your docs, and it sets the cost: every answer pays for the retrieved context as input tokens.

Our number

1,000 RAG answers (6,000 tokens of retrieved context in, 500 out) cost from $0.50 on GPT-5 nano to $1,200 on o1-pro across the 67 listed models. Median: $17.00.

Go deeper on this site

Where it shows up here

It appears on 95 pages of this site: 93 LLM price pages, 1 developer, 1 Free tool. A few to start with:

Sources

Related terms

Up next

Go deeperCheapest LLM for RAG, ranked by costThe page on this site that does the most with this term.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ