mcpField
C
comic-panel-generation

comic-panel-generation

github.com/eachlabs创意与媒体44879 次安装今天更新
代码仓库

关于 comic-panel-generation

这是一个使用 each::sense 创作漫画和漫画风格图像的技能,面向制作分格、条漫、整页或封面的创作者。它支持多种版式和画风,并可生成对话气泡、动作场景及跨格一致的角色形象。

主要功能

  1. 01单格与多格条漫
  2. 02漫画页面与竖屏条漫
  3. 03照片转漫画风格
  4. 04对话与思考气泡
  5. 05带视觉效果的动作场景
  6. 06跨分格保持角色一致

适用场景

  1. 01制作带阅读顺序的漫画页
  2. 02为竖屏条漫绘制分镜
  3. 03将照片转换为漫画风格图像
  4. 04创作包含重复角色的连续画面

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/eachlabs/skills --skill comic-panel-generation

安装后在 Claude Code 中输入/comic-panel-generation确认已加载。

附带文件references/SSE-EVENTS.md

详细介绍

漫画分镜生成

使用 each::sense 生成专业的漫画和漫画作品。此技能可创建单格画面、多格漫画条、整页布局以及完整的漫画序列,并保持角色设计一致。

功能

  • 单格画面:构图灵动的独立漫画分格
  • 多格漫画条:传统的 3-4 格漫画条
  • 漫画页面:具有阅读顺序的日式漫画页面布局
  • 超级英雄漫画:大胆用色、充满动作感的西式漫画风格
  • Webtoon 格式:适合移动端阅读的纵向滚动格式
  • 照片转漫画:将照片转换为漫画风格作品
  • 对话气泡:生成带有整合式对话气泡的分格
  • 动作序列:带有速度线和特效的动态动作分格
  • 角色一致性:在多个分格中保持角色外观一致
  • 封面设计:漫画书和漫画封面作品

快速开始

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a single comic panel of a superhero landing dramatically on a rooftop at night, cape billowing, city lights in background"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

漫画分格格式与尺寸

格式宽高比建议尺寸用途
单格画面1:11024x1024社交媒体、独立作品
横向分格16:91920x1080电影感场景、风景
纵向分格9:161080x1920戏剧性揭示、Webtoon
漫画条3:11500x5003-4 格横向漫画条
漫画页面2:31200x1800传统漫画布局
Webtoon1:3+800x2400+纵向滚动格式
漫画封面2:31200x1800书籍封面、缩略图

使用场景示例

1. 单格漫画分镜
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a single comic panel showing a detective in a noir style examining clues in a dimly lit office. Heavy shadows, black and white with selective color on a red lamp. Include dramatic lighting from venetian blinds."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
2. 多格漫画条
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 4-panel horizontal comic strip. Panel 1: A cat staring at an empty food bowl. Panel 2: Cat meowing at its sleeping owner. Panel 3: Cat knocking items off a shelf. Panel 4: Owner finally awake and annoyed, cat looking innocent. Cute cartoon style, pastel colors."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
3. 漫画页面布局
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a full manga page with 5-6 panels. Scene: A young samurai drawing his sword for the first time. Include dynamic panel sizes - one large panel for the dramatic sword draw moment, smaller panels for reaction shots. Black and white manga style with screentones, speed lines for action. Right-to-left reading flow."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
4. 超级英雄漫画风格
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a superhero comic panel in classic Marvel/DC style. A female superhero with electric powers charging up, lightning crackling around her fists, dramatic low angle shot. Bold colors, heavy inks, dynamic pose, Kirby-style energy effects. Include a starburst background."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
5. Webtoon 纵向格式
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a vertical webtoon-style comic segment with 3 connected scenes. Scene 1: A student walking into a mysterious antique shop. Scene 2: Close-up of a glowing amulet on a shelf. Scene 3: The shopkeeper appearing mysteriously behind them. Korean webtoon art style, soft colors, vertical scroll format optimized for mobile. 9:16 or taller aspect ratio."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
6. 照片转漫画
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Convert this photo into a comic book style illustration. Apply bold black outlines, halftone dots for shading, vibrant pop art colors. Make it look like a panel from a graphic novel. Keep the composition but stylize all elements."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/portrait-photo.jpg"]
  }'
7. 对话气泡生成
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a comic panel with two characters arguing. Include speech bubbles with placeholder text areas. Character 1 (angry businessman): large jagged speech bubble for shouting. Character 2 (calm woman): regular oval speech bubble for response. Also include a thought bubble above the woman showing she is unimpressed. Western comic style."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
8. 动作序列分格
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 3-panel action sequence showing a martial arts fight. Panel 1: Fighter A launching a flying kick (motion blur, speed lines). Panel 2: Impact moment with dramatic POW effect and motion burst. Panel 3: Fighter B crashing through wooden crates. Manga action style with heavy use of speed lines, impact effects, and dynamic camera angles."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
9. 跨分格保持角色一致
# First panel - establish character
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a comic panel introducing a character: A teenage girl with short blue hair, large round glasses, wearing a yellow raincoat. She is looking up at the rain with wonder. Anime/manga style, soft colors. This is panel 1 of a series - I need to maintain her appearance in future panels."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "comic-rainy-day-001",
    "mode": "max"
  }'

