mcpField
Q
qwen-image-2-pro

qwen-image-2-pro

github.com/inference-shクリエイティブ・メディア789921 回インストール2 週間前に更新
リポジトリ

qwen-image-2-pro について

inference.sh のコマンドラインから Alibaba Qwen-Image-2.0-Pro で画像を生成・編集するスキルです。画像内の文字や複雑な構成、複数のバリエーションを必要とする制作者向けです。

主な機能

  1. 01テキストからの画像生成
  2. 02参照画像を使った編集
  3. 03文字や複雑なデザインの描画
  4. 04サイズ・枚数・シードの指定

活用シーン

  1. 01文字入りポスターやバナーの作成
  2. 02ロゴ案の複数生成
  3. 03参照画像を使ったスタイル変換

インストール

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

$npx skills add https://github.com/inference-sh/skills --skill qwen-image-2-pro

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

詳細

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

Qwen-Image Pro - プロフェッショナルな画像生成

inference.sh CLI を使って Alibaba Qwen-Image-2.0-Pro で画像を生成します。プロフェッショナルなテキスト描画や複雑なデザインに最適です。

Qwen-Image-2.0-Pro

クイックスタート

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

belt login

belt app run alibaba/qwen-image-2-pro --input '{"prompt": "Poster with title \"Welcome!\" in bold blue text"}'

Pro モデルの機能

  • プロフェッショナルなテキスト描画:細部まで精緻に表現した複数行や段落レベルのテキスト
  • より精緻なリアリズム:質感やフォトリアリスティックなシーンをより美しく表現
  • より高い意味的忠実度:複雑なプロンプトにより正確に従います
  • 複雑なデザイン:テキストと画像の組み合わせに最適です

例

基本的なテキストから画像への変換
belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "A futuristic cityscape at sunset with flying cars"
}'
テキストを多く含むポスター
belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Healing-style hand-drawn poster featuring three puppies playing with a ball. The main title \"Come Play Ball!\" is prominently displayed at the top in bold, blue cartoon font. Below, the subtitle \"Join the Fun!\" appears in green font.",
  "width": 1024,
  "height": 1536,
  "prompt_extend": false
}'
マーケティングバナー
belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Professional marketing banner for summer sale. Large text \"SUMMER SALE\" in white on gradient sunset background. \"50% OFF\" in yellow below. Clean, modern design.",
  "width": 1920,
  "height": 1080,
  "prompt_extend": false,
  "negative_prompt": "blurry text, distorted text, low quality"
}'
複数のバリエーション
belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Minimalist logo design for a coffee shop called \"Bean & Brew\"",
  "num_images": 4
}'
画像編集(スタイル変換)
belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Make the person from Image 1 wear the outfit from Image 2",
  "reference_images": [
    {"uri": "https://example.com/person.jpg"},
    {"uri": "https://example.com/outfit.jpg"}
  ],
  "num_images": 2
}'
再現可能な生成
belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Abstract geometric art in blue and gold",
  "seed": 12345
}'

入力オプション

パラメーター型説明
prompt文字列必須。 生成または編集する内容(最大800文字)
reference_images配列編集用の入力画像(1~3枚)
num_images整数生成する画像の数(1~6枚)
width整数出力幅(ピクセル単位、512~2048)
height整数出力高さ(ピクセル単位、512~2048)
watermarkブール値「Qwen-Image」ウォーターマークを追加
negative_prompt文字列避ける内容(最大500文字)
prompt_extendブール値プロンプトの書き換えを有効にする(デフォルト:true)
seed整数再現性のための乱数シード(0~2147483647)

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

出力

フィールド型説明
images配列生成または編集された画像(PNG 形式)
output_metaオブジェクト寸法と枚数のメタデータ

テキスト描画のヒント

Pro モデルでテキストをきれいに描画するには、次の点を参考にしてください。

  1. 正確なテキストを引用符で囲む:"Title: \"Hello World!\""
  2. フォントの詳細を指定する:色、スタイル、サイズ、位置
  3. prompt_extend を無効にする:細かく制御するには prompt_extend: false を設定します
  4. ネガティブプロンプトを使う:"blurry text, distorted text, low quality"

プロンプトの構成例:

Poster with the title "GRAND OPENING" in large red serif font at the top center.
Below, the date "March 15, 2024" in smaller black text.
Background: elegant gold and white gradient.
Style: professional, clean, modern.

推奨されるネガティブプロンプト

{
  "negative_prompt": "low resolution, low quality, deformed limbs, deformed fingers, oversaturated, waxy, no facial details, overly smooth, AI-like, chaotic composition, blurry text, distorted text"
}

ワークフロー例

# 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

Python SDK

from inferencesh import inference

client = inference()

# Text-heavy poster
result = client.run({
    "app": "alibaba/qwen-image-2-pro",
    "input": {
        "prompt": "Poster with title \"Welcome!\" in bold blue text at top",
        "width": 1024,
        "height": 1536,
        "prompt_extend": False
    }
})
print(result["output"])

# Stream live updates
for update in client.run({
    "app": "alibaba/qwen-image-2-pro",
    "input": {
        "prompt": "Professional product photography of a watch"
    }
}, stream=True):
    if update.get("progress"):
        print(f"progress: {update['progress']}%")
    if update.get("output"):
        print(f"output: {update['output']}")

関連スキル

# Standard Qwen-Image (faster, general use)
npx skills add inference-sh/skills@qwen-image

# 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

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

ドキュメント

コメント