Peltier coolers [1] do exist for specialist applications but they are
not at all effective. You can even buy them on Amazon. If the goal is
to iron out a spike to stop your semiconductor from going into thermal
runaway (instead of generating net energy as is the knee-jerk of some
unimaginative down-voters here) then it's a possible saviour.