Because cucumber is such a low-carb vegetable, it's not a food that you need to restrict when following a keto diet. With this being said, most low-carb diets restrict you to 50g net carbs or less per day. Luckily, with 4g net carbs for an entire cucumber, you shouldn't have any trouble sticking to these guidelines.