HiAPI
博客

盘点

照片风格迁移提示词配方:动漫、漫画、涂鸦、塔罗牌

我们自己编写并实际运行的四组 AI 照片转艺术风格迁移提示词——动漫电影剧照、漫画分格、涂鸦壁画和塔罗牌肖像——附真实的前后对比图以及复现所需的 API 调用。

2026年11月3日
照片风格迁移提示词配方:动漫、漫画、涂鸦、塔罗牌

四个 i2i 模型、一张参考照片、四个截然不同的结果。以下是我们亲自编写并运行的确切提示词——动漫电影剧照、漫画分格、涂鸦壁画和塔罗牌肖像——每组都配有真实生成的图像以及复现它的 API 调用。

简而言之:在全部四种风格中,姿势、发型和身份特征都成功保留了下来,因为每条提示词都明确说明了要保留什么(“相同姿势”“相同发型”“相同连帽衫轮廓”),同时也说明了要改变什么。如果去掉这半部分提示词,我们测试的每个模型都会把主体漂移成一张普通的脸,而不是你自己的风格化版本。

快速参考:选择你的风格

风格 模型 分辨率 价格
1. 动漫电影剧照 nano-banana-2 1K $0.085/张
2. 漫画分格 seedream-4.5/image-to-image 2K $0.045/张
3. 涂鸦壁画 grok-imagine-quality/image-to-image 1k $0.08/张 + 参考图费用
4. 塔罗牌肖像 nano-banana-2 1K $0.085/张

价格按所示分辨率下单张输出图像计算,数据于 2026-09 从 hiapi 的定价端点最新获取——批量预算前请先查看 hiapi 的定价页面,因为各模型的费率会变动。Grok Imagine Quality 的图生图端点在基础价格之上,每张参考图还会收取少量额外费用;下面每次调用都只使用一张参考图,所以这一项的总预算大约为 $0.09–$0.10。

以下是下面每个配方所用的参考照片:

配方 1:动漫电影剧照

Convert this reference photo into a hand-painted Japanese anime film still: soft cel-shaded skin tones, clean thin ink linework on the face and hoodie folds, warm painterly lighting with visible brush texture, big expressive eyes redrawn in anime proportions while keeping the same hairstyle, pose, and hoodie color, soft blurred background rendered as flat anime-style color blocks with light bloom, subtle film grain, no text or watermark

为什么有效:这条提示词的大部分文字都用在质感上,而不是主体上——“赛璐璐上色”“可见的笔刷纹理”“光晕”——因为主体已经由参考图固定了。把眼睛“按动漫比例”重绘,是我们唯一有意让模型偏离照片的地方;其他一切(“相同发型、姿势和连帽衫颜色”)都被明确锁定,因此结果仍然能认出是同一个人,只是被插画化了。

复现它:

curl -s -X POST https://api.hiapi.ai/v1/tasks \
  -H "Authorization: Bearer $HIAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2",
    "input": {
      "prompt": "Convert this reference photo into a hand-painted Japanese anime film still: soft cel-shaded skin tones, clean thin ink linework on the face and hoodie folds, warm painterly lighting with visible brush texture, big expressive eyes redrawn in anime proportions while keeping the same hairstyle, pose, and hoodie color, soft blurred background rendered as flat anime-style color blocks with light bloom, subtle film grain, no text or watermark",
      "image_input": ["https://your-cdn.example.com/portrait.jpg"],
      "aspect_ratio": "3:4",
      "resolution": "1K"
    }
  }'

轮询 GET https://api.hiapi.ai/v1/tasks/{taskId},直到 status 为 success,然后下载 output[0].url——该链接有时效,请立即保存到永久位置。把 image_input 换成你自己的肖像,这套提示词结构就适用于任何姿势和发型清晰的主体。

配方 2:黑白漫画分格

Redraw this reference photo as a black-and-white manga panel: crisp ink linework, cross-hatched shading and screentone dot patterns for gradients, high-contrast highlights on the hoodie folds and hair, sharp manga-style eyes and facial linework while preserving the same pose, hairstyle, and expression, halftone-pattern background with a faint speed-line burst behind the subject, no color, no text, no speech bubbles

