Image Upscale

Using Image Upscale Endpoints

These endpoints are used in a similar way to other AI Server endpoints where you can provide:

  • RefId - provide a unique identifier to track requests
  • Tag - categorize like requests under a common group

In addition Queue requests can provide:

  • ReplyTo - URL to send a POST request to when the request is complete

Image Upscale

var response = client.PostFilesWithRequest(new ImageUpscale(),
    [new UploadFile("image", File.OpenRead("files/test_image.jpg"), "image")]
);
response.Outputs[0].Url.DownloadFileTo(outputFileName);

Queue Image Upscale

var response = client.PostFilesWithRequest(new QueueImageUpscale(),
    [new UploadFile("image", File.OpenRead("files/test_image.jpg"), "image")]
);

Additional Functionality

AI Server also provides Image-To-Text generation using the ComfyUI Agent that utilizes the Florence 2 model. The ComfyUI Agent must have this model downloaded and installed to support this functionality.