---
title: "Discussion on \"How to integrate Chat-GPT using C# and .Net Core\" | Hashnode"
description: "Discussion on \"How to integrate Chat-GPT using C# and .Net Core\". In this article, you will learn how to integrate with Chat-GPT in C# using .Net core.\nPrerequisites\n\nHave an account with OpenAI platform.\n\nCREATE A NEW PROJECT\nLet’s get started. Launch your IDE and create a new project. Select ASP.Net Core Web API...."
url: "https://hashnode.com/posts/how-to-integrate-chat-gpt-using-c-and-net-core/63efe862ce7e37e13eb834f6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to integrate Chat-GPT using C# and .Net Core](https://ozpeace.hashnode.dev/how-to-integrate-chat-gpt-using-c-and-net-core?utm_source=hashnode&utm_medium=feed)

In this article, you will learn how to integrate with Chat-GPT in C# using .Net core. Prerequisites Have an account with OpenAI platform. CREATE A NEW PROJECT Let’s get started. Launch your IDE and create a new project. Select ASP.Net Core Web API....

Feb 17, 2023 · 5 min read · ozpeace.hashnode.dev  
Updated Feb 20, 2023  
Read the article

-   [#chatgpt](https://hashnode.com/tag/chatgpt)
-   [#openai](https://hashnode.com/tag/openai)
-   [#net](https://hashnode.com/tag/net)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[OGHENEMARO OZON](https://hashnode.com/@OzPeace)

@OzPeace

  
[View profile](https://hashnode.com/@OzPeace)

## Responses

Markdown supported · ⌘↵ to post

[Joseph Handschu](https://hashnode.com/@jhandschu)

[Jul 5, 2024](https://hashnode.com/posts/how-to-integrate-chat-gpt-using-c-and-net-core/63efe862ce7e37e13eb834f6/comment/6687f39fe660b5474f8842b3)

Well, this is a great intro to the integration however when I tried to run it is missing a complete class. The ADGenerateRequestModel is not where to be found. Is there a GIT or any follow up to this article?

public async Task> GenerateContent(ADGenerateRequestModel generateRequestModel) { var apiKey = \_configuration.GetSection("Appsettings:GChatAPIKEY").Value; var apiModel = \_configuration.GetSection("Appsettings:Model").Value; List rq = new List(); string rs = ""; OpenAIAPI api = new OpenAIAPI(new APIAuthentication(apiKey)); var completionRequest = new OpenAI\_API.Completions.CompletionRequest() {
