Skip to main content

What does it cost to run a research platform with LLM API calls for 500 students over a semester?

For 500 students over a 15-week semester, the LLM API bill usually lands between $1,000 and $4,000 at mid-tier model rates. Estimate it from sessions, exchanges and prompt size, then budget about twice that figure to cover pilot testing, retries and price changes. The engineering around the calls costs more than the calls.

A worked token estimate

API cost is tokens times price. Count the calls the study will make, estimate the tokens each call sends and receives, then multiply by the provider’s current per-million-token rates. The assumptions below describe a typical tutoring-style study; replace each with your protocol’s numbers.

Assumption Value
Students 500
Weeks of use 15
Sessions per student per week 2
Exchanges (API calls) per session 10
Total calls 150,000
Input tokens per call 2,000 (1,200 fixed system prompt and instructions, 800 conversation history and student message)
Output tokens per call 300
Total tokens 300 million input, 45 million output

For prices we assume $3 per million input tokens and $15 per million output tokens, with cached input billed at $0.30 per million. These are illustrative mid-tier rates, not a quote: providers change prices and models several times a year, so check the provider’s pricing page the week you write the budget and cite the date.

Token type Tokens Without caching With prompt caching
Fixed prompt (input) 180M $540 $54
Variable input 120M $360 $360
Output 45M $675 $675
Semester total 345M $1,575 $1,089

Output is the largest line once caching is on, because output tokens cost several times more than input. Capping response length in the prompt is the cheapest saving after caching.

What moves the number

  • Model choice. A frontier model priced five times higher makes that arm cost five times more. A small model can cut the bill by most of its size, if it holds up on your task.
  • Conversation history. Resending the whole session with every call makes input grow with each exchange. Ten exchanges with full history can double the input estimate; summarising or truncating history keeps it flat.
  • Study arms. A design comparing prompting strategies or models runs each arm at its own price. Estimate each arm separately and add them.
  • Generated content. If the platform also generates problems, feedback or rubrics in batches, count those calls too. Batch interfaces at many providers bill at a discount for work that can wait hours.
  • Actual use. Students rarely use a tool exactly as the protocol says. Some never log in, some use it daily; the first two weeks of logs tell you which way you are drifting.

Caching and rate limits

Prompt caching

Most major providers discount input tokens that repeat an identical prefix, such as the system prompt and task instructions. In the estimate above that is 60% of input, and caching cut the bill by about 30%. The prefix must be byte-for-byte identical, and caches expire after a short idle period, so put fixed text first and per-student text after it.

Some providers charge a small premium to write a cache entry. At 150,000 calls spread over class periods, that premium is minor next to the read savings.

Rate limits

The semester total is not the risk; the class period is. If 200 students are online at once and each sends one message a minute, that is 200 requests and about 400,000 input tokens per minute, which can exceed the default limits on a new API account.

  • Request a limit increase from the provider several weeks before the pilot, not the week of.
  • Queue requests and retry 429 responses with backoff, so a spike slows answers instead of failing them.
  • Log every rate-limit error with a timestamp; a student who waited 40 seconds had a different condition than one who waited two.

How to write the budget line

Program officers and grants offices want to see the arithmetic. Put the assumptions table in the budget justification and size each line from it.

Line What it covers How to size it Example
API usage, study Calls during the study period The worked estimate $1,575
API usage, development and pilot testing Prompt iteration, teacher walk-throughs, load tests 20–30% of the study estimate $470
Contingency Heavier use, retries, price changes 50–100% of the study estimate $1,180
API subtotal All three lines above Sum about $3,225
Engineering Orchestration layer, logging, queueing, rate-limit handling Hours times rate Separate line

We budget the uncached figure, not the cached one, so caching becomes margin rather than an assumption the study depends on. Hosting and log storage for a platform this size is a separate, usually small, monthly line in general market terms.

Engineering is the larger cost. At $85 an hour, an orchestration and logging layer that takes 60–120 hours is $5,100–$10,200; the range depends on how many study arms the platform routes between and how much the logs must capture.

What the funder and the IRB will look at

  • A pinned model version. Use a dated model identifier, not an alias that the provider can update mid-semester. A silent model change is a confound in an efficacy study.
  • A log of every call. Store the prompt version, model ID, token counts, latency and errors with a pseudonymous student ID. That log is your cost report and part of your research data.
  • No direct identifiers sent to the API. Strip names and emails before a call, and read the provider’s data retention and training terms. Your institution’s counsel or compliance office decides whether those terms meet FERPA and your data use agreement.
  • A spending cap. Set a monthly limit on the API account and an alert at 50% of it, so a bug cannot spend the line in a weekend.

Reliability here is research validity: a session that failed silently is missing data. We took a research prototype to a district-approved classroom pilot in under 30 days: 20 teachers, two districts, 100+ framework-compliant problems generated.

Frequently asked questions

Should I use a cheaper model to cut LLM costs in my study?
Only if it performs well enough on your task, which you should test on 50–100 real student exchanges before the pilot. At 500 students the API bill is usually a few thousand dollars, so model choice should follow research quality first. If cost matters, cap response length and cache the system prompt before switching models.

Can student data be sent to an LLM provider under FERPA?
It depends on the provider’s terms and your agreements, and your institution’s counsel or compliance office makes that call. The usual design is to send no direct identifiers, use pseudonymous IDs, and choose an API tier whose terms exclude training on your data. Document the data flow so the IRB and the district can review it.

What if LLM API prices change during the semester?
Prices have mostly fallen, but models are also retired, which can force a switch mid-study. Budget a 50–100% contingency, pin a dated model version, and check the provider’s deprecation schedule covers your study dates. Record the rates in effect when you wrote the budget.

Who actually does the work if we hire Smplfy?
Charlie scopes every project and makes the architecture calls, and Smplfy’s own engineers build it. The first project has a fixed scope, and you read a written scope before committing. A retainer across the pilot period starts only if you choose one.

Can my graduate student build the LLM layer instead?
For a Phase I prototype or a small lab study, often yes. Once 500 students across schools depend on it, the queueing, retry handling, logging and spending controls take engineering time a student usually needs for the research itself. A common split is the student owning prompts and analysis while an engineering team owns the platform.

Planning a pilot with LLM calls?

We offer a free 30-minute review of your proposal’s technical section or pilot plan, including the API budget. Bring the prototype’s repository or a demo, the pilot timeline and the funder’s requirements. Start a conversation.