Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IImageGenerator Interface
Definition
- Namespace:
- Microsoft.Extensions.AI
- Assembly:
- Microsoft.Extensions.AI.Abstractions.dll
- Package:
- Microsoft.Extensions.AI.Abstractions v10.7.0
- Source:
- IImageGenerator.cs
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.
Represents a generator of images.
public interface class IImageGenerator : IDisposable
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public interface IImageGenerator : IDisposable
public interface IImageGenerator : IDisposable
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type IImageGenerator = interface
interface IDisposable
type IImageGenerator = interface
interface IDisposable
Public Interface IImageGenerator
Implements IDisposable
- Derived
- Attributes
- Implements
Methods
| Name | Description |
|---|---|
| Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable) |
| GenerateAsync(ImageGenerationRequest, ImageGenerationOptions, CancellationToken) |
Sends an image generation request and returns the generated image as a ImageGenerationResponse. |
| GetService(Type, Object) |
Asks the IImageGenerator for an object of the specified type |
Extension Methods
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
