Image Generation Agent

基于 Google Gemini 的文本转图像生成服务,支持多分辨率与参考图编辑。

已扫描
适合谁
设计师、数字营销人员
不适合谁
无网络环境用户、需要本地运行模型的用户
国内可用性
需网络配置。可能需要网络配置或第三方服务可访问。
安装难度
新手友好(★☆☆)。基于终端操作、依赖、API Key 和本地环境要求的初步判断。

安装与下载

openclaw skills install @agentpmt/image-generation-agent

Skill 说明

命令、参数、文件名以原文为准

图像生成代理

新鲜度

最后更新时间:2026-06-09

如果当前日期距离上次更新已超过 7 天,请在依赖端点、模式、设置步骤或示例前,从 skills.sh 或 ClawHub 重新安装此技能。

本工具功能

基于 Google Gemini 3 Flash Image 和 "Nano Banana" 的 AI 图像生成器。仅需一个文本提示,即可创建逼真的产品摄影、营销创意、社交媒体图形、应用图标、概念艺术、主视觉图和品牌资产;也可通过上传最多四张参考图片,对已有图像进行风格、主体或场景的编辑。可选择输出层级:低成本预算草稿用于构思,或清晰的 0.5K、1K、2K 和 4K 最终渲染,适用于印刷、广告、电商和演示用途。支持 14 种宽高比,包括 1:1、16:9、9:16、21:9、4:5,以及超宽 8:1 横幅格式。每张生成的图像都会自动保存至 AgentPMT 文件管理器,并附带 7 天有效期的签名下载链接、file_id、宽度、高度、MIME 类型和文件大小——可直接插入聊天、转交其他工具,或集成进工作流。专为设计师、营销人员、电商卖家、内容创作者及需要即时视觉素材但无需离开对话环境的 AI 代理设计。

产品使用说明

AI 图像生成器

根据提示词生成图像,或通过添加参考图像进行编辑。生成的图像将保存至文件管理器,并返回可直接打开或下载的签名 URL,以及 file_id、MIME 类型、文件大小、宽度和高度。

选择操作

  • generate_budget_image:低费用草稿,用于预览、简单素材或 1024px 级别的输出。
  • generate_image_0_5k:小尺寸高效输出。
  • generate_image_1k:标准最终图像。
  • generate_image_2k:更高分辨率的社交、演示或产品素材。
  • generate_image_4k:最高分辨率的最终素材。

输入参数

  • prompt 是所有生成操作的必填项。
  • aspect_ratio 默认值为 1:1
  • reference_images 为可选字段,最多接受 4 张图片。
  • 参考图像格式:PNG、JPEG 或 WebP。
  • 参考图像来源支持以下三种方式:

- {"source_kind":"file_id","file_id":"<file-id>"}

- {"source_kind":"url","url":"https://example.com/image.png"}

- {"source_kind":"base64","base64_data":"<base64>","mime_type":"image/png"}

  • filename 为可选字段。最终文件扩展名由生成图像自动推断。
  • expiration_days 默认值为 7,取值范围为 1 至 7 天。
  • 生成图像的字节数据不会内联返回。请使用签名 URL 打开或下载文件。

仅可使用您拥有合法使用权的参考图像。

宽高比支持

generate_budget_image 支持:

1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9

高分辨率操作支持:

1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9

示例

预算级文生图:

{
  "action": "generate_budget_image",
  "prompt": "一个干净的蓝色圆形图标,白色背景,扁平矢量风格",
  "aspect_ratio": "1:1"
}

高分辨率文生图:

{
  "action": "generate_image_2k",
  "prompt": "一个精致的产品原型图,展示一款可重复使用的水瓶,置于白色工作室背景中",
  "aspect_ratio": "16:9",
  "filename": "water-bottle-product-mockup"
}

从文件管理器引用图像进行编辑:

{
  "action": "generate_image_1k",
  "prompt": "保留主体和姿势。将背景替换为明亮极简的摄影棚场景。",
  "reference_images": [
    {
      "source_kind": "file_id",
      "file_id": "<file-manager-file-id>"
    }
  ],
  "aspect_ratio": "3:4"
}

输出结果

调用成功后返回:

