Image Generationのロゴ

Image Generation

コミュニティ
Negai-ai
image-generation

テキストプロンプトや参照画像から、GPT Image、Nano Banana、Seedreamを使ってラスター画像を生成、編集、調整します。ビジュアル素材の作成、コンセプトアート、製品画像やモックアップ画像、スタイルの検討、サムネイル、イラスト、画像プロバイダーAPIを介した画像変換のワークフローに使用します。

Add to TypingMind

概要

公開者Negai-ai
リポジトリAgentClaw
スキル名image-generation
スター
329
フォーク
35
同梱ファイル
7
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 7個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Negai-aiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Image Generation」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Negai-ai/AgentClaw/tree/main/agentclaw/skills/builtin_skills/image-generation
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Negai-ai/AgentClaw.git /tmp/AgentClaw
mkdir -p .claude/skills
cp -r /tmp/AgentClaw/agentclaw/skills/builtin_skills/image-generation .claude/skills/image-generation
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでImage Generationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にImage Generationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Image Generationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Image Generation Skill

Use this skill for image creation and image editing work that should call an image provider API and save usable raster files.

Provider Selection

Current complete provider:

  • OpenAI GPT Image Image API: read references/openai.md; use scripts/openai_generate_image.py for repeatable command-line generation and editing. This runner also accepts an OpenAI-compatible base_url for GPT Image compatible providers.
  • Nano Banana image generation: read references/nano_banana.md; use scripts/nano_banana_generate_image.py for Nano Banana 2, Nano Banana Pro, and Nano Banana generation/editing.
  • Seedream image generation on Volcengine Ark: read references/seedream.md; use scripts/seedream_generate_image.py for Seedream 5 text-to-image, image-to-image, coherent image groups, streaming, and web search.

Reserved provider integration:

  • Future providers should add one references/<provider>.md file and one scripts/<provider>_generate_image.py runner following references/provider_contract.md.

Workflow

  1. Capture the visual brief: subject, style, composition, aspect ratio, output count, quality, format, destination folder, and any reference images.
  2. Pick the provider. OpenAI is the supported default in this skill.
  3. Check the provider API key before calling the script. If the key is missing, tell the user the exact variable to configure; after the user provides or confirms the key, write/update it in the project .env and update the current temporary environment before retrying.
  4. Read the matching provider reference when API parameters, edits, masks, streaming, or model limits matter.
  5. Use the provider script for deterministic file output when possible; otherwise write a small one-off call using the same output contract.
  6. Save generated files to the requested path, or to generated_images when no path is specified.
  7. Return the saved file paths, output_dir, provider/model, size/quality/format, revised prompt when available, and any provider response ID. For user-visible Markdown images, use browser-safe URLs only; if the script returns local output_paths, call create_download_url for each image and use the returned URL instead of embedding local paths.

API Key Handling

Required keys by provider:

  • OpenAI official or compatible GPT Image: OPENAI_IMAGE_KEY. Compatible services may also need the optional endpoint override OPENAI_BASE_URL or --base-url.
  • Nano Banana: GOOGLE_IMAGE_KEY.
  • Seedream on Volcengine Ark: ARK_API_KEY.

The bundled runners automatically load .env before reading these variables. They check AGENTCLAW_PROJECT_DIR/.env, the current working directory .env, and the AgentClaw project .env, then copy loaded values into the script process environment without overriding already exported variables.

When a selected provider key is not configured, tell the user which key is needed and wait for the user to provide or configure it. After the user provides the value, update the project .env and the current temporary environment for this session before rerunning the provider script. Keep secrets out of prompts, logs, references, tests, and generated reports.

All bundled runners default to generated_images and include output_dir plus absolute_output_dir in their JSON result. These are local filesystem directories, not browser URLs.

OpenAI Quick Start

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "A clean product hero image of a compact desktop AI assistant device" \
  --output-dir generated_images \
  --model gpt-image-2

For explicit GPT Image output parameters:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "A polished app icon for AgentClaw, sharp claw mark plus workflow nodes" \
  --model gpt-image-2 \
  --size 1024x1024 \
  --quality high \
  --format png

For an OpenAI-compatible image service:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "A square face icon in a clean 3D style" \
  --base-url https://api.squarefaceicon.org/v1 \
  --model gpt-image-2 \
  --size 1024x1024

For an edit or reference-image composition:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "Create a cohesive product bundle image using these reference items" \
  --input-image body-lotion.png \
  --input-image soap.png \
  --output-dir generated_images

For a masked edit:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "Replace the selected area with a small indoor pool" \
  --input-image room.png \
  --mask-image mask.png

Nano Banana Quick Start

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/nano_banana_generate_image.py \
  --prompt "A professional product photo of an AI automation workspace on a clean desk" \
  --banana nano-banana-2 \
  --aspect-ratio 16:9 \
  --image-size 1K \
  --output-dir generated_images

For professional assets or stronger text rendering:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/nano_banana_generate_image.py \
  --prompt "A premium magazine cover with the title AgentClaw, no other cover text" \
  --banana nano-banana-2 \
  --aspect-ratio 3:4 \
  --image-size 2K

Seedream Quick Start

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/seedream_generate_image.py \
  --prompt "A cinematic wide-angle image of a vintage train bursting out of a black hole" \
  --seedream seedream-5 \
  --size 2K \
  --output-dir generated_images

For a coherent group:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/seedream_generate_image.py \
  --prompt "Generate four coherent illustrations of the same courtyard across spring, summer, autumn, and winter" \
  --seedream seedream-5 \
  --sequential-image-generation auto \
  --max-images 4 \
  --stream

For image-to-image:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/seedream_generate_image.py \
  --prompt "Use this logo as reference and create outdoor sports brand visuals" \
  --input-image logo.png \
  --seedream seedream-5 \
  --size 2K

Notes

  • Use one key variable per provider: OPENAI_IMAGE_KEY, GOOGLE_IMAGE_KEY, or ARK_API_KEY.
  • For OpenAI-compatible GPT Image services, use OPENAI_BASE_URL or pass --base-url.
  • For edits with reference images or masks, keep all source files local and pass their paths explicitly.
  • Prefer PNG for transparent or lossless assets, JPEG for faster photo-style outputs, and WebP for compact web delivery.
  • Do not display local paths such as generated_images/... or absolute_output_dir inside Markdown image links. The dashboard will resolve relative paths under /dashboard/, for example /dashboard/generated_images/..., which is not a served file URL. Use create_download_url, public_urls, image_markdown, or signed /api/files/...?token=... URLs for display.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Image Generation」では何ができますか?

テキストプロンプトや参照画像から、GPT Image、Nano Banana、Seedreamを使ってラスター画像を生成、編集、調整します。ビジュアル素材の作成、コンセプトアート、製品画像やモックアップ画像、スタイルの検討、サムネイル、イラスト、画像プロバイダーAPIを介した画像変換のワークフローに使用します。

TypingMindでImage Generationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Image Generationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにImage Generationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Negai-ai/AgentClaw/tree/main/agentclaw/skills/builtin_skills/image-generationを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Image Generationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Image Generationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもImage Generationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Image Generation」は無料ですか?

はい。Negai-aiがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