This might help. An example of using multipart form.
https://github.com/lexiforest/curl_cffi/blob/15500fae1399f8e107f16357a905d275884a69f0/examples/upload.py