If the spell had X in its mana cost, X will be whatever value it had on the stack when calculating its mana value.

Artwork
Loading artwork…
Gale's Redirection
Commander Legends: Battle for Baldur's Gate · #73 · EN
Nonfoil—Foil—
Card rules
Exile target spell, then roll a d20 and add that spell's mana value.
1—14 | You may cast the exiled card for as long as it remains exiled, and you may spend mana as though it were mana of any color to cast that spell.
15+ | You may cast the exiled card without paying its mana cost for as long as it remains exiled.
Rare · Illustrated by Yeong-Hao Han
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Oathbreaker Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If the exiled card is an adventurer card, you may cast the Adventure spell this way.
Gale's Redirection exiles the spell directly from the stack without countering it. Because of this, it's effective against spells that can't be countered.