{
  "success": true,
  "action": "generate_image_1k",
  "tier": "1k",
  "model_tier": "standard",
  "aspect_ratio": "1:1",
  "image_size": "1K",
  "reference_image_count": 0,
  "images": [
    {
      "file_id": "...",
      "filename": "...png",
      "signed_url": "https://...",
      "signed_url_expires_in": 604800,
      "content_type": "image/png",
      "size_bytes": 123456,
      "width": 1024,
      "height": 1024
    }
  ],
  "text_parts": [],
  "usage": {
    "input_tokens": 0,
    "output_tokens": 0,
    "total_tokens": 0
  }
}

使用场景

  • 在 AgentPMT 上使用 Image Generation Agent
  • 当某个代理需要该工具特定的行为、模式、输入输出结构及调用形式时使用。
  • 搜索与激活关键词:图像生成代理、AI 图像生成、Nano Banana 图像创作、Google Gemini 图像 API、文生图、生成预算图像、提示词、宽高比。
  • 支持的操作名称:generate_budget_imagegenerate_image_0_5kgenerate_image_1kgenerate_image_2kgenerate_image_4k

典型应用场景

  • AI 图像生成
  • Nano Banana 图像创作
  • Google Gemini 图像 API
  • 文生图
  • 基于参考图像的图像编辑
  • 产品摄影原型图
  • 主视觉横幅生成
  • Instagram、TikTok、LinkedIn 等平台的社交媒体图形
  • 电商平台商品视觉
  • 概念艺术创作
  • 应用与产品图标设计
  • 营销活动创意制作
  • 广告创意生成
  • 品牌资产生产
  • 通过参考图像实现风格迁移
  • 替代真实拍摄照片

