Are costs set before costs are paid? Or can you do it in either order?

In mtgo and in paper you can tap your lands and creatures for a Chord of Calling and then announce the X. Is that accurate or just an acceptable shortcut?

Specifically, if I have B floating and a untapped Trinisphere, can I use the Trinisphere and B to cast a Battle at the bridge X=1?