kein or nicht?

kein negates nouns that have ein or no article: Ich habe kein Auto.
nicht negates everything else — verbs, adjectives, and nouns with der/die/das or mein:
- Der Kaffee ist nicht heiß.
- Das ist nicht mein Tee.
In this simple sentence, nicht follows the definite object: Ich esse den Kuchen nicht. Contrasts can use a different pattern: Ich esse nicht Kuchen, sondern Brot.
Tip
For neutral negation, nouns with ein or no article usually take kein. Adjectives and phrases with a definite or possessive article usually take nicht. Contrasts may use a different pattern.