まずナノバナナで立ち絵を作る。
AntiGrabityのopusに画像生成用プロンプトを相談して、好みの画風のイラストと共にバナナに提示するのがおすすめ。
白背景にニュートラルポーズ、推奨サイズは1024x1536。
画像がぼやけた場合はバナナに「高品質に補正して」と伝えればなんとかなる。
画像の隅に顔のクロップを追加すると効果的。
詳しくは下記ドキュメントをAGに投げて。
https://docs.novelai.net/en/image/characterreference
以下、ワークフロー紹介。
とりあえずAGのopusに読ませれば不明な点は解説してくれると思う。

🔞 NovelAI エロ画像生成ワークフロー

AIロールプレイ中に高品質なエロ挿絵を生成するためのガイド

⚠️ このガイドはNSFWコンテンツ生成用です。NovelAIアカウントとAnlasが必要です。


📋 目次

  1. 必要なもの
  2. セットアップ
  3. 基本的な使い方
  4. プロンプトの書き方
  5. シーンテンプレート
  6. Character Reference(キャラ一貫性機能)
  7. Tips & トラブルシューティング

必要なもの

  • NovelAI アカウント + Anlas(サブスク or 都度購入どちらでもOK。都度購入が割安か)
  • Python 3.10以上
  • novelai-sdk(Pythonライブラリ)

💡 Anlasは月額サブスクなしでも直接購入可能です。


セットアップ

1. novelai-sdk のインストール

pip install novelai-sdk

2. APIキーの取得

  1. NovelAI にログイン
  2. アカウント設定アカウント永続的APIトークンを取得
  3. トークンをコピー

3. 環境変数の設定

.env ファイルを作成:

NOVELAI_API_KEY=pst-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

または、環境変数として設定:

1
2
3
4
5
# Windows (PowerShell)
$env:NOVELAI_API_KEY = "pst-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

# Linux/Mac
export NOVELAI_API_KEY="pst-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

基本的な使い方

最小コード例

from novelai import NovelAI
from novelai.types import GenerateImageParams

client = NovelAI()

params = GenerateImageParams(
    prompt="masterpiece, best quality, 1girl, nude, nsfw",
    model="nai-diffusion-4-5-full",
    size=(768, 512),  # 横長
)

images = client.image.generate(params)
images[0].save("output.png")

サイズの選び方

サイズ 用途
(768, 512) 横長(セックスシーン推奨)
(512, 768) 縦長(立ち絵・ポートレート)
(640, 640) 正方形

プロンプトの書き方

基本構造

[品質タグ], [キャラ特徴], [表情], [体位・ポーズ], [背景], [スタイル], nsfw

必須タグ(品質向上)

masterpiece, best quality, ultra detailed

推奨スタイルタグ

soft lighting, soft skin, beautiful skin, detailed skin

エロシーン用タグ

(heart-shaped pupils:1.4), (ahegao:1.2), open mouth, tongue out, blush, sweat, tears

シーンテンプレート

表情

シーン タグ
微笑み (smile:1.3), closed mouth, blush
アヘ顔 (ahegao:1.2), (heart-shaped pupils:1.2), open mouth, tongue out, blush, (tears:1.1), sweat
イキ顔 (orgasm:1.3), (rolling eyes:1.2), open mouth, drooling, blush, sweat

セックス体位(全身表示・女の子フォーカス)

全ての体位に以下の共通タグを使用:

  • (full body:1.3) - 全身が見える
  • (solo focus:1.2) - 女の子だけにフォーカス
  • 1girl のみ指定 - 男の描画を抑制
  • (penis:1.2) - 挿入表現は維持
体位 タグ
正常位 (full body:1.3), (solo focus:1.2), 1girl, (sex:1.4), (vaginal:1.3), (missionary position:1.3), (lying on back:1.2), (spread legs:1.3), (penis:1.2)
バック (full body:1.3), (solo focus:1.2), 1girl, (sex from behind:1.3), (doggystyle:1.2), (on all fours:1.2), (ass:1.2), (penis:1.2)
騎乗位 (full body:1.3), (solo focus:1.2), 1girl, (sex:1.4), (cowgirl position:1.3), (straddling:1.2), (girl on top:1.2), (penis:1.2)
側位 (full body:1.3), (solo focus:1.2), 1girl, (sex:1.4), (spooning:1.3), (lying on side:1.2), (penis:1.2)
立ちバック (full body:1.3), (solo focus:1.2), 1girl, (sex from behind:1.3), (standing sex:1.3), (bent over:1.2), (penis:1.2)
フェラ (fellatio:1.4), (licking penis:1.3), tongue out, (pov:1.2), looking up at viewer, blush, lewd face, saliva

フレーミング

タグ 効果
full body 全身
upper body 上半身
close-up アップ
face focus 顔フォーカス
ass focus お尻フォーカス
breast focus 胸フォーカス

視点

