3 ms·
So the price is just the $0.01 per query? Are they not charging for the tokens loaded into context from the various sources?
by handfuloflight 2y ago
So the price is just the $0.01 per query? Are they not charging for the tokens loaded into context from the various sources?
- minimaxir 2y agoThe 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.
- stephpang 2y agoHi, 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-use/web-search-tool#usage-and-pricing https://docs.anthropic.com/en/docs/build-with-claude/tool-us...
- minimaxir 2y agoThanks 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.