Pix2Pix API — Instruction-based Image Editing
Edit images with natural-language instructions using InstructPix2Pix via the Stable Diffusion API. Send a POST with init_image and an instruction.
This endpoint allows picture to generate picture
--request POST 'https://stablediffusionapi.com/api/v5/pix2pix' \
Make a POST request to https://stablediffusionapi.com/api/v5/pix2pix endpoint and passinit_image as the image url and prompt as the prompt text.
Click HERE to watch a how to video.
key : Your API Key
prompt : The prompt text
image_guidance_scale : Image Guidance Scale
init_image : link of Initial Image
Request Body
Body Raw
{
"key": "",
"init_image" : "https://d1okzptojspljx.cloudfront.net/generations/b3341a09-082e-474e-989f-72ec3f3bf7aa-0.png",
"prompt" : "make him women",
"image_guidance_scale" : 1,
"steps" : 50,
"guidance_scale" : 7
}