Does Black have an API? No. Black is a command line tool. Many integrations are provided, but a Python interface is not one of them.