Skip to content
Windows SDK for the Microsoft Web Language Model API, part of Cognitive Services
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Microsoft Web Language Model API: Windows Client Library & Sample

This repo contains the Windows client library & sample for the Microsoft WebLM API, an offering within Microsoft Cognitive Services, formerly known as Project Oxford.

The Client Library

The client library is a thin C# client wrapper for the Microsoft WebLM API.

The Sample

This sample is a C# Windows console application demonstrating the use of the Microsoft WebLM API.

To obtain a subscription key for WebLM API, visit the Microsoft Cognitive Services website and sign up for free using a Microsoft account. Then open, modify, build, and run the accompanying Visual Studio solution.

Build the sample

  1. Start Microsoft Visual Studio 2015 and select File > Open > Project/Solution.

  2. Starting in the folder where you clone the repository, go to the WebLM > Windows Folder.

  3. Double-click the Visual Studio 2015 Solution file WebLMSample.sln.

  4. Paste your Microsoft Cognitive Services WebLM subscription key into the LMServiceClient constructor parameter value in Program.cs.

  5. Press Ctrl+Shift+B, or select Build > Build Solution.

Run the sample

After the build is complete, press F5 to run the sample.

A number of self-explanatory lines will be printed on the console, showing the results received from the WebLM service.

Press any key to exit the app.


We welcome contributions. Feel free to file issues and pull requests on the repo and we'll address them as we can. Learn more about how you can help on our Contribution Rules & Guidelines.

You can reach out to us anytime with questions and suggestions using our communities below:

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.


All Microsoft Cognitive Services SDKs and samples are licensed with the MIT License. For more details, see LICENSE.

Sample images are licensed separately, please refer to LICENSE-IMAGE.

Developer Code of Conduct

Developers using Cognitive Services, including this client library & sample, are expected to follow the “Developer Code of Conduct for Microsoft Cognitive Services”, found at

You can’t perform that action at this time.