Agent 可调用

给 AI agent 用的 NoAIVibe 工具

MCP bridge 会把公开 API 包装成 agent 工具,让 agent 在内容、电商和发布工作流里上传、处理、查询和下载图片。

MCP quickstart

几分钟把 agent 接进来

01

1. Create an API key

在 Account 里创建包含 images:writeimages:read 和可选 text:write 的 key。

02

2. Add the bridge

本地运行 Node.js bridge:npm --silent run mcp,并通过环境变量传入 NOAIVIBE_API_KEY

03

3. Let the agent process images

agent 可以上传本地文件、创建任务、查询状态,并下载处理完成的图片。

upload_image

Upload a local JPG, PNG, or WEBP file so an agent can create processing jobs without hosting the image first.

POST /api/v1/uploads

Credits: free_upload

enhance_image

Create a NoAIVibe image processing job from a hosted image URL or a local file path uploaded by the MCP bridge.

POST /api/v1/images/jobs

Credits: uses_account_credits

get_job_status

Check queued, processing, completed, or failed status for an image job.

GET /api/v1/images/jobs/{job_id}

Credits: uses_account_credits

download_result

Download the completed image result for downstream automation.

GET /api/v1/images/jobs/{job_id}/download

Credits: uses_account_credits

本地 bridge

本地 MCP bridge

把 bridge 放在你的 agent 旁边运行。它会把上面的工具暴露给 agent,并复用网页账户的 API key。

NOAIVIBE_API_BASE_URL=https://noaivibe.com \
NOAIVIBE_API_KEY=noaivibe_live_... \
npm --silent run mcp
Agent setup

Agent 配置格式

{
  "mcpServers": {
    "noaivibe": {
      "command": "npm",
      "args": ["--silent", "run", "mcp"],
      "env": {
        "NOAIVIBE_API_BASE_URL": "https://noaivibe.com",
        "NOAIVIBE_API_KEY": "noaivibe_live_..."
      }
    }
  }
}

MCP server 不在本地管理计费。credits、失败退回和任务历史都由你的 NoAIVibe 账户处理。

本地图片

让 agent 处理本地图片

enhance_image 支持 image_urlfile_path。对本地 JPG、PNG 或 WEBP,bridge 会先上传文件,再创建 NoAIVibe 任务,并返回可轮询的 job 对象。