The Keras model can be created using the sequential API or functional API. The examples of creating models in both ways are given in the following subsections.