Get model input shape

Information on the model can be accessed by the .input_shape parameter of the model object

from keras.models import load_model

model = load_model("my_model.h5")
model.input_shape
(None, 28, 28)