Prep the pan and oven: Preheat the oven to 325°F (163°C).
Grease a 9x5-inch loaf pan and line it with a parchment sling for easy removal.
Mix the dry ingredients: In a medium bowl, whisk 2 1/2 cups almond flour, 2 teaspoons baking powder, and 1/2 teaspoon fine sea salt. Break up any lumps.
Cream the butter and sweetener: In a large bowl, beat 1/2 cup softened unsalted butter with 3/4 to 1 cup granulated keto sweetener for 2–3 minutes until light and fluffy. Adjust sweetness to taste.
Add eggs one at a time: Beat in 4 large room-temperature eggs, one at a time, scraping the bowl as needed.
Mix until smooth and glossy.
Flavor and enrich: Beat in 1 tablespoon vanilla extract, 1/2 teaspoon almond extract, and 1/2 cup full-fat sour cream until just combined.
Combine wet and dry: Add the dry ingredients to the wet. Mix on low until fully incorporated. The batter will be thick but spreadable.
Pan and smooth: Spread batter into the prepared loaf pan.
Smooth the top with a spatula. If using, sprinkle 2 tablespoons sliced almonds on top.
Bake: Bake 50–65 minutes, or until the top is golden and a toothpick inserted in the center comes out mostly clean with a few moist crumbs. If the top browns too quickly, tent with foil for the last 15 minutes.
Cool properly: Let the cake cool in the pan for 15 minutes, then lift it out and cool completely on a rack.
This helps set the crumb.
Optional glaze: Whisk 1/2 cup sugar-free powdered sweetener with 1–2 tablespoons unsweetened almond milk and a drop of almond extract until smooth. Drizzle over the cooled cake.