Cost-Performance Optimization for Processing Low-Resource Language Tasks Using Commercial LLMs