タグ 効果
pov 主観視点
from above 上から
from below 下から
from side 横から
looking at viewer カメラ目線

Character Reference

概要

Character Reference は、参照画像を元に同じキャラクターの見た目を維持したまま別のポーズで生成できる機能です。

  • V4.5モデル専用
  • 追加コスト: +5 Anlas/枚
  • オリキャラの一貫性維持に最適!

使い方

from novelai import NovelAI
from novelai.types import CharacterReference, GenerateImageParams

client = NovelAI()

# キャラ参照画像を設定
character_references = [
    CharacterReference(
        image="./my_character.png",  # 参照画像のパス
        type="character",
        fidelity=1.0,  # 忠実度 (0.0〜1.0)
    )
]

params = GenerateImageParams(
    prompt="masterpiece, best quality, 1girl, nude, sex, nsfw",
    model="nai-diffusion-4-5-full",
    size=(768, 512),
    character_references=character_references,
)

images = client.image.generate(params)
images[0].save("output.png")

最適な参照画像

  • 全身立ち絵 + シンプルな背景
  • ニュートラルなポーズ(正面立ち推奨)
  • 顔クロップを右上に追加するとさらに効果UP
  • 推奨サイズ: 1024x1536, 1472x1472, 1536x1024

Fidelity(忠実度)の目安

効果
1.0 最高忠実度(キャラの詳細を重視)
0.7 バランス型
0.4 スタイル柔軟性重視

Tips

品質向上のコツ

  1. ネガティブプロンプトを活用
    flat color, low contrast, washed out, dull colors, bad anatomy
    
  2. 体の特徴を明示
    large breasts, slim waist, wide hips, navel, collarbone
    
  3. 肌の質感タグ
    soft skin, beautiful skin, detailed skin, shiny skin
    

よくある問題

問題 解決策
男が目立ちすぎる 1girl のみ指定 + (solo focus:1.2)
顔が崩れる beautiful face, detailed face 追加
体が歪む correct anatomy, proportional body 追加
背景が複雑すぎる simple background, white background 追加

推奨モデル

モデル 用途
nai-diffusion-4-5-full 推奨(NSFW対応・高品質)
nai-diffusion-4-5-curated SFW向け・上品な表現

完全なサンプルコード

#!/usr/bin/env python3
"""
NovelAI エロ画像生成サンプル
"""

from novelai import NovelAI
from novelai.types import CharacterReference, GenerateImageParams

def generate_sex_scene(
    character_image: str = None,
    position: str = "missionary",
    output: str = "output.png"
):
    client = NovelAI()

    # 体位テンプレート
    positions = {
        "missionary": "(full body:1.3), (solo focus:1.2), 1girl, (sex:1.4), (vaginal:1.3), (missionary position:1.3), (lying on back:1.2), (spread legs:1.3), (penis:1.2)",
        "doggystyle": "(full body:1.3), (solo focus:1.2), 1girl, (sex from behind:1.3), (doggystyle:1.2), (on all fours:1.2), (ass:1.2), (penis:1.2)",
        "cowgirl": "(full body:1.3), (solo focus:1.2), 1girl, (sex:1.4), (cowgirl position:1.3), (straddling:1.2), (girl on top:1.2), (penis:1.2)",
        "fellatio": "(fellatio:1.4), (licking penis:1.3), tongue out, (pov:1.2), looking up at viewer, blush, lewd face, saliva",
    }

    # プロンプト構築
    base = "masterpiece, best quality, ultra detailed"
    style = "soft lighting, soft skin, beautiful skin, detailed skin"
    expression = "(ahegao:1.2), (heart-shaped pupils:1.3), open mouth, blush, sweat, tears"
    position_tags = positions.get(position, positions["missionary"])

    prompt = f"{base}, {position_tags}, {expression}, {style}, nsfw"

    # Character Reference設定
    character_references = None
    if character_image:
        character_references = [
            CharacterReference(
                image=character_image,
                type="character",
                fidelity=1.0,
            )
        ]

    # 生成パラメータ
    params = GenerateImageParams(
        prompt=prompt,
        model="nai-diffusion-4-5-full",
        size=(768, 512),
        steps=28,
        scale=5.0,
        character_references=character_references,
    )

    print(f"Generating {position} scene...")
    images = client.image.generate(params)

    if images:
        images[0].save(output)
        print(f"Saved: {output}")
    else:
        print("Error: No images generated")


if __name__ == "__main__":
    # 基本的な使い方
    generate_sex_scene(position="missionary", output="missionary.png")

    # Character Reference付き
    # generate_sex_scene(
    #     character_image="./my_character.png",
    #     position="cowgirl",
    #     output="cowgirl.png"
    # )

クレジット


ライセンス

このガイドは自由に共有・改変可能です。
NovelAIの利用には同社の利用規約が適用されます。


Happy generating! 🔞✨
```

Edit

Pub: 06 Jan 2026 12:35 UTC

Edit: 08 Jan 2026 14:03 UTC

Views: 837