While most winter squashes are not keto-friendly, spaghetti squash is a bit lower in carbs than others. It is a nutrient-dense food, and a great source of fiber, vitamin B6, and vitamin C. A one cup serving of cooked spaghetti squash had 10 grams of carbs and 2.2 grams of fiber. So, with 7.8 grams of carbohydrates per cup, it is something that can be enjoyed in moderation.