# Second panel - same character, different scene
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create panel 2 with the same blue-haired girl with glasses and yellow raincoat. Now she is jumping in a puddle, splashing water, with a big smile. Maintain the exact same character design and art style from panel 1."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "comic-rainy-day-001",
    "mode": "max"
  }'

# Third panel - continue the story
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create panel 3: Same character discovers a small frog on a lily pad in the puddle. She kneels down, delighted. Keep her blue hair, round glasses, yellow raincoat consistent. Same manga art style."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "comic-rainy-day-001",
    "mode": "max"
  }'
10. 漫画封面设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a comic book cover for issue #1 of SHADOW KNIGHTS. Feature a team of 4 heroes in dramatic poses - a knight with a glowing sword, an archer with shadow powers, a mage with fire magic, and a rogue with dual daggers. Dark fantasy style, dramatic lighting from below, epic composition. Leave space at the top for the title logo and bottom for issue number and barcode area. 2:3 aspect ratio."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

漫画艺术风格

风格描述最适合
西式漫画粗犷线条、鲜艳色彩、动感姿势超级英雄、动作
漫画干净线条、网点、富有表现力的眼睛剧情、爱情、动作
Webtoon柔和色彩、精细背景、纵向阅读爱情、奇幻、日常
黑色电影强烈明暗对比、阴影、有限配色侦探、惊悚
卡通简化造型、夸张表情喜剧、儿童内容
图像小说细致刻画、写实比例成人主题、文学作品
波普艺术大胆色彩、半色调、风格化现代、艺术创作

漫画生成提示词技巧

创建漫画分格时,请在提示词中包含以下细节:

  1. 分格布局:单格、多格漫画条、整页或纵向滚动
  2. 艺术风格:漫画、西式漫画、Webtoon、黑色电影、卡通等
  3. 动作/场景:每个分格中发生的内容
  4. 角色:描述外观、表情和姿势
  5. 构图:镜头角度、焦点、戏剧性元素
  6. 特效:速度线、冲击特效、网点、光照
  7. 对话空间:如有需要,请求添加对话/思考气泡
  8. 阅读顺序:从左到右(西式)或从右到左(漫画)
提示词结构示例
"Create a [panel count/layout] comic in [art style] style.
[Panel-by-panel description of action/scene].
Characters: [descriptions].
Include [effects: speed lines, speech bubbles, etc.].
[Color/mood]: [palette preferences]."

模式选择

生成前询问用户:

“你想要快速且便宜的,还是高质量的?”

模式最适合速度质量
max最终作品、可印刷漫画、细节丰富的页面较慢最高
eco快速草稿、分镜、概念探索较快良好

多轮漫画创作

使用 session_id 通过多次请求创作完整漫画:

# Page 1 - Establish the story
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create page 1 of a sci-fi manga. A space bounty hunter enters a seedy alien bar. 4 panels: exterior shot of neon-lit bar, hunter walking in (silhouette), aliens turning to look, close-up of hunters determined eyes."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "space-bounty-comic"
  }'

# Page 2 - Continue the narrative
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create page 2 continuing the scene. The hunter approaches a table of alien criminals. Include panels showing: the target alien recognizing danger, the hunters hand reaching for a weapon, tension building. Same art style as page 1."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "space-bounty-comic"
  }'

# Request style adjustment
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Recreate page 2 but with more dramatic lighting - add more shadows and a red color accent from the bar neon signs. Keep all other elements the same."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "space-bounty-comic"
  }'

漫画项目批量生成

高效生成多个页面或变体:

# Cover variations
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a manga cover - a magical girl transformation scene, sparkles and ribbons, dramatic pose"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "eco"
  }'

# Alternative cover style
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create the same magical girl cover but in darker, more mature art style - less sparkles, more dramatic shadows"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "eco"
  }'

# Western comic adaptation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create the magical girl transformation but in Western superhero comic style - bold colors, heavy inks, more muscular proportions"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "eco"
  }'

错误处理

错误原因解决方案
Failed to create prediction: HTTP 422余额不足在 eachlabs.ai 充值
内容政策违规内容违规调整提示词,避免暴力或成人内容
超时多面板生成过于复杂将客户端超时时间设为至少 10 分钟
角色不一致使用了新会话或描述过于模糊使用相同的 session_id,并提供详细的角色描述

相关技能

  • each-sense - 核心 API 文档
  • photo-to-illustration - 将照片转换为各种艺术风格
  • character-design-generation - 创建一致的角色设定表
  • storyboard-generation - 为动画创建视觉分镜

评论

支持 Markdown