The OpenAI .NET API library, now in beta, supports the entire OpenAI API including Assistants v2 and Chat Completions as well as the GPT-4o model. Credit: Andrew Neel Microsoft is heralding the arrival of an official OpenAI library for .NET developers. The OpenAI library supports the complete OpenAI API and OpenAI’s latest flagship model, GPT-4o, which can reason across audio, vision, and text in real time. Announced June 6 and available now in a first beta, the OpenAI .NET API library is accessible from NuGet. Resulting from Microsoft’s collaboration with OpenAI, the OpenAI .NET API library provides sync and async access to the OpenAI REST API from .NET applications. It supports capabilities including Assistants v2, for building AI assistants within applications, and Chat Completions, for taking a list of messages as input and returning a model message. The library includes extensibility that enables the community to build libraries on top and access to streaming completions via IAsyncEnumerable<T>. The OpenAI .NET API library is supported on GitHub and will be kept up to date with the latest features from OpenAI, Microsoft said. Work will continue in coming months to gather feedback, improve the library, and offer a stable NuGet package. The OpenAI .NET API library is compatible with .NET Standard 2.0 applications. However, some code examples in the OpenAI .NET API library document might depend on newer language features. Developers will need an API key to call the OpenAI REST API. Microsoft last month announced investments to expand the AI ecosystem for .NET developers. AI attention included end-to-end scenarios for building AI-enabled applications, embracing the AI ecosystem, and integration with cloud services. Related content news Spin 3.0 supports polyglot development using Wasm components Fermyon’s open source framework for building server-side WebAssembly apps allows developers to compose apps from components created with different languages. By Paul Krill Nov 18, 2024 2 mins Microservices Serverless Computing Development Libraries and Frameworks how-to How to use DispatchProxy for AOP in .NET Core Take advantage of the DispatchProxy class in C# to implement aspect-oriented programming by creating proxies that dynamically intercept method calls. By Joydip Kanjilal Nov 14, 2024 7 mins Microsoft .NET C# Development Libraries and Frameworks news Microsoft’s .NET 9 arrives, with performance, cloud, and AI boosts Cloud-native apps, AI-enabled apps, ASP.NET Core, Aspire, Blazor, MAUI, C#, and F# all get boosts with the latest major rev of the .NET platform. By Paul Krill Nov 12, 2024 4 mins C# Generative AI Microsoft .NET feature Can Wasm replace containers? WebAssembly revolutionized browser apps, and promises to upend the server stack. How will it impact containers and Kubernetes? Six experts weigh in. By Bill Doerrfeld Nov 11, 2024 12 mins Containers Kubernetes Cloud Native Resources Videos