Custom pets come from two places: the professors' hocus pocus, and direct purchase from other players.
The player route is usually faster but costs in-game currency, so check the going rate before committing. The professor method is free and simply slower.