A cake has two selling points that need two photos: the outside, for whole cakes and celebrations, and the layers inside, for slices.
Whole cakes
Eye level, or just above, so the decoration on the side and the top are both visible. A cake stand lifts it off the table and gives a clean line. Turn the best side toward the camera.
Slices
Cut with a hot, clean knife, wiping between cuts. Lay the slice on its side or stand it so the layers face the camera, at about 30 degrees. A fork with a bite taken out of the tip shows the texture.
Light
Soft side light from a window shows the texture of frosting and sponge. Hard light makes frosting look plastic.
Custom and celebration cakes
If you sell custom cakes, photograph each one you make; together they become a portfolio for your website and Instagram. Shoot every one against the same background so the gallery looks consistent. See also desserts and bakery and the bakery page.