BenchGecko 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package BenchGecko --version 0.1.0
                    
NuGet\Install-Package BenchGecko -Version 0.1.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="BenchGecko" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BenchGecko" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="BenchGecko" />
                    
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 BenchGecko --version 0.1.0
                    
#r "nuget: BenchGecko, 0.1.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 BenchGecko@0.1.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=BenchGecko&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=BenchGecko&version=0.1.0
                    
Install as a Cake Tool

BenchGecko .NET SDK

Official .NET client for the BenchGecko API. Query AI model data, benchmark scores, and run side-by-side comparisons from C# and .NET applications.

BenchGecko tracks every major AI model, benchmark, and provider. This package wraps the public REST API with strongly typed C# classes, async/await patterns, and full CancellationToken support.

Installation

dotnet add package BenchGecko

Targets .NET 6.0 and .NET 8.0.

Quick Start

using BenchGecko;

var client = new BenchGeckoClient();

// List all tracked AI models
var models = await client.ModelsAsync();
Console.WriteLine($"Tracking {models.Count} models");

// List all benchmarks
var benchmarks = await client.BenchmarksAsync();
foreach (var b in benchmarks.Take(5))
    Console.WriteLine(b.Name);

// Compare two models head-to-head
var comparison = await client.CompareAsync(new[] { "gpt-4o", "claude-opus-4" });
Console.WriteLine($"Compared {comparison.Models?.Count} models");

API Reference

new BenchGeckoClient()

Create a client with default settings (production URL).

new BenchGeckoClient(string baseUrl, HttpClient? httpClient)

Create a client with a custom base URL or injected HttpClient for testing and dependency injection scenarios.

ModelsAsync(CancellationToken ct)

Fetch all AI models. Returns List<Model> with name, provider, slug, and extensible metadata via the Extra dictionary.

BenchmarksAsync(CancellationToken ct)

Fetch all benchmarks. Returns List<Benchmark> with name, category, slug, and extra metadata.

CompareAsync(string[] models, CancellationToken ct)

Compare two or more models. Pass an array of model slugs (minimum 2). Returns a ComparisonResult containing per-model data.

Error Handling

API errors throw BenchGeckoException with a message and optional HTTP status code:

try
{
    var models = await client.ModelsAsync();
}
catch (BenchGeckoException ex)
{
    Console.WriteLine($"API error ({ex.StatusCode}): {ex.Message}");
}

Dependency Injection

The client accepts an HttpClient parameter, making it compatible with IHttpClientFactory:

services.AddHttpClient<BenchGeckoClient>(client =>
{
    client.BaseAddress = new Uri("https://benchgecko.ai");
});

Data Attribution

Data provided by BenchGecko. Model benchmark scores are sourced from official evaluation suites. Pricing data is updated daily from provider APIs.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 was computed.  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.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.1 110 4/25/2026
0.2.0 105 4/15/2026
0.1.1 112 3/31/2026
0.1.0 106 3/31/2026