top of page
  • Writer's pictureKonstantin Kuyukov

KSuse AI Cloud API

An API has been created for using KSuse AI Cloud in third-party software.



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.

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"

3 views

Comments


bottom of page