Using Text to Image 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 requestsTag
- 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
Text to Image​
var response = client.Post(new TextToImage {
Height = 768,
Width = 768,
Model = "sdxl-lightning",
PositivePrompt = "A happy llama",
NegativePrompt = "bad quality, blurry image"
});
response.Outputs[0].Url.DownloadFileTo(outputFileName);
Queue Text to Image​
var response = client.Post(new QueueTextToImage {
Height = 768,
Width = 768,
Model = "sdxl-lightning",
PositivePrompt = "A happy llama",
NegativePrompt = "bad quality, blurry image"
});