<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/anthropic-s-new-files-api-vs-pasting-it-will-save-you-time-but-it-won-t-save-you-money--40pnua5ca" -->

---
title: Anthropic’s new Files API vs. pasting: It will save you...
description: A hands-on test compares Anthropic's newly GA Files API against pasting reference documents into every request and against prompt caching, using a fake...
canonical: https://daily.dev/posts/anthropic-s-new-files-api-vs-pasting-it-will-save-you-time-but-it-won-t-save-you-money--40pnua5ca
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Anthropic’s new Files API vs. pasting: It will save you time, but it won’t save you money. | daily.dev
og:description: A hands-on test compares Anthropic's newly GA Files API against pasting reference documents into every request and against prompt caching, using a fake...
og:url: https://daily.dev/posts/anthropic-s-new-files-api-vs-pasting-it-will-save-you-time-but-it-won-t-save-you-money--40pnua5ca
og:image: https://api.daily.dev/og/posts/40pnUa5cA.png
og:image:alt: Anthropic’s new Files API vs. pasting: It will save you time, but it won’t save you money.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic’s new Files API vs. pasting: It will save you time, but it won’t save you money.

**[The New Stack](https://daily.dev/sources/newstack)** · 6 min read · 0 upvotes · 0 comments

## Summary

A hands-on test compares Anthropic's newly GA Files API against pasting reference documents into every request and against prompt caching, using a fake API-support-bot scenario with claude-sonnet-5. Token usage across five requests showed the Files API billed slightly more than pasting (15,371 vs 15,246 input tokens), while prompt caching cut billed input to roughly a third by billing the document once as a cache write and reading it cheaply on subsequent requests. Accuracy was identical across all three approaches. Conclusion: the Files API solves document management, not cost, while prompt caching is what actually reduces spend; the two can be combined.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thenewstack.io/anthropic-files-api-costs>

## Questions this post answers

### Does using Anthropic's Files API save money compared to pasting the document into every request?

No, it does not save money. In a five-question test workload, uploading a document once through the Files API billed 15,371 input tokens across the requests, slightly more than pasting the full document each time at 15,246 tokens. The uploaded file's contents are still processed on every request, at roughly 3,050 input tokens per question, plus about 25 tokens of overhead for referencing the file ID, so there is no volume at which the Files API becomes cheaper than pasting.

_daily.dev surfaces real cost benchmarks like this for developers deciding how to structure Claude API calls._

### How much does prompt caching reduce token costs compared to pasting the same document into every Claude request?

Prompt caching cut billed input tokens to roughly a third of pasting across five requests in one test. The document was billed once as a 2,990-token cache write, carrying a 25 percent premium over normal input, and then read from cache on subsequent requests at about one-tenth the normal input rate, with the gap widening as more requests come in. The cache expires after five minutes of inactivity, and using it requires restructuring the request to place the document in the system prompt with a cache marker.

_Developers tuning LLM spend can track real-world caching results like this on daily.dev before restructuring requests._

### When did Anthropic's Files API and computer-use toolset move out of beta?

Anthropic moved the Files API and computer-use toolset out of beta on August 19, alongside launching a new browser-use toolset. The Files API lets developers upload a document once and reference it by ID in subsequent requests instead of resending the full content each time, and stored files now support expiration settings.

_daily.dev helps API developers keep up with Anthropic toolset releases that affect how they architect requests._

## Similar posts on daily.dev

- [Prompt Caching for Anthropic and OpenAI Models: Building Cost-Efficient AI Systems](https://daily.dev/posts/prompt-caching-for-anthropic-and-openai-models-building-cost-efficient-ai-systems-mjzh92xkq) · DigitalOcean · 2 upvotes · 0 comments
- [Prompt Caching 2026: Anthropic vs OpenAI vs Gemini Guide](https://daily.dev/posts/prompt-caching-2026-anthropic-vs-openai-vs-gemini-guide-englhxyp8) · Alex CloudStar · 0 upvotes · 0 comments
- [Claude API Token Optimization](https://daily.dev/posts/claude-api-token-optimization-4sbqfmbsk) · SitePoint · 0 upvotes · 0 comments

---

Tags: [#ai-inference](https://daily.dev/tags/ai-inference), [#anthropic](https://daily.dev/tags/anthropic), [#architecture](https://daily.dev/tags/architecture), [#claude](https://daily.dev/tags/claude), [#llm](https://daily.dev/tags/llm)

[View this post on daily.dev](https://daily.dev/posts/anthropic-s-new-files-api-vs-pasting-it-will-save-you-time-but-it-won-t-save-you-money--40pnua5ca)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Anthropic’s new Files API vs. pasting: It will save you time, but it won’t save you money.","url":"https://daily.dev/posts/anthropic-s-new-files-api-vs-pasting-it-will-save-you-time-but-it-won-t-save-you-money--40pnua5ca","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/anthropic-s-new-files-api-vs-pasting-it-will-save-you-time-but-it-won-t-save-you-money--40pnua5ca"},"datePublished":"2026-08-27T13:05:06.835Z","dateModified":"2026-10-15T02:23:45.907Z","description":"A hands-on test compares Anthropic's newly GA Files API against pasting reference documents into every request and against prompt caching, using a fake...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c3dc983e1d4faf3b32187b6f85bf4561?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c3dc983e1d4faf3b32187b6f85bf4561?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"The New Stack","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The New Stack","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/newstack","url":"https://daily.dev/sources/newstack"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/anthropic-s-new-files-api-vs-pasting-it-will-save-you-time-but-it-won-t-save-you-money--40pnua5ca","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-inference,anthropic,architecture,claude,llm","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The New Stack","item":"https://daily.dev/sources/newstack"},{"@type":"ListItem","position":3,"name":"Anthropic’s new Files API vs. pasting: It will save you time, but it won’t save you money."}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/anthropic-s-new-files-api-vs-pasting-it-will-save-you-time-but-it-won-t-save-you-money--40pnua5ca#faq","mainEntity":[{"@type":"Question","name":"Does using Anthropic's Files API save money compared to pasting the document into every request?","acceptedAnswer":{"@type":"Answer","text":"No, it does not save money. In a five-question test workload, uploading a document once through the Files API billed 15,371 input tokens across the requests, slightly more than pasting the full document each time at 15,246 tokens. The uploaded file's contents are still processed on every request, at roughly 3,050 input tokens per question, plus about 25 tokens of overhead for referencing the file ID, so there is no volume at which the Files API becomes cheaper than pasting. daily.dev surfaces real cost benchmarks like this for developers deciding how to structure Claude API calls."}},{"@type":"Question","name":"How much does prompt caching reduce token costs compared to pasting the same document into every Claude request?","acceptedAnswer":{"@type":"Answer","text":"Prompt caching cut billed input tokens to roughly a third of pasting across five requests in one test. The document was billed once as a 2,990-token cache write, carrying a 25 percent premium over normal input, and then read from cache on subsequent requests at about one-tenth the normal input rate, with the gap widening as more requests come in. The cache expires after five minutes of inactivity, and using it requires restructuring the request to place the document in the system prompt with a cache marker. Developers tuning LLM spend can track real-world caching results like this on daily.dev before restructuring requests."}},{"@type":"Question","name":"When did Anthropic's Files API and computer-use toolset move out of beta?","acceptedAnswer":{"@type":"Answer","text":"Anthropic moved the Files API and computer-use toolset out of beta on August 19, alongside launching a new browser-use toolset. The Files API lets developers upload a document once and reference it by ID in subsequent requests instead of resending the full content each time, and stored files now support expiration settings. daily.dev helps API developers keep up with Anthropic toolset releases that affect how they architect requests."}}]}
```

