I was working on cost optimization for an LLM-based document translation

pipeline.

At that point, the LLM translation flow was still very direct: one extracted

text segment became one API call.

It worked, but it was not ideal for cost.