Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So the price is just the $0.01 per query? Are they not charging for the tokens loaded into context from the various sources?


The query cost is in addition to tokens used. It is unclear if the tokens ingested from the search query count as addititional input tokens.

> Web search is available on the Anthropic API for $10 per 1,000 searches, plus standard token costs for search-generated content.

> Each web search counts as one use, regardless of the number of results returned. If an error occurs during web search, the web search will not be billed.


Hi, stephanie from Anthropic here. Thanks for the feedback! We've updated the docs to hopefully make it a little more clear but yes search results do count towards input tokens

https://docs.anthropic.com/en/docs/build-with-claude/tool-us...


Thanks for the update!

> Web search results in the conversation are counted as input tokens on subsequent completion requests during the current turn or on subsequent conversation turns.

Yes, that's clear.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: