RedInk README

The project's README from github.com/HisMax/RedInk. As one markdown file: README.md.

中文 | English

GitHub Stars License Docker Pulls GitHub Release

RedInk - Inspiration at Your Fingertips, Making Creation Effortless

Official Site → Redink.top

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

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

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:

    • Be aware of Gemini and image generation API call quotas
    • GCP trial accounts should keep high concurrency disabled
  2. Generation Time:

    • Outline generation usually takes 15-30 seconds
    • Image generation takes time — please be patient (don't leave the page)

🤝 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

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!

RedInk (HisMax/RedInk)

Searching Database…

5.6K ·GitHub
这是什么?RedInk 可以把一句话变成一篇完整的小红书笔记,包括配套的封面图、内容页图片和文字。文字部分使用 Gemini,图片部分使用 Nano Banana Pro。
这是我自己部署的 Web 应用,还是可以导入的库?这是一个自托管的 Web 应用,后端使用 Python/Flask,前端使用 Vue 3 + TypeScript,不是库。
我要怎么让 RedInk 跑起来?最简单的方法是使用 Docker:用一条命令运行官方镜像,然后在 Web 界面的设置页面配置 API 密钥。另外,也可以克隆仓库后运行 start.sh(macOS/Linux)或 start.bat(Windows),一键完成本地部署。
生成文字和图片是否需要我自己的 API 密钥?需要。Docker 镜像不包含任何 API 密钥,所以你必须通过设置页面或 YAML 配置文件,提供你自己的文字服务商(Gemini 或兼容 OpenAI 的接口)和图片服务商(Nano Banana Pro 或兼容接口)的密钥。
高并发设置有什么需要注意的地方吗?开启高并发模式后,最多会并行生成 15 张图片,但可能触发速率限制。README 明确提醒:不要在 GCP 的 300 美元试用账户上开启此模式。
RedInk 能在哪些平台上运行?可以通过 Docker 运行,也可以使用本地启动脚本,支持 macOS、Linux 和 Windows。
我的历史记录和 API 密钥数据会存在什么地方吗?所有内容都在本地或你自己的服务器上运行:生成的历史记录和输出图片通过挂载的 Docker 卷保存在你自己的文件系统中;API 密钥在界面中会被隐藏显示,不会发送到其他地方。
实际的生成流程是什么样的?你输入一句话,RedInk 会生成一份智能大纲,你可以逐页编辑;然后生成带样式的封面图;最后并发批量生成所有内容页图片(默认最多同时 15 张)。
除了 Google Gemini,我能使用其他服务商吗?可以。RedInk 有统一的文字客户端,同时支持 Google Gemini 和兼容 OpenAI 的 API,并能自动切换;图片服务商方面,支持 Nano Banana Pro、GPT Image 或其他兼容接口。
如果对某张图不满意,我能只重新生成这一张吗?可以。单独的页面可以重新绘制,RedInk 会保留完整的上下文(封面、大纲和你最初的输入),因此重新生成的图片与整篇笔记的视觉风格保持一致。
Creator
HisMax
Size
27.4 MB
Stars
5.6K
Updated
CommitJun 30
Age
10mo
Commits · 90 Days