为什么有效:漫画风格的成败取决于这条提示词直接点名的两件事——网点纸(真实漫画用来代替渐变的点状阴影)和线条粗细(“清晰的墨线”“锐利的……面部线条”)。如果不明确点名网点纸,i2i 模型往往会默认采用通用的动漫式平涂阴影,而不是真正看起来像漫画的半调网点效果。“无颜色、无文字、无对话框”之所以加上,是因为用漫画训练的模型有时会凭空生成分格边框或对白文字,如果你不明确排除的话。

复现它:

{
  "model": "seedream-4.5/image-to-image",
  "input": {
    "prompt": "Redraw this reference photo as a black-and-white manga panel: crisp ink linework, cross-hatched shading and screentone dot patterns for gradients, high-contrast highlights on the hoodie folds and hair, sharp manga-style eyes and facial linework while preserving the same pose, hairstyle, and expression, halftone-pattern background with a faint speed-line burst behind the subject, no color, no text, no speech bubbles",
    "image_urls": ["https://your-cdn.example.com/portrait.jpg"],
    "aspect_ratio": "3:4",
    "resolution": "2K"
  }
}

与配方 1 相同的 /v1/tasks POST 和轮询模式——seedream-4.5/image-to-image 只是把参考图放在 image_urls(复数,数组)下,而不是 image_input,并且无论分辨率档位如何都按固定 $0.045 计费。

配方 3:喷漆涂鸦壁画

Reimagine this reference photo as a spray-painted graffiti mural portrait on a rough concrete wall: bold black outline strokes, flat saturated spray-paint color fills in magenta, cyan and yellow, visible spray texture and paint drips along the outline, subtle stencil-style highlights, keep the same pose, hairstyle, and hoodie shape as the reference, gritty urban wall texture and soft graffiti color splashes in the background, no text, no tags, no watermark

为什么有效:涂鸦是少数几种点名技法(模板印花、喷漆滴落、粗轮廓线条)比点名主体更重要的风格之一。颜色列表——“品红、青色和黄色”——也起了实际作用:如果让颜色保持开放,大多数 i2i 模型会默认采用浑浊、低饱和的色调,而不是真实喷漆壁画那种平涂、饱和的填充。与其他三个配方一样,“保持相同姿势、发型和连帽衫轮廓”是防止壁画变成普通街头艺术脸的关键。

复现它:

{
  "model": "grok-imagine-quality/image-to-image",
  "input": {
    "prompt": "Reimagine this reference photo as a spray-painted graffiti mural portrait on a rough concrete wall: bold black outline strokes, flat saturated spray-paint color fills in magenta, cyan and yellow, visible spray texture and paint drips along the outline, subtle stencil-style highlights, keep the same pose, hairstyle, and hoodie shape as the reference, gritty urban wall texture and soft graffiti color splashes in the background, no text, no tags, no watermark",
    "image_urls": ["https://your-cdn.example.com/portrait.jpg"],
    "resolution": "1k"
  }
}

注意这里是小写的 "1k"——与上面另外两个模型不同,Grok Imagine Quality 的 schema 对分辨率值区分大小写。该端点没有 aspect_ratio 字段;输出构图跟随你的参考图。

配方 4:塔罗牌肖像

Transform this reference photo into a hand-illustrated tarot card portrait: ornate gold filigree border framing the full image like a traditional tarot card, rich jewel-toned illustration style with flat decorative shading, mystical symbolic elements (stars, crescent moon, laurel vines) worked into the background behind the subject, keep the same pose, hairstyle and hoodie silhouette redrawn in painterly tarot-art linework, subtle aged-paper texture, no text, no card name, no numerals, no watermark

为什么有效:塔罗牌的外观几乎完全来自与主体无关的框架元素——金色花丝边框、神秘的背景符号(星星、新月、月桂枝)。明确点名这些元素,才能把“带华丽阴影的肖像”变成“一眼可辨的塔罗牌”。我们还明确排除了牌面数字和牌名(“无文字、无牌名、无数字”),因为用真实塔罗牌训练的模型如果不被排除,就会添加占位牌名文字。

复现它:

