AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
131.72k stars 25.28k forks source link

[Feature Request]: Backwards compatibility for txt2img and img2img API calls in 1.9.x versions #15603

Open ashleykleynhans opened 4 weeks ago

ashleykleynhans commented 4 weeks ago

Is there an existing issue for this?

What would your feature do ?

Provide backwards compatibility for the txt2img and img2img APIs

Proposed workflow

Make the API backwards compatible for people who are already using the API in their applications by making the txt2img and img2img API calls accept the previous sampler names and automatically split the legacy sampler names into their new sampler and scheduler settings instead of failing with 404 sampler not found.

This will help people who are using the API to seamlessly upgrade to 1.9.x versions without having to rewrite any of their existing code for the API calls to function correctly.

Additional information

No response

shutarojp commented 2 weeks ago

I need this too, thanks