Skip to main content
Glama

Image Resize API

[MCP Server(https://image-resize.api.klymax402.com/mcp) [![mcp]: # ... wait need exact. Let's just output.

Actually I should not "code fence". The final should be raw. Let's write.

I will now generate final.# Image Resize API

[MCP Server(https://image-resize.api.klymax402.com/mp) x402 [License: MIT(LICENSE)

按 URL 调整图像大小——自定义宽度/高度、格式转换(PNG/JPEG/WebP),并保持纵横比。通过 x402 按次付费(Base L2 上的 USDC)——无需 API 密钥、无需注册、无速率限制墙。

作为 klymax402 市场的一部分——为 AI 智能体提供的 100 个 x402 微支付 API,一个钱包,Base 上的 USDC4。

快速开始——MCP

在的 MCP 客户端配置(Claude Desktop、Cursor、ElizaOS 等)中添加:

{
  "mcpServers": {
    "image-resize": {
      "url": "https://image-resize.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: Screenshot MCP

快速开始 —— HTTP (x402)

curl -X POST "https://image-resize.api.klymax402.com/api/resize" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

任何支持 x402 的客户端(@x402/fetch、x402-agent-tools、AT XP)都会自动处理好 402 -> 签名 -> 重试流程。

工具

工具

方法

路径

价格

说明

media_resze_image

POST

/api/resize

$0.008

从 URL 调整图像大小

media_rese_image

当你需要从某个 URL 调整图像大小或转换其格式时使用。返回调整后的图像(base64 编码)以及 JSON 元数据。

参数

名称

类型

必填

描述

url

string

是

要调整大小的图像的 URL

width

number

否

目标宽度(像素),如果省略高度则自动保持纵横比

height

number

否

目标高度(像素),如果省略宽度则自动保持纵横比

format

string

否

输出格式:pnG、jpeG或 pp(默认:png)

示例响应:

{"image":"iVBORw0KGgo...","originalWidth":1920,"originalHeight":1080,"newWidth":800,"newHeight":450,"format":"webp","fileSizeBytes":24500}

适用场景: 缩略图生成、优化网页图像、准备社图像、调整邮件模板图像大小以及批量图像处理。

不适用场景: OCR 文本提取(使用 media_extract_text_form_impageImage)、QR 巴生成(使用 utility_generate_qr_code)、截截图(使用 capture_screenshot`)。

示例代理提示

  • 「以 URL 为源调整图像大小或转换其格式」

支付

  • 协议: x402 — HTTP 原生按次付费、无需注册、无需 API 密钥

  • 网络:Base L2(eip155:8453)

  • 资产:USDC

  • 协调方:Coinbase CDP(主要)、Air (fallback)

  • 此外可通过 ATXP 访问(OAuth 包装的 x402、RFC 9728 受保护属性元数据)

属于 klymax2

面向 AI 智能体的 100 个 x402 微支付 API,——一个钱包、Base 上的 USDC、零注册。

许可证

LicenseMITLICENSE

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to perform local image operations such as circle cropping, cropping, resizing, compressing, converting, and inspecting images without uploading files or making network calls.
      7
      105 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables agents to optimize and clean SVG vector paths, rasterize SVGs into crisp sub-pixel PNGs at custom DPI with alpha preserved, generate high-error-correction vector QR codes for payment URIs, and compress images to WebP while stripping EXIF metadata. Tools are metered via x402 USDC micropayments on Base L2.
      4
      MIT