agentCLAWHUBUnverified

agnes-图片生成

使用 Agnes AI 升级版图像生成模型 agnes-image-2.1-flash 生成图片。同时支持文生图(text-to-image)与图生图(image-to-image)。当用户说「用 Agnes 生成图片」「用 Agnes 画一张」「Agnes 生成」「用这张图生成/改成……」或明确要求使用 Agnes API 进行文生图/图生图时,加载本 skill。不消耗 WorkBuddy 积分,仅消耗 Agnes API 额度(当前图像生成免费)。 Skill: agnes-图片生成 Owner: jiuwu2495 Summary: 使用 Agnes AI 升级版图像生成模型 agnes-image-2.1-flash 生成图片。同时支持文生图(text-to-image)与图生图(image-to-image)。当用户说「用 Agnes 生成图片」「用 Agnes 画一张」「Agnes 生成」「用这张图生成/改成……」或明确要求使用 Agnes API 进行文生图/图生图时,加载本 skill。不消耗 WorkBuddy 积分,仅消耗 Agnes API 额度(当前图像生成免费)。 Tags: latest:1.0.3 Version history: v1.0.3 | 2026-07-30T03:30:31.493Z | user - Added automatic dual-endpoint failover: the system now tries a dome

OpenClaw

Rank

62

Safety

84

Downloads

1.2k

Updated

Oct 10, 2026

Version

1.0.3

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K 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

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 10, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 10, 2026
Adoption signal
1.2K downloadsadoption · observed Oct 10, 2026
Latest release
1.0.3release · observed Jul 30, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s17amm86tg4znarg14ppbv33y18445er:agnes-image-gen
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  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-jiuwu2495-agnes-image-gen/snapshot"

Documentation

CLAWHUB

52,927 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: agnes-image-gen
description: 使用 Agnes AI 升级版图像生成模型 agnes-image-2.1-flash 生成图片。同时支持文生图(text-to-image)与图生图(image-to-image)。当用户说「用 Agnes 生成图片」「用 Agnes 画一张」「Agnes 生成」「用这张图生成/改成……」或明确要求使用 Agnes API 进行文生图/图生图时,加载本 skill。不消耗 WorkBuddy 积分,仅消耗 Agnes API 额度(当前图像生成免费)。
agent_created: true
---

# Agnes Image Gen

## 概述

调用 Agnes AI 的升级版图像生成模型 **`agnes-image-2.1-flash`**(Sapiens AI 出品)。该模型同时支持:

- **文生图(Text-to-Image)**:根据文本提示词生成全新图像
- **图生图(Image-to-Image)**:基于输入图像进行转换、重绘、风格化编辑,并尽量保留原始构图

通过 curl 直接调用 HTTP API,不走 WorkBuddy 的对话模型机制,因此**不消耗对话积分**。当前图像生成定价为 **$0 / 张**。

## 触发条件

当用户提出以下请求时加载本 skill:
- 「用 Agnes 生成一张……的图片」
- 「用 Agnes 画……」
- 「Agnes 图片生成」
- 「用这张图片生成……」「把这张图片改成……风格」「给这张图换个背景」(图生图)
- 明确要求使用 Agnes API 进行文生图或图生图

## 核心能力

- **高信息密度图像**:适合复杂场景、丰富构图、多层视觉元素(精细场景、复杂环境、丰富构图)
- **构图保留**:图生图编辑时尽量保留原始构图与主体布局
- **灵活尺寸控制**:使用 `1K` / `2K` / `3K` / `4K` 档位,配合宽高比
- **URL / Base64 输出**:支持图像 URL 或 Base64 数据返回
- **适用场景**:创意设计、营销内容、产品可视化、社交媒体素材、图像转换(风格迁移 / 场景重打光 / 背景变换)

## API Reference

### Endpoint(双端点容灾)

脚本自动按以下顺序尝试,前一个访问不了就切到下一个,**无需手动干预**:

| 优先级 | Endpoint | 说明 |
|--------|----------|------|
| 1(主) | `https://apihub.agnes-ai.com/v1/images/generations` | 国际主端点 |
| 2(容灾) | `https://apihub.agnes-ai.cn/v1/images/generations` | **国内容灾端点**:主端点 TCP 不可达时自动切换(国内网络访问 Agnes 更稳) |

- 调用前会做轻量连通性探测(TCP 层,8s 超时),主端点不可达时**立即跳过**而非空等,再尝试国内网关。
- 端点可达但请求失败(限速/5xx)会在该端点内重试,耗尽后才跳到下一端点。
- 运行结束会打印「本次使用: <实际端点>」,方便确认走的是哪个。

> 注意:文生图与图生图**共用同一端点** `/v1/images/generations`,不再使用 `/v1/images/edits`。

### 请求头

```
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
```

