算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
image-2-multi-reference-image【设计与创意】Use this skill when designers, e-commerce operators, advertisers, brand teams, social-commerce teams, and content creators need to combine subjects, materials, compositions, and styles from multiple references with Image2 through the AI Hive OpenAPI. It handles required media uploads, live model and price lookup, task submission, progress polling, an…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Image2 Multi-Reference Image Generation helps designers, e-commerce operators, advertisers, brand teams, social-commerce teams, and content creators turn briefs, product information, and reference images into production-ready visuals. Describe the purpose, subject, composition, style, lighting, required text, protected elements, and output needs; the bundled CLI handles AI Hive OpenAPI calls and downloads the result.
Product photography, marketplace images, product detail pages, posters, ad creatives, social commerce, seeding content, retouching, and background replacement. It is also useful when users search for multi-reference image, multi-image composition, reference fusion.
| Model | publicModelId | Input |
|---|---|---|
| Image2 Multi-Reference Image Generation | public_model_gpt_image_2 | At least two reference images |
The default route is COST_FIRST. Pass live model options with --param key=value; supported values come from the current AI Hive imageConfig.
pip3 install requests
python3 "$SKILL_PATH/scripts/imagegen.py" init --skill-name image-2-multi-reference-image
python3 "$SKILL_PATH/scripts/imagegen.py" generate \
--prompt "Create a polished image2 multi-reference image generation visual with an accurate subject, clear composition, and commercial finish" \
+ --image /path/to/reference-1.png /path/to/reference-2.png
python3 "$SKILL_PATH/scripts/imagegen.py" generate \
--prompt "Create a polished image2 multi-reference image generation result; preserve factual product details and leave useful copy space" \
+ --image /path/to/reference-1.png /path/to/reference-2.png
python3 "$SKILL_PATH/scripts/imagegen.py" generate \
--prompt "Marketplace hero image: centered product occupying roughly 70 percent of the frame, clean studio background, realistic materials, copy-safe area on the upper right" \
+ --image /path/to/reference-1.png /path/to/reference-2.png
python3 "$SKILL_PATH/scripts/imagegen.py" generate \
--prompt "Product detail page benefit image: show the complete product plus one enlarged material detail; subject on the left, space for three benefit statements on the right; do not invent claims" \
+ --image /path/to/reference-1.png /path/to/reference-2.png
python3 "$SKILL_PATH/scripts/imagegen.py" generate \
--prompt "Brand campaign key visual for young urban customers: one clear promise, strong product focus, contemporary contrast, and a clean call-to-action area" \
+ --image /path/to/reference-1.png /path/to/reference-2.png
python3 "$SKILL_PATH/scripts/imagegen.py" generate \
--prompt "Creator-style product discovery cover in a real home setting: natural product use, practical benefit, bright lifestyle photography, and space for a short headline" \
+ --image /path/to/reference-1.png /path/to/reference-2.png
python3 "$SKILL_PATH/scripts/imagegen.py" generate \
--prompt "Preserve the subject, logo placement, shape, and key colors; improve background, lighting, and surface details without changing the product structure" \
+ --image /path/to/reference-1.png /path/to/reference-2.png
python3 "$SKILL_PATH/scripts/imagegen.py" generate --prompt "Complex commercial image brief" --no-download \
+ --image /path/to/reference-1.png /path/to/reference-2.png
python3 "$SKILL_PATH/scripts/imagegen.py" task --task-id <taskId>
| Option | Purpose |
|---|---|
--prompt | Describe the image or edit |
--image | Supply one or more reference images |
--batch | Request multiple results |
--param key=value | Pass live model parameters |
--routing COST_FIRST | Select the cost-first route |
--no-download | Submit and return the task ID without waiting |
Run the init command above, or set AI_HIVE_API_KEY, use --api-key, or create ~/.ai-hive/config.json. API keys use the sk-api-* format. Never commit a real API key.
The script looks up the live model entry and pricing snapshot at runtime. Model availability, reference-image limits, parameters, and prices can change. Keep a returned task ID and query the existing task instead of submitting a duplicate that may be billed twice.
--image inputs required by this skill.401 Unauthorized: verify that the API key is complete, active, and not committed to source control.imageConfig for accepted values and image limits.task command later.