Xpersona
多

多模态图像生成

CLAWHUB · Unverified

AI驱动的图片生成与编辑工具,用于制作高质量产品图。当用户要求生成图片、制作图片、编辑照片、文生图、图生图、换背景、变换风格、替换图片中的物体、将产品合成到场景中、换模特、制作任何类型的AI生成视觉内容、AI drawing, image generation, text-to-image, image-to-image, background replacement, style transfer, product image creation, AI image editing时触发此技能。即使用户未明确说"AI图片",只要其请求涉及生成、修改或变换图片,也应触发此技能。 Skill: 多模态图像生成 Owner: linkfox-ai Summary: AI驱动的图片生成与编辑工具,用于制作高质量产品图。当用户要求生成图片、制作图片、编辑照片、文生图、图生图、换背景、变换风格、替换图片中的物体、将产品合成到场景中、换模特、制作任何类型的AI生成视觉内容、AI drawing, image generation, text-to-image, image-to-image, background replacement, style transfer, product image creation, AI image editing时触发此技能。即使用户未明确说"AI图片",只要其请求涉及生成、修改或变换图片,也应触发此技能。 Tags: latest:1.0.7 Version history: v1.0.7 | 2026-09-14T05:22:50.484Z | user Update fr

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-multimodal-generate-image
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-multimodal-generate-image/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

107,970 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: linkfox-multimodal-generate-image
description: AI驱动的图片生成与编辑工具,用于制作高质量产品图。当用户要求生成图片、制作图片、编辑照片、文生图、图生图、换背景、变换风格、替换图片中的物体、将产品合成到场景中、换模特、制作任何类型的AI生成视觉内容、AI drawing, image generation, text-to-image, image-to-image, background replacement, style transfer, product image creation, AI image editing时触发此技能。即使用户未明确说"AI图片",只要其请求涉及生成、修改或变换图片,也应触发此技能。
---

# AI Image Generation

This skill guides you on how to generate and edit images using the AI image generation service, helping users create high-quality product images, modify existing images, and perform creative visual transformations.

## Core Concepts

The AI Image Generation tool produces new images based on a text prompt and optional reference images. It supports a wide range of use cases:

- **Text-to-image**: Generate a brand-new image purely from a text description.
- **Image-to-image**: Provide one or more reference images and a prompt to generate a new image that preserves elements from the references.
- **Image editing**: Modify specific elements, colors, backgrounds, or styles in an existing image.
- **Product compositing**: Place a product from one image into a scene from another image.
- **Model swapping**: Replace the model or mannequin in a product photo.

**Reference images are strongly recommended** when the user wants the output to closely resemble an existing product or scene. Up to 3 reference image URLs can be provided, separated by commas.

## Parameter Guide

| Parameter | Required | Description | Default |
|-----------|----------|-------------|---------|
| prompt | Yes | Text description of the desired image. Supports text-to-image, image-to-image, editing, model swapping, and more. Max 1000 characters. | -- |
| referenceImageUrl | No | URL(s) of reference image(s). Separate multiple URLs with commas. Up to 3 images supported. Max 1000 characters. | -- |
| aspectRatio | No | Aspect ratio of the output image. | 1:1 |

### Supported Aspect Ratios

| Value | Description |
|-------|-------------|
| 1:1 | Square (default) |
| 3:4 | Portrait |
| 4:3 | Landscape |
| 9:16 | Vertical fullscreen |
| 16:9 | Horizontal fullscreen |

### Prompt Writing Tips

1. **Be specific and descriptive**: Clearly describe the subject, scene, lighting, style, and mood you want.
2. **Reference images by number**: When using reference images, refer to them as "image 1", "image 2", etc., in the order they appear in `referenceImageUrl`.
3. **State the operation explicitly**: Use clear action verbs like "replace", "change", "put", "combine", "generate".
4. **Keep within 1000 characters**: Prompts have a maximum length of 1000 characters.

### Prompt Examples by Scenario

