How to save tokens with web search?

Hello crewai forums. First post here!

I have a fairly simply crew where one agent is using SerperDevTool and ScrapeWebsiteTool and the other one writes a short blog post based on the other agents findings.

I am using GPT-4-mini which costs $0.15/1M input tokens and $0.6/1M output tokens.

Yet one “kickoff” costs around 30snt’s which is surprisingly much. I have managed to get the cost down from 60snt’s by putting some search volume guidances to the web search agents backstory and making the search more detailed.

I have of course asked GPT for some tips but I couldn’t find anything that I really liked… Any tips?

Use agentops and get more insight into where the cost is higher than you expect.

1 Like