Quanta

← Back to Briefings

A 4,000-Token System Prompt at 50,000 Calls

Cost at volumeEN3 reads

01 · The repeated prefix hiding inside your workload

Imagine a team making 50,000 API calls during a reporting period. Each request includes a 4,000-token system prompt containing operating rules, examples, tool guidance, and historical exceptions. That is 200 million tokens of system-prompt input presented across those calls, before user messages, retrieved documents, tool results, or generated answers enter the calculation.

This is an illustrative workload, not a pricing estimate. Actual charges depend on the model, tokenization, cache eligibility, and whether input is billed as ordinary input, a cache write, or a cache read. The operational lesson remains: a small piece of request overhead becomes a large budget item when every worker sends it repeatedly.

02 · System prompts become expensive policy archives

Oversized system prompts rarely arrive fully formed. Teams add a rule after an incident, paste in another example after a bad answer, and retain instructions for workflows that no longer run. Eventually, every request carries the accumulated history of the application rather than the instructions needed for its current task.

Start by separating universal behavior from task-specific context. Keep essential safety boundaries, authorization rules, and output requirements in the appropriate instruction layer. Load specialist guidance only when the workflow needs it. A code-review request should not automatically inherit the full playbook for incident summaries, customer responses, and deployment planning.

Do not shorten prompts by deleting critical controls indiscriminately. Remove duplication, resolve contradictory rules, and replace sprawling examples with smaller examples that preserve the behavior you actually test.

03 · Repeated context grows beyond the system message

The larger leak often sits elsewhere in the request. An agent may resend an entire conversation, full repository files, repeated search results, and verbose tool output on every step. A short user question can therefore trigger a large input payload.

  • › Conversation history: retain recent turns and a tested working summary instead of replaying every exchange indefinitely.
  • › Retrieved material: send relevant passages with enough surrounding context to preserve meaning, rather than entire documents by default.
  • › Tool responses: filter redundant fields and cap noisy output before it enters the next model call.
  • › Repository context: select files and ranges for the current operation, expanding only when dependencies require it.

Compression has risks. A summary can lose an unresolved constraint, while an aggressively trimmed file can hide a dependency. Evaluate changes against realistic tasks, including failures and recovery paths, not just shorter token counts.

04 · Cache reuse reduces cost without removing context

Prompt caching and prompt reduction solve different problems. Reduction removes unnecessary input. Caching can make eligible repeated input cheaper to reuse. A cached 4,000-token prefix is still context the model must accommodate; it has not become free space in the context window.

Keep stable instructions together where the selected provider’s caching behavior supports reuse. Avoid inserting changing timestamps, request identifiers, or reordered content into otherwise reusable prefixes. Verify the applicable cache rules rather than assuming identical behavior across models.

Quanta fits this accounting exercise naturally: it meters real tokens and prices cache writes and cache reads separately. For sustained workloads, inspect those categories separately instead of treating all input tokens as one cost bucket. A request labeled cache-friendly is not evidence that it actually received cache-read pricing.

05 · Give prompt changes an owner and a rollout gate

Assign ownership for shared prompts just as you would for a shared library. Track prompt versions, input-token distributions, cache usage, task success, retries, and output quality by workflow. A shorter request that causes extra agent steps can cost more overall.

Test changes on a representative slice before broad rollout. If a workflow uses Claude Sonnet 5.5 or DeepSeek V4 Pro, evaluate its revised prompts on the model actually serving that workflow; token counts and behavior need not transfer unchanged.

For teams consolidating heavy API workloads, Quanta offers one pay-as-you-go balance across supported models and works with existing OpenAI SDK integrations. Open a Quanta account to measure your own workload, then prioritize the repeated context with the largest demonstrated cost. The goal is not the smallest prompt: it is the least expensive reliable path to a completed task.