An API has been created for using KSuse AI Cloud in third-party software.
Documentation: https://docs.google.com/document/d/1PJiedoZUw1GbipgkQH5_1U7afOaylnVdLEFbFXoMmpE/edit?usp=sharing
Requests to the API can be made in two modes: synchronous and asynchronous.
Using an asynchronous approach is preferable, as it allows you to process many photos in parallel without waiting for processing results.
Using an asynchronous approach is preferable, as it allows you to process many photos in parallel without waiting for processing results.
Example for Fotomaster Photo Booth:
rename %1 temp.jpg
curl -X POST -F "token=KSUSE_API_TOKEN" -F "gdpr=0" -F "useCoins=0" -F "asr=SameAS" -F "mode_type=BodyAndBG" -F "prompt_influence=50" -F "autodetect=1" -F "prompt=Cyberpunk city" -F "nprompt=dark, dirty" -F "file=@C:\MirrorMeBooth\Events\MyFirstEvent\raw\temp.jpg" -f "https://api-de.photoswith.me/directFake" -o "%1"
del "C:\MirrorMeBooth\Events\MyFirstEvent\raw\temp.jpg"