If the exiled card has X in its mana cost (such as Chalice of the Void), that X is considered to be 0. The X in Prototype Portal's activation cost takes this into account, though it may be greater than 0 if the exiled card has other mana symbols in its mana cost (such as Riptide Replicator).

Artwork
Loading artwork…
Prototype Portal
The List · #SOM-195 · EN
Nonfoil—Foil—
Card rules
Imprint — When this artifact enters, you may exile an artifact card from your hand.
X,
: Create a token that's a copy of the exiled card. X is the mana value of that card.
Rare · Illustrated by Drew Baker
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You may not activate the second ability if no card has been exiled with Prototype Portal. In that case, the value of X is undefined and can't be paid.
You don't choose the value of X. Rather, the value of X is defined by the activated ability.
Any "enters" abilities of the exiled card will trigger when the token is put onto the battlefield. Any "as [this permanent] enters" or "[this permanent] enters with" abilities of the exiled card will also work.
If Prototype Portal has left the battlefield by the time its second ability resolves, you'll still put a token onto the battlefield that's a copy of the exiled card. On the other hand, if Prototype Portal is still on the battlefield at this time but there is no exiled card (because, perhaps, Riftsweeper's ability caused the exiled card to be put into its owner's library), no token is created.