rule of thumb would be the sooner the cheaper, but how many weeks or months in advance?
For my particular flight there are only three companies and it seems flights are cheaper between Tuesdays and Thursdays. However, if you want to book a flight 2 months from now, it’s considerably cheaper.
Have you found the sweet spot?
And some airports are cheaper than others. My last international flight was 2x the cost to fly out of Houston (IAH) vs out of Austin. Even for the flight that went from Austin to Houston and then to the destination.