← Dorothy Merge Lab
Guides

Nine steps of an OpenAI agent at 95.3% lower cost

An investigation using tools through the OpenAI API illustrates the difference between the price of a call and the cost of a complete task.

Ricardo Sargo·2 min read
CommentWhatsAppLinkedIn
Search · Read · Test · Tool-using agent

Ask an AI agent to investigate a system and it may list files, read information, use tools and test hypotheses. You receive the conclusion, but the cost builds up along the entire journey. At the Dorothy Merge Lab, we decided to look closely at that process.

How we measured

In the November 25 experiment, we used the OpenAI Responses API for a controlled technical investigation. The reference and experimental configurations each executed nine steps, with tools available and two predetermined final facts to evaluate. The comparison involved models in different price tiers selected to perform the work.

What happened across nine steps

Recorded cost went from US$0.03078 to US$0.00144, a 95.3% reduction. Both paths retrieved the two final facts correctly. Combined call time fell from 70.56 to 11.06 seconds. Recorded input declined from 44,518 to 37,457 tokens, and output from 852 to 611.

The financial reduction was much larger than the reduction in volume: model pricing and cache also contribute to that equation.

Cost calculated in experiment records
95.3% lower cost
ReferenceUS$ 0.03078
Tested configurationUS$ 0.00144
Comparison of experiment records.

Why measure the whole task

An agent may perform a cheap lookup and then spend much more trying to complete the same investigation. Evaluating all nine calls together lets us see what it costs to reach the result that actually matters.

This is important for anyone considering agents for business processes. Knowing the price of a million tokens is not enough; you need to understand how much work each request triggers.

What we learned

It is worth tracking the duration, accuracy and cost of a complete sequence. The efficiency we pursue at Dorothy Merge lies in the relationship between resources consumed and work delivered.

Conclusion

Both configurations retrieved the two evaluated facts across nine steps. Cost fell by 95.3%, and combined call time fell from 70.56 to 11.06 seconds.

Product development: Tool-using agent optimization was incorporated into the November 26 (UTC) API update. The percentage was measured in one laboratory run per configuration.

Methodology and evidence

Applied techniqueModel routing in tool-using workflows

Matching model capacity to investigative work and comparing usage across the complete sequence.

Evaluated task: Nine-step tool-using workflow retrieving two final facts.

How we evaluated it: One run per configuration, checking final facts and summing recorded cost and time.

Operation record (JSON)

Official provider documentation

View test report

Test the efficiency of your tool-using agents.

Try Dorothy Merge

Conversation with the author

Share your experience, ask a question or leave your thoughts on the article.

Loading interactions…

Keep exploring