AI Agent Hub
Back to skills
WorkRally Image Generation icon

WorkRally Image Generation

Design & Media Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @tencent-adm/workrally-image according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

When an Agent needs to turn a request into a deliverable image without exposing API keys, manually uploading references, assembling generation parameters, or handling payment callbacks, this skill wraps the WorkRally text-to-image and image-to-image flow into one predictable sequence: confirm intent, compile the prompt, complete payment, and poll the async result.

How It Works

  • Intent detection: only image creation requests, such as posters, illustrations, avatars, or style edits; video intent belongs to workrally-video.
  • Prompt compilation: before payment, preserve subject, count, copy, aspect, and prohibitions, then rewrite the request into a production brief instead of passing user wording verbatim.
  • Reference input: supports local images converted to data URI and WorkRally result_url short links; arbitrary external URLs or local paths are not accepted.
  • Payment and delivery: after invoke returns 402 and WeixinPay-Required, hand the value to WeChat AI payment; then call content with the same payment_id and handle generating, delivered, refunded, and other statuses.
  • Result handoff: on success, show result_url, state that the image is AI-generated, and download it locally when possible.

Boundaries And Notes

  • Images use a fixed 1K cloud setting, one image per call, and callers cannot override model or resolution.
  • If WeChat AI payment capability is missing, stop the flow instead of bypassing payment.
  • failed / expired states cannot reuse the old payment_id; generating can retry with the same payment_id.

Use Cases

  • Generate a vertical campaign poster while keeping the specified product logo and copy.
  • Restyle a local avatar reference into a cel-shaded anime look while preserving facial identity.
  • Convert a product photo into an e-commerce white-background image while keeping package text.
  • Change only the jacket color to dark green in an illustration without altering composition.

Best For

  • E-commerce operations staff who need fast poster, avatar, and product images from campaign copy.
  • Designers who edit clothing, style, or background from reference images while keeping the subject intact.
  • Developers integrating text-to-image, image-to-image, and WeChat AI payment into Agent apps.
  • Independent creators who produce wallpapers, illustrations, and logos for content series.