https://github.com/shineii86/anichatapi
Free REST API for multi-character anime chatbot with real-time updates, quotes, recommendations, and images.
https://github.com/shineii86/anichatapi
anime anime-api anime-list anime-scraper anime-search anime-website animejs animes chatgpt gemini html javascript
Last synced: about 1 month ago
JSON representation
Free REST API for multi-character anime chatbot with real-time updates, quotes, recommendations, and images.
- Host: GitHub
- URL: https://github.com/shineii86/anichatapi
- Owner: Shineii86
- License: mit
- Created: 2025-07-31T16:25:22.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-07-31T18:03:23.000Z (2 months ago)
- Last Synced: 2025-07-31T19:53:25.363Z (2 months ago)
- Topics: anime, anime-api, anime-list, anime-scraper, anime-search, anime-website, animejs, animes, chatgpt, gemini, html, javascript
- Language: HTML
- Homepage: https://anichatapi.vercel.app
- Size: 60.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [AniChatAPI](https://github.com/AniPulse)
*Your Ultimate Anime Chatbot Engine*


 [](https://github.com/Shineii86/AniChatAPI/stargazers) [](https://github.com/Shineii86/AniChatAPI/fork)
[](https://anichat.vercel.app)> Build a full-featured anime chatbot API with multiple characters, real-time updates, quotes, images, recommendations, and free AI integrations โ powered by OpenAI, Gemini, Jikan, Waifu.pics, and more!
---
## ๐ฆ Features
- ๐ง **Role-Playing Characters** (Levi, Gojo, Megumin, etc.)
- ๐ฃ๏ธ **GPT / Gemini-Powered Chat**
- ๐ฌ **Latest Anime Updates** (via Jikan API)
- ๐งพ **Anime Quotes & Photos**
- ๐ง **Anime Recommendations**
- ๐ **Character Birthday System**
- ๐ **Fully Hosted on Vercel**
- ๐ธ **Free & Open Source**---
## ๐ API Endpoints
| Endpoint | Description | Example |
|--------------------|-----------------------------------------|---------|
| `/api/chat` | Talk to a selected anime character | `?character=Gojo&message=Hello&model=gpt` |
| `/api/quote` | Get a random anime quote | โ |
| `/api/image` | Get a random anime image (waifu, neko) | `?category=neko` |
| `/api/updates` | Current seasonal anime (real-time) | โ |
| `/api/recommend` | Random anime recommendations | โ |
| `/api/birthdays` | Today's character birthdays | โ |### ๐ Image API Endpoints
| Endpoint | Description | Parameters | Example |
|----------|-------------|------------|---------|
| `/api/image` | Get random anime image (SFW/NSFW support) | `category` (optional), `type` (optional) | `?category=neko&type=sfw` |
| `/api/image` | Get SFW anime image (default) | `category` (waifu, neko, shinobu, etc.) | `?category=waifu` |
| `/api/image` | Get NSFW anime image | `category` + `type=nsfw` | `?category=neko&type=nsfw` |### ๐ Parameters
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `category` | string | No | `waifu` | Image category (waifu, neko, shinobu, megumin, etc.) |
| `type` | string | No | `sfw` | Content type: `sfw` or `nsfw` |### ๐ฏ Usage Examples
**Basic Usage:**
```
/api/image
/api/image?category=neko
```**SFW Content:**
```
/api/image?category=waifu&type=sfw
/api/image?category=shinobu&type=sfw
```**NSFW Content:**
```
/api/image?category=waifu&type=nsfw
/api/image?category=neko&type=nsfw
```### ๐ฑ Response Format
```json
{
"image": "https://cdn.waifu.pics/...",
"category": "neko",
"type": "sfw",
"creator": "Shinei Nouzen",
"github": "https://github.com/Shineii86",
"telegram": "https://telegram.me/Shineii86",
"message": "Build with โค๏ธ by Shinei Nouzen",
"timestamp": "8/7/2025, 12:00:00 PM"
}
```
---## ๐ง Character Personalities
Defined in `/utils/characters.js`. Each persona is used to guide AI conversations:
```json
// Original characters
"Levi": "You are Levi Ackerman. You are cold, sharp, and to the point.",
"Megumin": "You are Megumin, a chuunibyou wizard obsessed with explosions!",
"Gojo": "You are Satoru Gojo, cool, confident, and sometimes goofy.",
"Shinobu": "You are Shinobu Kocho, sweet on the surface but deadly calm.",
// Added male characters
"Luffy": "You are Monkey D. Luffy. You're energetic, impulsive, and fiercely loyal to your crew.",
"Itachi": "You are Itachi Uchiha. You speak cryptically with profound wisdom, burdened by sacrifice.",
"Tanjiro": "You are Tanjiro Kamado. You're kind yet determined, with an exceptional sense of smell.",
"Killua": "You are Killua Zoldyck. You switch between playful innocence and lethal assassin instincts.",
// Added female characters
"Nezuko": "You are Nezuko Kamado. You communicate through muffled sounds and protect humans despite being a demon.",
"Zero Two": "You are Zero Two. You're flirtatious, rebellious, and obsessed with finding your 'darling'.",
"Mikasa": "You are Mikasa Ackerman. You're stoic, incredibly strong, and fiercely protective of Eren.",
"Marin": "You are Marin Kitagawa. You're bubbly, expressive, and passionate about cosplay."
````You can expand the list as needed.
---
## ๐ Free APIs Used
| API | Purpose | Link |
| --------------- | ---------------------- | ------- |
| Jikan API | Anime info, characters | [jikan.moe](https://jikan.moe) |
| AnimeChan | Anime quotes | [animechan.io](https://animechan.io) |
| Waifu.pics | Anime image generation | [waifu.pics](https://waifu.pics/) |
| OpenAI / Gemini | Conversational AI | [openai.com](https://openai.com) / [makersuite.google.com](https://makersuite.google.com) |---
## ๐งช Getting Started
### 1. Clone the Repository
```bash
git clone https://github.com/Shineii86/AniChatAPI
cd AniChatAPI
```### 2. Setup Environment
### ๐ How to Get API Keys
To use this project with AI capabilities, you'll need API keys from both **OpenAI (ChatGPT)** and **Google Gemini**. Here's how to get them:
---
#### ๐ง 1. Get OpenAI (ChatGPT) API Key
1. Go to the official [OpenAI Platform](https://platform.openai.com/account/api-keys).
2. Sign in with your OpenAI account (or create one).
3. Navigate to the **API Keys** section.
4. Click **"Create new secret key"**.
5. Copy and save your API key (starts with `sk-...`).๐ **Note**: Ensure you have an active billing method added to use GPT-4 or GPT-3.5 APIs.
---
#### ๐ง 2. Get Google Gemini API Key
1. Visit the [Google AI Studio](https://makersuite.google.com/).
2. Sign in with your Google account.
3. Go to the **"API Keys"** section or [click here directly](https://aistudio.google.com/app/apikey).
4. Click **"Create API key"** and copy it.๐ **Note**: Gemini APIs are currently in **preview/beta** and subject to region or usage limits.
### ๐ Where to Add the API Keys
Create a `.env` file in the root of your project and add:
```
OPENAI_API_KEY=your_openai_key_here
GEMINI_API_KEY=your_gemini_key_here
```๐ **Never commit `.env` files to public repositories.**
### 3. Deploy to Vercel
* Push to GitHub
* Visit [vercel.com](https://vercel.com/) and import your repo
* Vercel auto-detects the API---
## ๐งช Sample Request
```bash
GET /api/chat?character=Megumin&message=KonoSuba!&model=gemini
```**Response**:
```json
{
"character": "Megumin",
"reply": "Explosion!!!",
"creator": "Shinei Nouzen",
"github": "https://github.com/Shineii86",
"telegram": "https://telegran.me/Shineii86",
"message": "Build with โค๏ธ by Shinei Nouzen",
"timestamp": "India Date & Time 12H Format"
}
```---
## ๐ Contribution Guide
We welcome contributions from anime & tech fans! ๐ธ
1. ๐ด Fork this repo
2. ๐ฟ Create your feature branch (`git checkout -b new-feature`)
3. ๐งช Test and commit (`git commit -am 'Add new feature'`)
4. ๐ Push to your branch (`git push origin new-feature`)
5. ๐ฅ Create a Pull Request---
## ๐ Acknowledgements
Huge thanks to the creators of:
* [Jikan API](https://jikan.moe/)
* [AnimeChan](https://animechan.io)
* [Waifu.pics](https://waifu.pics/)
* [OpenAI](https://openai.com/)
* [Google Gemini](https://makersuite.google.com/)
* [Vercel](https://vercel.com/)---
## ๐ค Credits
> Project created by [**Shinei Nouzen**](https://github.com/Shineii86) Build with โค๏ธ passion for Anime, AI, and Open Source.
---
## ๐ฌ Support
* Issues: [GitHub Issues](https://github.com/Shineii86/AniRecommendAPI/issues)
## ๐ชช License
```json
This project is licensed under the *MIT License*.
Feel free to use, remix, and share it with proper credits.
```## ๐ Loved My Work?
๐จ [Follow me on GitHub](https://github.com/Shineii86/Shineii86)โญ [Give a star to this project](https://github.com/Shineii86/AniChatAPI/)
## โ๏ธ Contact
*For inquiries or collaborations*
[](https://telegram.me/Shineii86 "Contact on Telegram")
[](https://instagram.com/ikx7.a "Follow on Instagram")
[](https://pinterest.com/ikx7a "Follow on Pinterest")
[](mailto:ikx7a@hotmail.com "Send an Email")Copyright ยฉ 2025 Shinei Nouzen All Rights Reserved