barcode-generator
Barcode Generator API
生成条形码 —— EAN-13、UPC-A、Code128、Code39。Base64 SVG 输出,可自定义宽度和高度。通过 x402 按次付费(Base L2 上的 USDC)—— 无需 API 密钥、无需注册、无速率限制。
隶属于 klymax402 市场 —— 面向 AI 智能体的 100 个 x402 微支付 API,一个钱包,USDC on Base。
快速入门 —— MCP
在你的 MCP 客户端配置中添加以下内容(Claude Desktop、Cursor、ElizaOS 等):
{
"mcpServers": {
"barcode-generator": {
"url": "https://barcode-generator.api.klymax402.com/mcp"
}
}
}Related MCP server: x402-image-api
快速入门 —— HTTP(x402)
curl -X POST "https://barcode-generator.api.klymax402.com/api/barcode" \
-H "Content-Type: application/json" \
-d '{"data":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body任何兼容 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理“402 -> 签名 -> 重试”的完整循环。
工具
工具 | 方法 | 路径 | 价格 | 说明 |
| POST |
| $0.003 | 从文本或数字生成条形码 |
utility_generate_barcode
当你需要从文本或数字生成条形码时,请使用此工具。它返回 JSON 中 Base64 编码的 SVG 图像。
参数
名称 | 类型 | 必填 | 描述 |
| string | 是 | 要在条形码中编码的数据 |
| string | 否 | 条形码格式:code128、code39、ean13、upca(默认:code128) |
| number | 否 | 条宽(单位:像素)(默认:2) |
| number | 否 | 条形码高度(单位:像素)(默认:100) |
示例响应:
{"data":"5901234123457","format":"ean13","image":"PHN2ZyB4bWxu...","width":264,"height":142}** 适用场景**:产品标签、库存管理、发货标签、零售 POS 系统,以及资产跟踪条形码。
** 不适用场景**:二维码(使用 utility_generate_qr_code)、图像缩放(使用 media_resize_image)、PDF 生成(使用 document_generate_pdf)。
示例智能体提示词
“从文本或数字生成一个条形码”
支付
协议:x402 —— HTTP 原生按次付费,无需注册、无需 API 密钥
网络:Base L2(
eip155:8453)资产:USDC
服务商:Coinbase CDP(主要)、PayAI(备用)
也可通过 ATXP 访问(OAuth 封装的 x402,RFC 9728 受保护资源元数据)
属于 klymax402
面向 AI 智能体的 100 个 x402 微支付 API —— 一个钱包、Base 上的 USDC、零注册。
完整 API 参考:https://klymax402.com/llms-full.txt
许可证
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Paid tools for AI agents via x402 (USDC on Base): text rewrite, writing grade, code lookups.
25 pay-per-request intelligence APIs for AI agents via x402 micropayments (USDC/Base)
Pay-per-call tools for AI agents: product photos, documents, web pages, data. USDC via x402.
AI music, video, image, and voice tools callable by agents with USDC payments via x402 on Base.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server to generate QR codes from text or URLs, returning base64 PNG images, with pay-per-call via x402 micropayments (USDC on Base L2).MIT
- AlicenseNot gradedqualityDmaintenanceEnables coding agents to generate AI images directly through MCP tools, handling payment via the x402 protocol with USDC on Base and no API keys.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to encode text to base64 or decode base64 back to plaintext, with support for standard and URL-safe variants and pay-per-call micropayments via x402.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to capture web pages as PNG screenshots or PDF documents, with customizable dimensions and formats, using x402 micropayments on Base Mainnet.MIT