次の方法で共有


OpenAITextToImageService Class

Definition

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

GenerateImageAsync(String, Int32, Int32, Kernel, CancellationToken)

Generate an image matching the given description

Extension Methods

GetApiVersion(IAIService)

Gets the API version from service's Attributes

GetEndpoint(IAIService)

Gets the endpoint from service's Attributes.

GetModelId(IAIService)

Gets the model identifier from service's Attributes.

Applies to