A novel method of sample preparation was developed to accommodate cell and tissue coculture to detect small molecule exchange using imaging mass spectrometry.