I want to make a software in PHP to call A1111 (or raw SD) in which to call through the software API

I want to make a software in PHP to call A1111 (or raw SD) in which to call through the software API.
What it should do is to generate a mix from 2 images. So I'm thinking of an img2img in which I give img as input and net control or swap as the second image.
In fact, what I want is to make some stylized images (like a poster) in which I can swap faces with an uploaded face.
Does anyone have an idea how I could do this through the API?
Was this page helpful?