HisMax/RedInk

β˜… 5,557β‘‚ 1,039

Red Ink - A one-stop Xiaohongshu image-and-text generator based on the 🍌Nano Banana Pro🍌, "One Sentence, One Image: Generate Xiaohongshu Text and Images."

About HisMax/RedInk

HisMax/RedInk is an open-source project on GitHub, mainly written in Python. Red Ink - A one-stop Xiaohongshu image-and-text generator based on the 🍌Nano Banana Pro🍌, "One Sentence, One Image: Generate Xiaohongshu Text and Images." It currently holds 5,557 stars and 1,039 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Image Projects board and on the AI AI Image Projects list.

GitHub Repository Details

Repository HisMax/RedInk Β· default branch - Β· size 0 KB Β· watchers 0 Β· source: GitHub REST API and repository README

README

δΈ­ζ–‡ | English

GitHub Stars License Docker Pulls GitHub Release

https://github.com/HisMax/RedInk/blob/HEAD/RedInk - Inspiration at Your Fingertips, Making Creation Effortless

Official Site β†’ Redink.top

https://github.com/HisMax/RedInk/blob/HEAD/Various social media covers generated with RedInk

Various social media covers generated with RedInk - AI-powered, consistent style, accurate text

---

✨ Showcase

Type One Sentence, Get Complete Image & Text Posts

Step 1: Smart Outline Generation


Outline Example

Features:

  • ✏️ Edit content for each page
  • πŸ”„ Reorder pages (not recommended)
  • ✨ Custom description per page (highly recommended)

🎨 Step 2: Cover Page Generation


Cover Example

Cover Highlights:

  • 🎯 Matches your personal style
  • πŸ“ Accurate text rendering
  • 🌈 Visually consistent and coordinated

πŸ“š Step 3: Batch Content Page Generation


Content Page Example

Generation Notes:

  • ⚑ Concurrent generation for all pages (up to 15 by default)
  • ⚠️ Disable high concurrency in settings if your API doesn't support it
  • πŸ”§ Regenerate individual pages you're not satisfied with

---

πŸ—οΈ Tech Stack

πŸ”§ Backend

| Technology | Description | |------|------| | Language | Python 3.11+ | | Framework | Flask | | Package Manager | uv | | Text AI | Gemini 3 | | Image AI | 🍌 Nano Banana Pro |

🎨 Frontend

| Technology | Description | |------|------| | Framework | Vue 3 + TypeScript | | Build Tool | Vite | | State Management | Pinia | | Styling | Modern CSS |

---

πŸ“¦ Deployment

Option 1: Docker (Recommended)

The simplest way β€” one command to start:

docker run -d -p 12398:12398 -v ./history:/app/history -v ./output:/app/output histonemax/redink:latest

Visit http://localhost:12398 and configure your API Key in the Settings page.

Using docker-compose (optional):

Download docker-compose.yml, then:

docker-compose up -d

Docker Notes:

---

Option 2: Local Development

Prerequisites:

1. Clone the Repository

git clone https://github.com/HisMax/RedInk.git
cd RedInk

2. Configure API Services

Copy the config templates:

cp text_providers.yaml.example text_providers.yaml
cp image_providers.yaml.example image_providers.yaml

Edit the config files with your API Key and service settings, or configure them later via the Settings page in the web UI.

3. Install Backend Dependencies

uv sync

4. Install Frontend Dependencies

cd frontend
pnpm install

5. Start the Services

One-Click Start (Recommended)

Run the start script to automatically install dependencies and launch both frontend and backend:

The browser will automatically open at http://localhost:5173

Manual Start

Start Backend:

uv run python -m backend.app
Visit: http://localhost:12398

Start Frontend:

cd frontend
pnpm dev
Visit: http://localhost:5173

---

πŸ”§ Configuration

Configuration Methods

The project supports two configuration methods:

1. Web UI (Recommended): Visual configuration via the Settings page after starting the service 2. YAML Files: Edit config files directly

Text Generation Config

Config file: text_providers.yaml

# Active provider
active_provider: openai

providers: # OpenAI or compatible API openai: type: openai_compatible api_key: sk-xxxxxxxxxxxxxxxxxxxx base_url: https://api.openai.com/v1 model: gpt-4o

# Google Gemini (native API) gemini: type: google_gemini api_key: AIzaxxxxxxxxxxxxxxxxxxxxxxxxx model: gemini-2.0-flash

Image Generation Config

Config file: image_providers.yaml

# Active provider
active_provider: gemini

providers: # Google Gemini image generation gemini: type: google_genai api_key: AIzaxxxxxxxxxxxxxxxxxxxxxxxxx model: gemini-3-pro-image-preview high_concurrency: false

# OpenAI compatible API openai_image: type: image_api api_key: sk-xxxxxxxxxxxxxxxxxxxx base_url: https://your-api-endpoint.com model: dall-e-3 high_concurrency: false

High Concurrency Mode

⚠️ Not recommended for GCP $300 trial accounts β€” may trigger rate limits and cause generation failures.

---

⚠️ Notes

1. API Quota Limits:

2. Generation Time: ---

🀝 Contributing

Issues and Pull Requests are welcome!

If this project helps you, please give it a Star ⭐

---

Changelog

v1.4.3 (2026-06-30)

v1.4.2 (2026-03-15)

v1.4.1 (2025-12-29)

v1.4.0 (2025-11-30)

v1.3.0 (2025-11-26)

v1.2.0 (2025-11-26)

---

Community & Support

Contact the Author

Support the Project

https://github.com/HisMax/RedInk/blob/HEAD/Buy me a coffee

Star History

Star History Chart

---

πŸ“„ License

Personal Use - CC BY-NC-SA 4.0

This project is licensed under CC BY-NC-SA 4.0

You are free to:

Under the following terms:

Commercial License

If you wish to use this project for commercial purposes (including but not limited to):

Please contact the author for a commercial license: The author will provide flexible commercial licensing options based on your specific use case.

---

Disclaimer

This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability.

---

πŸ™ Acknowledgments

---

πŸ‘¨β€πŸ’» Author

Mozi (Histone) - AI Entrepreneur

"Let AI do the creative work for us"

---

If this project helped you, share it with others! ⭐

Questions or suggestions? Feel free to open an Issue!

GitHub Stars & Activity

5,557Stars
1,039Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars5,557
Forks1,039
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

ultralytics / ultralytics

Pythonβ˜… 61,829β‘‚ 11,787
β†’
2

ultralytics / yolov5

Pythonβ˜… 58,057β‘‚ 17,469
β†’
3

roboflow / supervision

Pythonβ˜… 50,960β‘‚ 4,848
β†’
4

lucidrains / vit-pytorch

Pythonβ˜… 25,514β‘‚ 3,495
β†’
5

junyanz / pytorch-CycleGAN-and-pix2pix

Pythonβ˜… 25,244β‘‚ 6,567
β†’
6

graphdeco-inria / gaussian-splatting

Pythonβ˜… 23,930β‘‚ 3,434
β†’
7

pytorch / vision

Pythonβ˜… 17,921β‘‚ 7,265
β†’
8

cvat-ai / cvat

Pythonβ˜… 16,758β‘‚ 3,871
β†’

More AI Rankings