You can use https://github.com/rogerfar/rdt-client and integrate it as you would do with qBittorrent. The RDT-client mimics the qBittorrent API.
Did you check https://github.com/toverainc/willow-inference-server/ ? I tried it with an ESP-BOX (running https://github.com/toverainc/willow) and the first results are really promising.
You can use https://github.com/rogerfar/rdt-client and integrate it as you would do with qBittorrent. The RDT-client mimics the qBittorrent API.