The total cost to cast a spell is locked in before you pay that cost. For example, if you control three creature tokens, including one you can sacrifice to add {C}, the total cost to cast an instant with mana cost {4}{R} is {1}{R}. Then you can sacrifice the creature when you activate mana abilities just before paying the cost.