Keto is actually a metabolic state, rather than a food. Most people aim for 20g net carbs or less each day. But, the number of carbs that will kick you out of ketosis varies by person. Beans are very high in net carbs. For example, a cup of black beans contains 26g of net carbs. Therefore, many people avoid them.