InferenceGateway.Contracts 1.0.1

dotnet add package InferenceGateway.Contracts --version 1.0.1
                    
NuGet\Install-Package InferenceGateway.Contracts -Version 1.0.1
                    
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="InferenceGateway.Contracts" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="InferenceGateway.Contracts" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="InferenceGateway.Contracts" />
                    
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 InferenceGateway.Contracts --version 1.0.1
                    
#r "nuget: InferenceGateway.Contracts, 1.0.1"
                    
#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 InferenceGateway.Contracts@1.0.1
                    
#: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=InferenceGateway.Contracts&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=InferenceGateway.Contracts&version=1.0.1
                    
Install as a Cake Tool

InferenceGateway.Contracts

Shared contracts and protobuf definitions for InferenceGateway gRPC services.

Overview

This package contains the protobuf definitions and generated C# code for communicating with InferenceGateway services. The Inference Gateway is designed to give end users ownership of their AI models and enable other services to consume them, rather than mandating subscriptions or service-managed AI.

It includes:

  • ModelRegistry service for managing AI models
  • ModelRuntime service for executing inference requests
  • All necessary message types and enums

For the main project and service implementation, see the GitHub Repository.

Installation

dotnet add package InferenceGateway.Contracts

Usage

Add the package to your project and use the generated gRPC clients to interact with InferenceGateway instances.

All RPCs require an x-app-id gRPC metadata header. The gateway uses it for authorization and usage attribution.

Required Metadata

  • x-app-id: Your application id (must be registered/allowed by the gateway)

Services

  • ModelRegistry: List, get, upsert, and delete models
  • ModelRuntime: Get model info and execute inference requests (synchronous and streaming)

Requirements

  • .NET 10.0 or later
  • Compatible with gRPC .NET client libraries
Product Compatible and additional computed target framework versions.
.NET 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

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
1.0.1 178 12/25/2025
1.0.0 176 12/24/2025