### 请求参数

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| `model` | string | 是 | 模型名称,固定为 `agnes-image-2.1-flash` |
| `prompt` | string | 是 | 图像生成或图像编辑的文本指令 |
| `size` | string | 是 | 输出尺寸档位,推荐 `1K` / `2K` / `3K` / `4K`;兼容 `1024x768` 这类历史精确写法(不支持的尺寸可能被标准化) |
| `ratio` | string | 否 | 与档位式 `size` 配合的宽高比,支持 `1:1`、`3:4`、`4:3`、`16:9`、`9:16`、`2:3`、`3:2`、`21:9`,默认 `1:1` |
| `image` | string[] | 图生图必填 | 输入图像数组(**注意:放在 `extra_body.image` 中**,见下方图生图示例) |
| `return_base64` | boolean | 否 | 文生图需要以 Base64 返回时设为 `true` |
| `extra_body` | object | 否 | 高级工作流附加参数(见下) |
| `extra_body.response_format` | string | 否 | 输出格式:`url` 或 `b64_json` |
| `extra_body.image` | string[] | 图生图必填 | 输入图像数组,支持公共图像 URL 或 `data:image/...;base64,...` Data URI |

### 尺寸与宽高比(输出尺寸参考)

为获得可预期的输出尺寸,建议将 `size` 与 `ratio` 配合使用:

| Ratio | 1K | 2K | 3K | 4K |
|-------|-----|-----|-----|-----|
| `1:1` | 1024x1024 | 2048x2048 | 3072x3072 | 4096x4096 |
| `3:4` | 864x1152 | 1728x2304 | 2592x3456 | 3456x4608 |
| `4:3` | 1152x864 | 2304x1728 | 3456x2592 | 4608x3456 |
| `16:9` | 1312x736 | 2624x1472 | 3936x2208 | 5248x2944 |
| `9:16` | 736x1312 | 1472x2624 | 2208x3936 | 2944x5248 |
| `2:3` | 832x1248 | 1664x2496 | 2496x3744 | 3328x4992 |
| `3:2` | 1248x832 | 2496x1664 | 3744x2496 | 4992x3328 |
| `21:9` | 1568x672 | 3136x1344 | 4704x2016 | 6272x2688 |

> 若请求 `1920x1080` / `2560x1440` 这类非原生精确尺寸,服务会自动映射到最接近的档位与宽高比(如 16:9 的 `1K` 输出为 `1312x736`)。

_meta.json

{
  "ownerId": "kn7c4gc7gyy33s73k6rqq90yrs82tyky",
  "slug": "agnes-image-gen",
  "version": "1.0.3",
  "publishedAt": 1785382231493
}

skill-card.md

## Description:

Agnes Image Gen helps agents generate and edit images with Agnes AI, supporting text-to-image and image-to-image prompts, size selection, endpoint failover, and local result saving.

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

## Publisher:

[jiuwu2495](https://clawhub.ai/user/jiuwu2495)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to request creative, marketing, product visualization, social media, and image transformation assets through Agnes text-to-image or image-to-image workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill ships with and automatically uses a hardcoded Agnes API key.

Mitigation: Remove the embedded key, rotate it as compromised, and require a user-provided key through a secure environment variable or explicit per-run configuration.

Risk: Prompts and selected local images are sent to Agnes servers for generation or editing.

Mitigation: Warn users before use and avoid sending confidential prompts, private images, or regulated data unless the deployment has approved Agnes for that data.

Risk: Generated outputs may be saved locally and returned image URLs may be time-limited.

Mitigation: Disclose saved file locations, apply local file handling policy, and download required results promptly.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jiuwu2495/skills/agnes-image-gen)
- [Agnes AI](https://agnes-ai.com)
- [Agnes image generations endpoint](https://apihub.agnes-ai.com/v1/images/generations)
- [Agnes image generations fallback endpoint](https://apihub.agnes-ai.cn/v1/images/generations)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with shell commands, JSON API responses, generated image URLs, and local file paths]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May save generated PNG files locally and may return time-limited image URLs or base64 image data.]

## Skill Version(s):

1.0.3 (source: server release metadata)

## 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.
Github ReposUpdated 1d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/jiuwu2495/skills/agnes-image-gen",
      "sourceUrl": "https://clawhub.ai/jiuwu2495/skills/agnes-image-gen",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-10T21:59:13.537Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-jiuwu2495-agnes-image-gen/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-jiuwu2495-agnes-image-gen/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-10T21:59:13.537Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1.2K downloads",
      "href": "https://clawhub.ai/jiuwu2495/agnes-image-gen",
      "sourceUrl": "https://clawhub.ai/jiuwu2495/agnes-image-gen",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-10T21:59:13.537Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.0.3",
      "href": "https://clawhub.ai/jiuwu2495/agnes-image-gen",
      "sourceUrl": "https://clawhub.ai/jiuwu2495/agnes-image-gen",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-07-30T03:30:31.493Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-jiuwu2495-agnes-image-gen/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-jiuwu2495-agnes-image-gen/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.0.3",
      "description": "- Added automatic dual-endpoint failover: the system now tries a domestic endpoint if the international endpoint is unreachable, with no manual intervention needed. - Connection is now checked at the TCP level with an 8s timeout before switching endpoints. - The final chosen endpoint is output for user reference. - No changes to inputs, outputs, or API usage; usage and core capabilities remain unchanged. - Internal files scripts/__pycache__/agnes_gen.cpython-313.pyc and skill-card.md were removed.",
      "href": "https://clawhub.ai/jiuwu2495/agnes-image-gen",
      "sourceUrl": "https://clawhub.ai/jiuwu2495/agnes-image-gen",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-07-30T03:30:31.493Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 10, 2026.

Sponsored

Ads related to agnes-图片生成 and adjacent AI workflows.