Where should I put generic utility code?

How about functions that are generic but only relevant to one api?