## The problem
The imageToImage example from the docs does not work. Calling hf.imageToImage() with stabilityai/stable-diffusion-2-1 fails even when passing inputs exactly like the docs show, and the variant from the Hugging Face docs also fails with the same error. The reporter tried several input shapes and got errors on all of them, so it looked like a client bug at first.
## The fix
Not a client bug. Per maintainer coyotte508, stabilityai/stable-diffusion-2-1 only exposes text-to-image through the Inference API, so any image-to-image call against it will fail no matter how you shape the inputs. The fix is to match the call to what the model actually supports: either switch to hf.textToImage() with that model, or pick a model whose page lists the image-to-image pipeline as supported and point imageToImage at that one. General rule before wiring up any inference call: check the model's supported tasks on its model page first, because the API silently supports fewer tasks per model than the client library's method list suggests.