https://github.com/bes-js/hercai.core
A powerful .NET Nuget Package for interacting with the Herc.ai API.
https://github.com/bes-js/hercai.core
ai api api-rest chatgpt csharp dall-e gpt-4 midjourney netcore openai
Last synced: over 1 year ago
JSON representation
A powerful .NET Nuget Package for interacting with the Herc.ai API.
- Host: GitHub
- URL: https://github.com/bes-js/hercai.core
- Owner: Bes-js
- License: gpl-3.0
- Created: 2024-01-07T07:39:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-07T08:59:38.000Z (over 2 years ago)
- Last Synced: 2025-03-19T20:43:35.075Z (over 1 year ago)
- Topics: ai, api, api-rest, chatgpt, csharp, dall-e, gpt-4, midjourney, netcore, openai
- Language: C#
- Homepage: https://www.nuget.org/packages/Hercai
- Size: 725 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# [Herc.ai](https://discord.gg/luppux)
> **A powerful .NET Nuget Package for interacting with the [Herc.ai](https://discord.gg/luppux) API.**
> **We Offer It To You For Free.**
> **[Herc.ai](https://discord.gg/luppux) Answers Your Question According To The Language, And It Supports All Languages.**
> **[✨ How about a one-time subscription to benefit from Hercai's features unlimitedly?](https://hercai-shop.onrender.com)**
**[✨ Use Hercai Unlimited with API Key!](https://hercai-shop.onrender.com)**
#
### ❔ [Support](https://discord.gg/luppux)
### 📂 [Nuget](https://www.nuget.org/packages/Hercai/1.0.0)
### 📝 [Github](https://github.com/Bes-js/Hercai.Core)
#
#
**📂 Installation**
```lua
Install-Package Hercai
dotnet add package Hercai
```
#
# Quick Example
**Exampe Construction;**
```cs
string apiKey = ""; /* If you have a Hercai API Key, please define it in this section. */
Hercai hercaiInstance = new Hercai(apiKey);
```
> **Question API; [https://hercai.onrender.com/v3/hercai?question=](https://hercai.onrender.com/v3/hercai?question=)**
**Example Question For .NET Core;**
```cs
/* Available Models */
/* "v3" , "v3-32k" , "turbo" , "turbo-16k" , "gemini" */
/* Default Model; "v3" */
string questionModel = "v3";
string questionContent = "What is the meaning of life?";
string questionResponse = await Hercai.Question("v3", "hi, how are you?");
Console.WriteLine("Question Response: " + questionResponse);
```
#
> **Text To Image API; [https://hercai.onrender.com/v3/text2image?prompt=](https://hercai.onrender.com/v3/text2image?prompt=)**
**Example Draw Image For .NET Core;**
```cs
/* Available Models */
/* "v1" , "v2" , "v2-beta" , "v3" (DALL-E) , "lexica" , "prodia", "simurg", "animefy", "raava", "shonin" */
/* Default Model; "v3" */
string imageModel = "simurg";
string prompt = "A beautiful landscape";
string negativePrompt = "Dark and gloomy"; /* Optional Prompt, If None, Leave Blank. */
string imageResponse = await Hercai.DrawImage(imageModel, prompt, negativePrompt);
Console.WriteLine("Image Response: " + imageResponse);
```
#
# Credits
**[NPM Package For JavaScript & TypeScript](https://www.npmjs.com/package/hercai)**
#
**Made by [FiveSoBes](https://github.com/Bes-js) And [Luppux Development](https://github.com/Luppux)**
[](https://discord.gg/luppux)

