Be very cautious here: so-called "hacks" and generators that promise thousands of free gems in Clash of Clans are almost always scams designed to steal your account or personal information.
The safest way to earn gems is through legitimate means—completing achievements, clearing obstacles, and occasionally finding them in-game. Protect your account by avoiding any third-party "hack" tools.