Universal.Operative.Sdk.Codex.OpenAI 1.0.0

dotnet add package Universal.Operative.Sdk.Codex.OpenAI --version 1.0.0
                    
NuGet\Install-Package Universal.Operative.Sdk.Codex.OpenAI -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Universal.Operative.Sdk.Codex.OpenAI" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Universal.Operative.Sdk.Codex.OpenAI" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Universal.Operative.Sdk.Codex.OpenAI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Universal.Operative.Sdk.Codex.OpenAI --version 1.0.0
                    
#r "nuget: Universal.Operative.Sdk.Codex.OpenAI, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Universal.Operative.Sdk.Codex.OpenAI@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Universal.Operative.Sdk.Codex.OpenAI&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Universal.Operative.Sdk.Codex.OpenAI&version=1.0.0
                    
Install as a Cake Tool

Universal.Operative.Sdk.Codex.OpenAI

OpenAI Platform Images API implementation of ICodexImageGeneration. Use an API key and a host-owned HttpClient with a timeout suitable for image generation:

using var http = new HttpClient { Timeout = TimeSpan.FromMinutes(5) };
var images = new Universal.Operative.Sdk.Codex.OpenAI.ImageGenerationBackend(http, apiKey,
    new() { ImageModel = "gpt-image-2", ArtifactDirectory = "generated-images" });
await using var tools = CodexToolSet.Create(new() { ImageGeneration = images });

New images use /v1/images/generations; references use JSON /v1/images/edits. Local files and base64, HTTPS, and OpenAI file-ID sources are supported. Results contain native base64 image blocks and optional saved-file context. The host configures model, size, quality, format, and artifact storage. Transparent output requires PNG or WebP. Cancellation propagates to HTTP and file operations. No automatic retries are performed, avoiding duplicate generation charges.

For Codex ChatGPT tokens, use Universal.Operative.Sdk.Codex.OpenAI.ChatGpt.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Universal.Operative.Sdk.Codex.OpenAI:

Package Downloads
Universal.Operative.Sdk.Codex.OpenAI.ChatGpt

Codex-token image generation backend for the Codex toolset.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 109 10/3/2026

Initial release.