qwen-image-2-pro について
belt CLIからAlibaba Qwen-Image-2.0-Proで画像を生成・編集するスキルです。文字を多く含むデザイン、参照画像を使った編集、複数出力、再現可能な生成に対応します。
主な機能
- 01テキストからの画像生成
- 02文字を多く含むデザインの描画
- 03参照画像を使った編集
- 04複数の画像バリエーション
- 05seedによる再現可能な生成
活用シーン
- 01指定した文字入りのポスター作成
- 02マーケティングバナーの制作
- 03参照画像を使った画像編集
- 04複数のロゴ案の生成
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ magentosh/ superpowers --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 で画像を生成します。プロフェッショナルなテキスト描画や複雑なデザインに最適です。

クイックスタート
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 モデルでテキストをきれいに描画するには、次の点を参考にしてください。
- 正確なテキストを引用符で囲む:
"Title: \"Hello World!\"" - フォントの詳細を指定する:色、スタイル、サイズ、位置
- prompt_extend を無効にする:細かく制御するには
prompt_extend: falseを設定します - ネガティブプロンプトを使う:
"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
ドキュメント
- アプリの実行 - CLI でアプリを実行する方法
- 結果のストリーミング - リアルタイムの進行状況の更新
- ファイルの処理 - 画像の操作
コメント
Markdown 対応