Python API docs

I want to train a LLM using AutoTrain programmatically for an application. There were docs, or maybe I missed it. Is there any code or documentation I can refer to?