OpenAITextToImageService Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
OpenAI text to image service.
public class OpenAITextToImageService : Microsoft.SemanticKernel.TextToImage.ITextToImageService
type OpenAITextToImageService = class
interface ITextToImageService
interface IAIService
Public Class OpenAITextToImageService
Implements ITextToImageService
- Inheritance
-
OpenAITextToImageService
- Implements
Constructors
| OpenAITextToImageService(String, String, String, HttpClient, ILoggerFactory) |
Initializes a new instance of the OpenAITextToImageService class. |
Properties
| Attributes |
Gets the AI service attributes. |
Methods
| GetImageContentsAsync(TextContent, PromptExecutionSettings, Kernel, CancellationToken) |
Given a prompt and/or an input text, the model will generate a new image. |
Extension Methods
| GetApiVersion(IAIService) |
Gets the API version from |
| GetEndpoint(IAIService) |
Gets the endpoint from |
| GetModelId(IAIService) |
Gets the model identifier from |
| GenerateImageAsync(ITextToImageService, String, Int32, Int32, Kernel, CancellationToken) |
Given a prompt and/or an input text, the model will generate a new image. |