Keras Python library Keras is a framework in Python used to define a neural network as a set of sequential layers.