It'd be nice, though, to have a proper API (in the traditional sense, not SaaS) instead of having to figure out these command lines in what's practically its own programming language....
They publish doxygen generated documentation for the APIs, available here: https://ffmpeg.org/doxygen/trunk/
* To be more precise, these are bindings for the libav* libraries that underlie ffmpeg