Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
A postal card with an happy hiker waving and a beautiful mountain in the background.
There is a trail visible in the foreground.
The postal card has text in red saying: 'You are invited for a hike!'
""", new ImageGenerationOptions { Size = GeneratedImageSize.W1024xH1024 });
""", new ImageGenerationOptions { Size = GeneratedImageSize.W1024xH1024, ResponseFormat = GeneratedImageFormat.Uri });

Console.WriteLine($"The generated image is ready at:\n{generatedImage.ImageUri}");
if (generatedImage.ImageUri != null)
{
Console.WriteLine($"The generated image is ready at:\n{generatedImage.ImageUri}");
}
else
{
Console.WriteLine("Error: Image URI is null. Check your API key and model name.");
}