curl -s -X POST https://api.hiapi.ai/v1/tasks \
  -H "Authorization: Bearer $HIAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2",
    "input": {
      "prompt": "Transform this reference photo into a hand-illustrated tarot card portrait: ornate gold filigree border framing the full image like a traditional tarot card, rich jewel-toned illustration style with flat decorative shading, mystical symbolic elements (stars, crescent moon, laurel vines) worked into the background behind the subject, keep the same pose, hairstyle and hoodie silhouette redrawn in painterly tarot-art linework, subtle aged-paper texture, no text, no card name, no numerals, no watermark",
      "image_input": ["https://your-cdn.example.com/portrait.jpg"],
      "aspect_ratio": "3:4",
      "resolution": "1K"
    }
  }'

与配方 1 相同的模型(nano-banana-2),不同的提示词——这很好地提醒我们,在 i2i 风格迁移中,模型选择不如提示词对“保留什么与重新构想什么”的具体程度重要。

常见问题

哪个模型最适合照片转动漫的风格迁移? 在我们测试的三个模型中,nano-banana-2 在多次重复运行中最稳定地保持了身份特征(姿势、发型、比例),价格为 $0.085/张(1K)。seedream-4.5/image-to-image 是更便宜的选择,固定 $0.045/张,适合漫画这类以线条为主的风格;grok-imagine-quality/image-to-image 更接近全面重绘,适合涂鸦这类主体一定程度的偏离本身就是风格一部分的情况。

这些提示词需要特定照片才能生效吗? 清晰的正脸或四分之三侧面肖像,发型和服装可见,效果最稳定——这也是上面四条提示词在说“相同姿势、发型和连帽衫”时所假设的前提。背景杂乱或面部被部分遮挡,会让模型更难判断要保留什么。

我可以组合这些提示词吗,比如动漫风格的塔罗牌? 可以——替换掉技法相关的语言(赛璐璐上色 vs. 网点纸 vs. 喷漆纹理),同时保留来自另一个配方的框架语言(塔罗牌的金色边框和符号,或涂鸦的墙面纹理)。每条提示词的两半——主体保留和风格技法——都是按模块化思路写的。

为什么其中一些提示词要指定“无文字”或“无水印”? 用真实动漫剧照、漫画页面和塔罗牌训练的模型见过大量自带文字的例子——制作人员名单、拟声词、牌名——有时会主动添加占位文字。明确排除可以提前阻止这种情况;加到提示词里没有成本,还能省下一次浪费的生成。

分辨率会影响这些模型的价格吗? 取决于模型。nano-banana-2 和 seedream-4.5 在某些端点上的定价确实会随分辨率档位变化,不过 seedream-4.5/image-to-image 具体是无论档位如何都固定 $0.045。批量预算前务必查看 hiapi 的实时定价页面——费率因模型而异,并会独立更新。

要点

  • 上面每条提示词都分成两半:要保留什么(姿势、发型、身份)和要改变什么(艺术风格、技法、构图)——两半都要写清楚,否则模型会悄悄把主体漂移成某种普通的东西。
  • 点名技法而不只是目标风格,能得到更准确的结果:“网点纸点状图案”胜过“漫画风格”,“模板印花高光和喷漆滴落”胜过“涂鸦风格”。
  • 排除模型在特定风格下容易凭空生成的东西——占位文字、牌面数字、对话框——即使你觉得不需要。
  • grok-imagine-quality/image-to-image 使用小写分辨率值("1k",不是 "1K"),且没有 aspect_ratio 字段;请检查每个模型的 schema,而不是假设它与你之前用过的模型一致。
  • 四条提示词都是可直接复制粘贴的起点——通过 image_input 或 image_urls 换成你自己的参考照片,同样的结构就能沿用到不同的主体上。

想在为批量任务选定模型之前,看看单个 i2i 模型如何处理多个分辨率档位和参考图数量?Nano Banana 2 API 教程更深入地介绍了认证、请求结构和错误处理。或者直接前往 nano-banana-2 模型页面,用你自己的参考照片跑一遍。

立即开始构建持久 AI 产物

获取 API 密钥,通过一个基于任务(task)的 API 调用图像、视频和音频模型。

阅读 API 文档