I would say that клапан is an autonomous device (works by itself) while вентиль is the device with external control (manual or automatic).