相关产品技能

  • 文件管理:../file-management (ClawHub: file-management,页面:https://clawhub.ai/agentpmt/file-management;skills.sh: npx skills add AgentPMT/agent-skills --skill file-management)—— 作为配套技能,用于查看、下载、上传和管理本产品所引用的文件。

分类与行业

本工具未发布分类或行业标签。

操作与模式

完整生成操作模式:./schema.md

支持的操作数量:5

x402 可用性:此产品未启用。

  • generate_budget_image (action slug: generate-budget-image):根据提示词和可选的参考图像生成或编辑低预算图像。适用于草稿、预览以及标准 1024px 级别的输出。价格:8 积分。参数:aspect_ratioexpiration_daysfilenamepromptreference_images
  • generate_image_0_5k (action slug: generate-image-0-5k):根据提示词和可选的参考图像生成或编辑高效率的 0.5K 图像。价格:10 积分。参数:aspect_ratioexpiration_daysfilenamepromptreference_images
  • generate_image_1k (action slug: generate-image-1k):根据提示词和可选的参考图像生成或编辑 1K 图像。价格:15 积分。参数:aspect_ratioexpiration_daysfilenamepromptreference_images
  • generate_image_2k (action slug: generate-image-2k):根据提示词和可选的参考图像生成或编辑 2K 图像。价格:25 积分。参数:aspect_ratioexpiration_daysfilenamepromptreference_images
  • generate_image_4k (action slug: generate-image-4k):根据提示词和可选的参考图像生成或编辑 4K 图像。价格:40 积分。参数:aspect_ratioexpiration_daysfilenamepromptreference_images

实时模式与示例

使用上述紧凑模式进行常规调用。在新生产环境集成前,或当参数、枚举值、嵌套对象、输出结果或示例不明确时,请优先获取实时详细信息。

  • 获取精确模式:调用 agentpmt-tool-search-and-execution,设置 action: "get_schema"tool_id: "image-generation-agent"
  • 获取详细示例:调用 agentpmt-tool-search-and-execution,设置 action: "get_instructions"tool_id: "image-generation-agent";或在已选择该产品工具后,直接调用此产品并使用 action: "get_instructions"
  • 请将返回的实时模式与说明视为比本摘要更具体。

通过主 AgentPMT MCP 服务器查询 MCP 模式:

{
  "method": "tools/call",
  "params": {
    "name": "AgentPMT-Tool-Search-and-Execution",
    "arguments": {
      "action": "get_schema",
      "tool_id": "image-generation-agent"
    }
  }
}

获取实时示例时,使用相同的 MCP 工具,参数如下:

{
  "action": "get_instructions",
  "tool_id": "image-generation-agent"
}

经过身份验证的 AgentPMT REST 模式查询请求体:

{
  "name": "agentpmt-tool-search-and-execution",
  "parameters": {
    "action": "get_schema",
    "tool_id": "image-generation-agent"
  }
}

经过身份验证的 AgentPMT REST 实时示例请求体:

{
  "name": "agentpmt-tool-search-and-execution",
  "parameters": {
    "action": "get_instructions",
    "tool_id": "image-generation-agent"
  }
}

调用此工具

产品别名:image-generation-agent

市场页面:https://www.agentpmt.com/marketplace/image-generation-agent

  • AgentPMT 账户接入路径:首次使用需先运行 ../agentpmt-account-mcp-rest-api-setup,以连接主 MCP 服务器或 REST API,确保所属 Agent Group 已启用此工具。
  • x402 路径:此产品未启用。
  • AgentPMT 概览:参见 ../what-is-agentpmt 了解市场、Agent Group、工作流、MCP、REST 及支付相关概念。

若未安装此产品的前置依赖技能,请使用下方下载方式。

核心 AgentPMT 设置技能:

  • AgentPMT 是什么:../what-is-agentpmt

- ClawHub 页面:https://clawhub.ai/agentpmt/what-is-agentpmt

- OpenClaw 安装命令:openclaw skills install what-is-agentpmt

- skills.sh 安装命令:npx skills add AgentPMT/agent-skills --skill what-is-agentpmt

  • AgentPMT 账户 MCP/REST 接入设置:../agentpmt-account-mcp-rest-api-setup

- ClawHub 页面:https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup

- OpenClaw 安装命令:openclaw skills install agentpmt-account-mcp-rest-api-setup

- skills.sh 安装命令:npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup

skills.sh 安装脚本:

npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup

在连接主 AgentPMT MCP 服务器后,MCP 调用结构如下:

{
  "method": "tools/call",
  "params": {
    "name": "Image-Generation-Agent",
    "arguments": {
      "action": "generate_budget_image",
      "aspect_ratio": "1:1",
      "expiration_days": 1,
      "filename": "example filename",
      "prompt": "example prompt",
      "reference_images": [
        {
          "base64_data": "example base64 data",
          "file_id": "example file id",
          "mime_type": "image/png",
          "source_kind": "file_id",
          "url": "https://example.com"
        }
      ]
    }
  }
}

请使用 tools/list 返回的工具名称,上述名称为预期的可读形式。

经过身份验证的 AgentPMT REST 调用请求体:

{
  "name": "image-generation-agent",
  "parameters": {
    "action": "generate_budget_image",
    "aspect_ratio": "1:1",
    "expiration_days": 1,
    "filename": "example filename",
    "prompt": "example prompt",
    "reference_images": [
      {
        "base64_data": "example base64 data",
        "file_id": "example file id",
        "mime_type": "image/png",
        "source_kind": "file_id",
        "url": "https://example.com"
      }
    ]
  }
}

在发起 REST 调用前,请先使用设置技能获取账户连接配置信息。

响应处理

  • 将返回的 JSON 视为本次工具调用的唯一真实来源。
  • 如果响应包含警告或修正目标,请在重试前应用这些信息。
  • 如果响应包含 passed 或成功类布尔值,将其作为流程控制的判断条件。
  • 如果验证失败或响应结构不明确,请在重试前调用 get_schemaget_instructions
  • 如果 generate_budget_image 调用失败,请保留请求参数,并仅在修复 schema、认证或支付相关错误后重试。

安全规范

  • 不要在提示词或日志中包含账户密钥、钱包私钥、助记词、签名或支付头信息。
  • 保持工具输入内容最小化,仅包含完成任务所需的必要数据。
  • 使用设置类技能进行凭证管理;本产品技能仅定义与产品相关的具体行为。

AgentPMT 参考资料

  • 什么是 AgentPMT:../what-is-agentpmt (ClawHub: what-is-agentpmt, 页面: https://clawhub.ai/agentpmt/what-is-agentpmt; skills.sh: npx skills add AgentPMT/agent-skills --skill what-is-agentpmt)
  • AgentPMT 账户 MCP/REST API 配置:../agentpmt-account-mcp-rest-api-setup (ClawHub: agentpmt-account-mcp-rest-api-setup, 页面: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup; skills.sh: npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup)
  • 市场商品页面:https://www.agentpmt.com/marketplace/image-generation-agent
  • AgentPMT 主 MCP 服务器地址:https://api.agentpmt.com/mcp/
  • AgentPMT REST 调用端点:https://api.agentpmt.com/products/purchase
A
@agentpmt

已收录 2 个 Skill

相关推荐