A spell trap has a cost only if the builder must hire an NPC spellcaster to cast it.
Below is a list (possibly incomplete) of spell traps.