SuperAPI AI Directory

nby-xhs-cover

General & other

View repository

Updated 10-16 08:36

About this skill

nby-xhs-cover — Xiaohongshu image generator (Jimeng version)

Generates Xiaohongshu-style vertical images based on Jimeng AI. Prompt reference freestylefly/xiaohongshu-cover-generator Xiaohongshu design guidelines, with the API replaced by the local Jimeng service.

Features

  • 3:4 vertical (Xiaohongshu standard ratio)
  • 2K resolution
  • 3 page types: cover / content / summary
  • Generates 4 variants each time for selection
  • Free (Jimeng local Docker service)

Dependencies

  • nby-jimeng-api:~/.nby-skills/nby-jimeng-api/.env Configure in JIMENG_SESSION_ID
  • Docker: container jimeng-free-api-all runs at localhost:8000

Usage

npx tsx scripts/handler.ts "<主题>" [封面|内容|总结]

Example

# 封面图 — 大标题+拼图布局
npx tsx scripts/handler.ts "湖南芷江旅游攻略|龙津风雨桥、湘西米粉、智能酒店" "封面"

# 内容图 — 信息卡片+图标列表
npx tsx scripts/handler.ts "七项免费服务:接机接站、停车、洗衣、熨衣、行李寄存、女性用品" "内容"

# 总结图 — 勾选框+完成感
npx tsx scripts/handler.ts "芷江旅行总结:风雨桥✓ 米粉✓ 智能酒店✓" "总结"

Output

Files are saved tocurrent working directory:

xiaohongshu-{类型}-{timestamp}-{序号}.png

Example:xiaohongshu-封面-1775466053022-1.png

Prompt design for the three page types

Type Visual characteristics
Cover Large centered prominent title, rich background with a visual focal point, multi-element collage layout
Content Clear information hierarchy, list items + icon assistance, key points emphasized with color
Summary Checkboxes/completion marks, summary text highlighted, encouraging visual elements

General guidelines: fresh and refined, suited to young people's aesthetics, harmonious color scheme, no watermark and no logo, high-definition vertical.

Troubleshooting

Error Cause Solution
connect ECONNREFUSED 127.0.0.1:8000 Jimeng Docker is not running docker start jimeng-free-api-all
缺少 JIMENG_SESSION_ID Credentials not configured In ~/.nby-skills/nby-jimeng-api/.env add
credit prededuct failed Insufficient Jimeng credits Switch accounts or wait for refresh (66 free credits daily)
API Error 401 Session ID expired Log in to Jimeng again to get a new sessionid
无效的页面类型 An unsupported type was passed in Only supports: cover, content, summary

Acknowledgments

Prompt design reference freestylefly/xiaohongshu-skills, thanks to the original author for the Xiaohongshu-style guidelines summary.