**Object replacement**:
```
Replace the vase on the table in image 1 with a potted plant
```

**Background color change**:
```
Change the background color of image 1 to pure white
```

**Product compositing**:
```
Place the product from image 2 onto the marble countertop in image 1
```

**Style transfer**:
```
Transform image 1 into the 

_meta.json

{
  "ownerId": "kn7dmc1t4j28hem1twwyav85p182pb1j",
  "slug": "linkfox-multimodal-generate-image",
  "version": "1.0.7",
  "publishedAt": 1789363370484
}

references/api.md

# AI绘图 API 参考

## 调用规范

- **请求地址**:`${LINKFOX_TOOL_GATEWAY}/multimodal/generateImage`
- **请求方式**:POST,Content-Type: application/json
- **认证方式**:Header `Authorization: <api_key>`,api_key 从环境变量 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取(如未配置 按 SKILL.md 的 **## 解决认证和算力问题** 处理)

## 请求参数

POST Body(JSON):

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| prompt | string | 是 | 提示词(支持各种文生图、图生图、图片修改、模特更换),最大长度 1000 |
| referenceImageUrl | string | 否 | 参考图地址,多个图片用逗号隔开,最多支持3个图片,最大长度 1000 |
| aspectRatio | string | 否 | 宽高比,支持 `1:1`(正方形,默认)、`3:4`(竖版)、`4:3`(横版)、`9:16`(竖版全屏)、`16:9`(横版全屏),默认 `1:1` |


## 响应结构

| 字段 | 类型 | 说明 |
|------|------|------|
| id | string | id |
| finished | boolean | 是否完成 |
| status | string | 状态 |
| text | string | 图片内容 |
| type | string | markdown类型 |
| title | string | 图片 |
| costToken | integer | 使用token |

## 错误码

正常情况下,接口的 HTTP 状态码均为 200,业务的成功与否通过响应体中的 errorCode 字段区分(errorCode = 200 表示成功,其他值表示业务错误)。当遇到未授权等情况时,HTTP 状态码为 401,且对应的 errorCode 也是 401。

| errcode | 含义 | 处理建议 |
|---------|------|----------|
| 200 | 成功 | 正常解析业务字段 |
| 401 | 认证失败 | HTTP 401 或 authorized error:按 SKILL.md 的 **## 解决认证和算力问题** 处理。 |
| 402 | 算力或余额不足 | HTTP 402:按 SKILL.md 的 **## 解决认证和算力问题** 处理。 |
| 其他非200值 | 业务异常 | 参考 `errmsg` 字段获取具体错误原因 |

错误响应示例:

```json
{
    "errcode": 401,
    "errmsg": "authorized error"
}
```

## curl 示例

```bash
curl -X POST https://tool-gateway.linkfox.com/multimodal/generateImage \
  -H "Authorization: $LINKFOXAGENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "生成一张红色手提包的专业商品照,白色背景,影棚灯光",
    "aspectRatio": "1:1"
  }'
```

### 带参考图示例

```bash
curl -X POST https://tool-gateway.linkfox.com/multimodal/generateImage \
  -H "Authorization: $LINKFOXAGENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "更换图片1的背景颜色为热带海滩场景",
    "referenceImageUrl": "https://example.com/product.jpg",
    "aspectRatio": "4:3"
  }'
```

---

## Feedback API

> This endpoint is **separate** from the tool API above. Do not mix the two base URLs.

- **POST** `https://skill-api.linkfox.com/api/v1/public/feedback`
- **Content-Type:** `application/json`

```json
{
  "skillName": "linkfox-xxx-xxx",
  "sentiment": "POSITIVE",
  "category": "OTHER",
  "content": "Results were accurate, user was satisfied."
}
```

