Język

ITextToImageService Interface

Definition

Interface for text to image services

public interface ITextToImageService : Microsoft.SemanticKernel.Services.IAIService
type ITextToImageService = interface
    interface IAIService
Public Interface ITextToImageService
Implements IAIService
Derived
Implements

Properties

Name Description
Attributes

Gets the AI service attributes.

(Inherited from IAIService)

Methods

Name Description
GetImageContentsAsync(TextContent, PromptExecutionSettings, Kernel, CancellationToken)

Given a prompt and/or an input text, the model will generate a new image.

Extension Methods

Name Description
GenerateImageAsync(ITextToImageService, String, Int32, Int32, Kernel, CancellationToken)

Given a prompt and/or an input text, the model will generate a new image.

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