Onions are a suitable vegetable to include on a keto diet, provided they aren't eaten in excess. Per 1 cup of raw sliced onions, there are 9 grams of net carbs.