**Field rules:**
- `skillName`: Use this skill's `name` from the YAML frontmatter
- `sentiment`: Choose ONE — `POSITIVE` (praise), `NEUTRAL` (suggestion without emotion), `NEGATIVE` (complaint or error)
- `category`: Choose ONE — `BUG` (malfunction or wrong data), `COMPLAINT` (user dissatisfaction), `SUGGESTION` (improvement idea), `OTHER`
- `content`: Include what the user said or intended, what actually happened, and why it is a problem or praise

references/onboarding.md

# 解决认证和算力问题

调用本 skill 时若网关返回 **auth** 或 **billing** 错误,走本 skill 自带的 `scripts/onboarding.py` 完成引导。

**auth 场景**:`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`;或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。
1. 若已配置 key → 先让用户重启会话(最常见误判),仍失败让用户重新取 key 或换手机号重注册
2. 未配置 → 询问:自助去 https://agent.linkfox.com/ 取 key,或提供手机号让脚本注册
3. 手机号路径:
   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements
   - 收到验证码后:`python scripts/onboarding.py login <phone> <code>`
   - 拿到 `api_key` 后把下面三平台配置转发给用户,提示重启会话生效:
     - Windows PowerShell(永久):`setx LINKFOX_AGENT_API_KEY "<key>"`
     - macOS zsh:`echo 'export LINKFOX_AGENT_API_KEY="<key>"' >> ~/.zshrc && source ~/.zshrc`
     - Linux bash:`echo 'export LINKFOX_AGENT_API_KEY="<key>"' >> ~/.bashrc && source ~/.bashrc`
     - 变量名 `LINKFOX_AGENT_API_KEY`(主推)或 `LINKFOXAGENT_API_KEY`(老规范)任一即可

**billing 场景**:`errcode=402` 或消息含 `算力/余额/quota/insufficient/充值/套餐到期`。
- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单,否则输出编号清单让用户选
- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`(通常 `wechat/alipay`)
- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`(标注兜底)
- 已付款可选调 `python scripts/onboarding.py query <order_id>`,不主动轮询

排除 `errcode=403`(无权限,不归入这两类)。所有子命令输出 stdout JSON,`error` 字段已含阶段前缀,透传给用户即可。完整用法:`python scripts/onboarding.py --help`。

skill-card.md

## Description:

Generates and edits AI images for product imagery, background changes, style transfer, product compositing, and model swaps using LinkFox's multimodal image service.

This skill is ready for commercial/non-commercial use.

## Publisher:

[linkfox-ai](https://clawhub.ai/user/linkfox-ai)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and external users use this skill to route image-generation and image-editing requests to LinkFox, including text-to-image, image-to-image, product compositing, background replacement, style transfer, and model swapping.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Local reference images uploaded through the skill become public URLs for use by the image-generation API.

Mitigation: Confirm each upload with the user first, avoid sensitive or private images, and remind the user that uploaded URLs are public and temporary.

Risk: The skill uses an external paid LinkFox image service with billing and account onboarding flows.

Mitigation: Confirm cost-sensitive actions before calling the service, stop on authentication or billing errors, and route users through the documented onboarding flow only when they approve.

Risk: API keys may be exposed if copied into shell startup files or chat history.

Mitigation: Prefer a secret manager or protected environment configuration and avoid printing or storing API keys in shared logs.

Risk: Automatic feedback reporting can send task context to a separate LinkFox feedback endpoint.

Mitigation: Do not send feedback automatically unless the user explicitly approves the exact content being reported.

Risk: The skill persists generated responses and cache files in local linkfox directories.

Mitigation: Review saved response files for sensitive prompts or generated content and remove local cache/session data when it is no longer needed.

## Reference(s):

- [AI drawing API reference](artifact/references/api.md)
- [Authentication and billing onboarding](artifact/references/onboarding.md)

## Skill Output:

**Output Type(s):** [markdown, json, shell commands, guidance]

**Output Format:** [Markdown image display, JSON API responses, and inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Generated-image responses may be cached locally for 24 hours and full responses may be saved under a local linkfox session directory.]

## Skill Version(s):

1.0.7 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to 多模态图像生成 and adjacent AI workflows.