mcpField
G
gpt-image

gpt-image

github.com/101-skillsクリエイティブ・メディア1612.8k 回インストール12 週間前に更新
リポジトリ

gpt-image について

gpt-image は inference.sh CLI から OpenAI の GPT-Image-2 を使って画像を生成・編集するスキルです。テキストからの作成に加え、参照画像編集、マスクによる部分修正、複数枚生成に対応します。

主な機能

  1. 01テキストから画像を生成
  2. 02参照画像を使った編集
  3. 03マスクによる部分修正
  4. 04一度に最大 10 枚を生成
  5. 05PNG・JPEG・WebP 出力

活用シーン

  1. 01説明文から商品画像を作成
  2. 02ロゴ案を複数まとめて生成
  3. 03画像の背景を置き換え
  4. 04マスクで指定部分を編集

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/101-skills/superpowers --skill gpt-image

インストール後、Claude Code で/gpt-imageを入力して読み込まれたか確認します。

詳細

belt CLI スキルをインストール: npx skills add belt-sh/cli

GPT-Image-2

inference.sh CLI を使用して、OpenAI の GPT-Image-2 で画像を生成・編集します。

クイックスタート

inference.sh CLI(belt)が必要です。インストール手順

belt login

belt app run openai/gpt-image-2 --input '{"prompt": "a cat astronaut floating in space"}'

機能

GPT-Image-2 は、テキストからの画像生成、参照画像を使った画像編集、マスクベースのインペインティングに、単一のモデルで対応しています。

機能説明
テキストから画像を生成テキストプロンプトから画像を生成します
画像編集参照画像を使って画像を編集します
インペインティング特定の領域をマスクベースで編集します
バッチ生成一度に最大 10 枚の画像を生成します
複数の形式PNG、JPEG、WebP で出力します
柔軟な解像度32px 刻みで任意のサイズを指定できます(256~4096)

使用例

テキストから画像を生成
belt app run openai/gpt-image-2 --input '{
  "prompt": "professional product photo of sneakers on a white background, studio lighting",
  "quality": "high"
}'
複数の画像
belt app run openai/gpt-image-2 --input '{
  "prompt": "minimalist logo design for a coffee shop",
  "n": 4,
  "quality": "medium"
}'
参照画像を使った画像編集
belt app run openai/gpt-image-2 --input '{
  "prompt": "change the background to a beach at sunset",
  "images": ["https://your-image.jpg"]
}'
複数の参照画像
belt app run openai/gpt-image-2 --input '{
  "prompt": "combine these two characters into one scene",
  "images": ["https://character1.jpg", "https://character2.jpg"]
}'
マスクを使ったインペインティング
belt app run openai/gpt-image-2 --input '{
  "prompt": "replace with a red sports car",
  "images": ["https://street-scene.jpg"],
  "mask": "https://car-mask.png"
}'
カスタム解像度
belt app run openai/gpt-image-2 --input '{
  "prompt": "wide cinematic landscape, mountains at golden hour",
  "width": 1920,
  "height": 1080,
  "quality": "high"
}'
高速な下書き
belt app run openai/gpt-image-2 --input '{
  "prompt": "quick concept sketch of a robot",
  "quality": "low"
}'

料金

品質画像 1 枚あたりの料金(約)
低$0.006
中$0.024
高$0.21

解像度が大きいほど料金が高くなります。料金の詳細は belt app get openai/gpt-image-2 をご覧ください。

パラメーター

パラメーター型デフォルト説明
promptstring必須画像を説明するテキストプロンプト
imagesarray-編集に使用する参照画像
maskstring-インペインティング用のマスク画像
ninteger1画像の枚数(1~10)
qualitystring-low、medium、high
widthinteger-出力幅(256~4096、32 の倍数)
heightinteger-出力高(256~4096、32 の倍数)
output_formatstringpngpng、jpeg、webp
output_compressioninteger-jpeg/webp の圧縮レベル(0~100)

関連スキル

# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli

# All image generation models
npx skills add inference-sh/skills@ai-image-generation

# FLUX models
npx skills add inference-sh/skills@flux-image

# Pruna P-Image (fast & economical)
npx skills add inference-sh/skills@p-image

すべての画像アプリを表示するには、belt app list --category image を実行してください。

ドキュメント

コメント