mcpField
Q
qwen-image-2

qwen-image-2

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

qwen-image-2 について

qwen-image-2は、inference.sh CLIからAlibaba Qwen-Image-2.0モデルで画像を生成・編集するスキルです。標準版とPro、複数の参照画像、解像度指定、ネガティブプロンプト、再現可能なシードを扱います。

主な機能

  1. 01テキストからの画像生成
  2. 02参照画像を使った編集
  3. 03標準版とProのモデル選択
  4. 04画像数と解像度の指定
  5. 05ネガティブプロンプトとシード
  6. 06文字入りポスターの生成

活用シーン

  1. 01イラストや風景画像の作成
  2. 02参照画像をもとにした画像編集
  3. 03文字入りポスターの制作
  4. 04再現可能な画像バリエーションの生成

インストール

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

$npx skills add https://github.com/qu-skills/superpowers --skill qwen-image-2

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

詳細

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

Qwen-Image - Alibaba 画像生成

inference.sh CLI を使って、Alibaba Qwen-Image-2.0 モデルで画像を生成・編集します。

Qwen-Image-2.0

クイックスタート

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

belt login

belt app run alibaba/qwen-image-2 --input '{"prompt": "A serene mountain landscape at sunset"}'

モデル

モデルアプリ ID速度テキスト描画最適な用途
Qwen-Image-2.0alibaba/qwen-image-2高速良好一般用途
Qwen-Image-2.0-Proalibaba/qwen-image-2-pro標準プロフェッショナルポスター、テキストが多いデザイン

Qwen Image アプリを検索

belt app search "qwen image"

例

基本的なテキストから画像への生成
belt app run alibaba/qwen-image-2 --input '{
  "prompt": "A futuristic cityscape at sunset with flying cars"
}'
複数の画像
belt app run alibaba/qwen-image-2 --input '{
  "prompt": "Minimalist logo design for a coffee shop",
  "num_images": 4
}'
カスタム解像度
belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Panoramic mountain landscape with northern lights",
  "width": 1536,
  "height": 1024
}'
テキストが多いポスター(Pro)
belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Poster with title \"Summer Sale!\" in bold red text at the top. Subtitle \"50% Off Everything\" in blue below. Beach background with palm trees.",
  "width": 1024,
  "height": 1536,
  "prompt_extend": false
}'
画像編集(複数の参照画像)
belt app run alibaba/qwen-image-2 --input '{
  "prompt": "Make the girl from Image 1 wear the dress from Image 2 in the pose from Image 3",
  "reference_images": [
    {"uri": "https://example.com/person.jpg"},
    {"uri": "https://example.com/dress.jpg"},
    {"uri": "https://example.com/pose.jpg"}
  ]
}'
ネガティブプロンプトを使用
belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Professional headshot portrait, studio lighting",
  "negative_prompt": "low resolution, blurry, deformed, oversaturated"
}'
シード値を使って再現可能にする
belt app run alibaba/qwen-image-2 --input '{
  "prompt": "Abstract geometric art in blue and gold",
  "seed": 12345
}'

入力オプション

パラメーター型説明
promptstring必須。 生成または編集する内容(最大 800 文字)
reference_imagesarray編集用の入力画像(1~3 枚)
num_imagesinteger生成する画像の数(1~6 枚)
widthinteger出力画像の幅(ピクセル、512~2048)
heightinteger出力画像の高さ(ピクセル、512~2048)
watermarkboolean「Qwen-Image」のウォーターマークを追加
negative_promptstring避けるコンテンツ(最大 500 文字)
prompt_extendbooleanプロンプトの書き換えを有効化(デフォルト:true)
seedinteger再現性のための乱数シード(0~2147483647)

サイズ制限: 総ピクセル数は 512×512 から 2048×2048 の範囲内である必要があります。

出力

フィールド型説明
imagesarray生成または編集された画像(PNG 形式)
output_metaobject画像の寸法と枚数を含むメタデータ

プロンプトのヒント

テキスト描画の場合(Pro モデルを使用):

  • 正確なテキストを引用符で囲みます:"Title: \"Hello World!\""
  • フォントのスタイル、色、位置を指定します
  • 正確に制御するには prompt_extend: false を設定します

スタイル:フォトリアリスティック、イラスト、水彩画、油絵、デジタルアート、アニメ、3D レンダリング

構図:クローズアップ、ワイドショット、俯瞰、マクロ、ポートレート、風景

照明:自然光、スタジオ照明、ゴールデンアワー、ドラマチックな影、ネオン

ワークフローの例

# 1. Generate sample input to see all options
belt app sample alibaba/qwen-image-2-pro --save input.json

# 2. Edit the prompt
# 3. Run
belt app run alibaba/qwen-image-2-pro --input input.json

モデルの比較

機能qwen-image-2qwen-image-2-pro
速度高速標準
テキスト描画良好プロフェッショナル
リアリズム標準きめ細かい
意味的な忠実度良好強化

関連スキル

# 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

# Video generation (for image-to-video)
npx skills add inference-sh/skills@ai-video-generation

すべての画像アプリを見る:belt app list --category image

ドキュメント

コメント