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: image-tools-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/fetchx402-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

输出格式:pnGjpeGpp(默认: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

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

UpdatingMaintainers
UpdatingResponse time
Release cycle
0Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    Image Tools MCP is a Model Context Protocol (MCP) service that retrieves image dimensions and compresses images from URLs and local files using the TinyPNG API. It supports converting images to formats like webp, jpeg/jpg, and png, providing detailed information on width, height, type, and compressi
    2
    20
    10
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables comprehensive image editing operations including resizing, format conversion, cropping, compression, rotation, flipping, and batch processing. Supports JPEG, PNG, WebP, and AVIF formats with quality control and metadata extraction.
    8
    14
    18
    MIT

View all related MCP servers

Related MCP Connectors

  • AI image processing: upscale, resize, crop, compress, convert file format, and generate SEO metadata

  • Generate images, GIFs, and PDFs from HTML, URLs, or templates — from your AI agent.

  • Web intelligence for AI agents: fetch, render, extract, research. x402 micropayments, no API keys.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Br0ski777/image-resize-x402'

If you have feedback or need assistance with the MCP directory API, please join our Discord server