Is there a documentation on Generative Fill?

I am trying to build a plugin that utilizes generative fill but having trouble finding any documentation on the tool. Can somebody point me to the right direction?