Modern .NET SDK for EigenAI generated from the provider's OpenAPI definition with AutoSDK.
Built from EigenAI's OpenAPI definition so the SDK stays close to the upstream API surface.
Designed for fast regeneration and low-friction updates when the upstream API changes without breaking compatibility.
Targets current .NET practices including nullability, trimming, NativeAOT awareness, and source-generated serialization.
using EigenAI;
using var client = new EigenAIClient(apiKey);dotnet tool install --global EigenAI.CLI --prerelease
eigen-ai api --helpGenerate an image with an EigenAI image model.
using var client = new EigenAIClient(apiKey);
var model =
Environment.GetEnvironmentVariable("EIGENAI_IMAGE_MODEL") is { Length: > 0 } modelValue
? modelValue
: "eigen-image";
var response = await client.GenerateImageAsync(
model: model,
prompt: "A clean editorial product photo of a matte ceramic espresso cup.",
width: 1024,
height: 1024);
var output = response.ImageBase64 ?? response.ImageUrl ?? response.Url ?? response.Output;Open an issue in tryAGI/EigenAI.
Use GitHub Discussions for design questions and usage help.
Join the tryAGI Discord for broader discussion across SDKs.
This project is supported by JetBrains through the Open Source Support Program.
