Most air compressors use AC, but some use DC. For instance, 12V compressors can connect to your car battery, which functions on DC.