I'm trying to upload a file to Replicate to do img2img but no matter what I do, I'm always getting a 500 internal server error.
The code is quite straightforward, so unless I have to use a "magic string" on the second parameter, I have no idea how to proceed.
byte []data = await File.ReadAllBytesAsync (fn);
FilesCreateRequest req = new FilesCreateRequest (data, "content", "z.png", null, null);
var response = await api.FilesCreateAsync (req);
The ApiKey is correct, otherwise I'd be getting a 401.