DirectX is a completely free software for Windows. However, you must download it from the official website of Microsoft to avoid malware and other threats.