Automatic1111 upscaling through API

I have an Automatic1111 endpoint, and I am trying to run the following request using the SD upscale script:
{ "input": { "sd_model_checkpoint": "", "sd_vae": "", "prompt": "", "negative_prompt": "", "init_images": [ "" ], "sampler_index": "Euler a", "steps": 40, "script_args": [ "", 64, "ESRGAN_4x", 1.875 ], "script_name": "SD upscale", "alwayson_scripts": {} } }

but I get a FAILED request with this error:

{ "delayTime": 1086, "error": "HTTPException", "executionTime": 168, "id": "9cecc431-e765-42b8-9b41-240b01f35ece-e1", "output": { "body": "", "detail": "Script 'SD upscale' not found", "errors": "" }, "status": "FAILED", "workerId": "4vquwujrnpwupw" }

Why is the SD upscale script not being found?
Was this page helpful?