OpenAIKernelBuilderExtensions.AddOpenAITextToImage Method
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.
Add the OpenAI Dall-E text to image service to the list
public static Microsoft.SemanticKernel.IKernelBuilder AddOpenAITextToImage (this Microsoft.SemanticKernel.IKernelBuilder builder, string apiKey, string? orgId = default, string? modelId = default, string? serviceId = default, System.Net.Http.HttpClient? httpClient = default);
static member AddOpenAITextToImage : Microsoft.SemanticKernel.IKernelBuilder * string * string * string * string * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddOpenAITextToImage (builder As IKernelBuilder, apiKey As String, Optional orgId As String = Nothing, Optional modelId As String = Nothing, Optional serviceId As String = Nothing, Optional httpClient As HttpClient = Nothing) As IKernelBuilder
Parameters
- builder
- IKernelBuilder
The IKernelBuilder instance to augment.
- apiKey
- String
OpenAI API key, see https://platform.openai.com/account/api-keys
- orgId
- String
OpenAI organization id. This is usually optional unless your account belongs to multiple organizations.
- modelId
- String
The model to use for image generation.
- serviceId
- String
A local identifier for the given AI service
- httpClient
- HttpClient
The HttpClient to use with this service.
Returns
The same instance as builder
.