Ad image

From wubin1836/ai-hive-agent-skills · View interactive version

Ad image is an AI agent skill from the GitHub repository wubin1836/ai-hive-agent-skills. Use this skill when designers, e-commerce operators, advertisers, brand teams, social-commerce teams, and content creators need to create brand key visuals and performance ad creatives with AI Hive through the AI Hive OpenAPI. It handles required media uploads, live model and price lookup, task subm

How to use this skill

Skill file

Ad Creative Image

Overview

Ad Creative Image 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.

Why use this skill

Best for

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 ad creative, advertising image, brand KV, performance marketing image.

Capabilities

| Model | publicModelId | Input |

|---|---|---|

| Ad Creative Image | public_model_nano_banana_2 | Prompt with optional 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.

Quick Start

pip3 install requests
python3 "$SKILL_PATH/scripts/imagegen.py" init --skill-name ad-image
python3 "$SKILL_PATH/scripts/imagegen.py" generate \
  --prompt "Create a polished ad creative image visual with an accurate subject, clear composition, and commercial finish"

Usage Scenarios

1. Core generation or edit

python3 "$SKILL_PATH/scripts/imagegen.py" generate \
  --prompt "Create a polished ad creative image result; preserve factual product details and leave useful copy space"

2. E-commerce main image

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"

3. Product detail page

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"

4. Advertising and campaign creative

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"

5. Social commerce and seeding content

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"

6. Reference edit or creative variations

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.png

7. Submit now and check later

python3 "$SKILL_PATH/scripts/imagegen.py" generate --prompt "Complex commercial image brief" --no-download
python3 "$SKILL_PATH/scripts/imagegen.py" task --task-id <taskId>

Command Reference

| 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 |

API Key

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.

Reliability and Cost

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.

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.