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
<PackageReference Include="Universal.Operative.Sdk.Codex.OpenAI" Version="1.0.0" />
<PackageVersion Include="Universal.Operative.Sdk.Codex.OpenAI" Version="1.0.0" />
<PackageReference Include="Universal.Operative.Sdk.Codex.OpenAI" />
paket add Universal.Operative.Sdk.Codex.OpenAI --version 1.0.0
#r "nuget: Universal.Operative.Sdk.Codex.OpenAI, 1.0.0"
#:package Universal.Operative.Sdk.Codex.OpenAI@1.0.0
#addin nuget:?package=Universal.Operative.Sdk.Codex.OpenAI&version=1.0.0
#tool nuget:?package=Universal.Operative.Sdk.Codex.OpenAI&version=1.0.0
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 | Versions 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. |
-
net10.0
- Universal.Operative.Sdk.Codex (>= 1.0.0)
-
net8.0
- Universal.Operative.Sdk.Codex (>= 1.0.0)
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.