Xpersona
A

Agent APIs x402 Skill

CLAWHUB · Unverified

AI agent skill for x402 paid APIs with live image-hosting and qrcode-generate, plus planned image/video/vision APIs (colorize, super-resolution, enhance, sma...

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s175dke9r3zvcmp4r59ytqhrq583gseh:x402-agent-api-skill
  1. Install using `clawhub skill install s175dke9r3zvcmp4r59ytqhrq583gseh:x402-agent-api-skill` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/parsonssss/x402-agent-api-skill before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-parsonssss-x402-agent-api-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

22,447 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: x402-agent-api-skill
description: AI agent skill for x402 paid APIs with live image-hosting and qrcode-generate, plus planned image/video/vision APIs (colorize, super-resolution, enhance, smart-redact, smart-crop, inpaint, qrcode-decode, tags, game-scene-detect, quality-score, face/human/pet/plate-detect, OCR, idcard-ocr, background-remove, video object-detection, portrait-segmentation).
version: 1.2.0
---

# x402 Agent API Skill

Use this skill to let your AI agent call paid endpoints on `https://www.x402api.app/` with x402.

## Quick start for AI agents

1. Place this file in your OpenClaw, Codex, or Claude project root.
2. Tell your AI agent: "Help me convert this text into a QR code." or "Help me upload this image and return an online URL."
3. The agent should follow x402 payment flow automatically.

## Install dependencies

```bash
npm install @x402/core @x402/evm viem
```

## Required environment variables

```bash
EVM_PRIVATE_KEY=0x_your_private_key
API_BASE_URL=https://www.x402api.app/
```

## Currently available features

1. QR code generation
2. Image hosting

## Available endpoints

### Live

- `GET /api/health` - health check
- `GET /api/v1/capabilities` - capability discovery
- `POST /api/v1/qrcode/generate` - generate QR code image (x402 protected)
- `POST /api/v1/image/upload` - upload image and return public URL (x402 protected, max 10MB)

### Planned

- `POST /api/v1/image/colorize`
- `POST /api/v1/image/super-resolution`
- `POST /api/v1/image/enhance`
- `POST /api/v1/image/smart-redact`
- `POST /api/v1/image/smart-crop`
- `POST /api/v1/image/inpaint`
- `POST /api/v1/image/qrcode/decode`
- `POST /api/v1/image/tags`
- `POST /api/v1/image/game-scene-detect`
- `POST /api/v1/image/quality-score`
- `POST /api/v1/vision/face-detect`
- `POST /api/v1/vision/human-detect`
- `POST /api/v1/vision/pet-detect`
- `POST /api/v1/vision/plate-detect`
- `POST /api/v1/image/ocr`
- `POST /api/v1/image/idcard-ocr`
- `POST /api/v1/image/background-remove`
- `POST /api/v1/video/object-detection`
- `POST /api/v1/video/portrait-segmentation`

## How to call each live endpoint

### 1) QR code generation

Endpoint: `POST /api/v1/qrcode/generate`

JSON body:

```json
{
  "text": "https://example.com",
  "size": 512,
  "ecc": "M",
  "format": "png",
  "margin": 2
}
```

- `text` is required (1-2048 chars).
- `format` is currently `png` only.
- `size` range: `128-2048`.
- `margin` range: `0-16`.
- `ecc` supports: `L | M | Q | H`.
- Success response contains `result.image_base64` and `result.mime_type`.

### 2) Image hosting

Endpoint: `POST /api/v1/image/upload`

Request type: `multipart/form-data`

- Use one form-data field named `file`.
- File type must be `image/*`.
- File size must be `<= 10MB`.

Success response contains `result.image_url`.

## Payment flow

1. Call protected endpoint and expect `402 Payment Required`.
2. Parse payment requirements from response 

_meta.json

{
  "ownerId": "kn75sw0f8twhxs33cwnghvt6bd82ajff",
  "slug": "x402-agent-api-skill",
  "version": "1.0.2",
  "publishedAt": 1774359986402
}

skill-card.md

## Description:

Helps agents call paid x402 API endpoints for QR code generation and image hosting, with documented planned image, vision, and video APIs.

This skill is ready for commercial/non-commercial use.

## Publisher:

[parsonssss](https://clawhub.ai/user/parsonssss)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent users use this skill to integrate paid x402 API calls for QR code image generation and image upload hosting while following the required payment flow.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Paid x402 requests can give an agent payment-signing authority without enough user control or payment validation.

Mitigation: Use a dedicated low-balance wallet, pin the API URL to the intended service, and require manual confirmation for each paid request.

Risk: Image upload behavior can make private or regulated images externally hosted.

Mitigation: Avoid uploading private or regulated images unless external hosting is intended.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/parsonssss/skills/x402-agent-api-skill)
- [x402 API service](https://www.x402api.app/)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with TypeScript code examples, shell commands, and JSON request examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May guide paid API calls that return PNG QR code image data or public image URLs.]

## Skill Version(s):

1.0.2 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Agent APIs x402 Skill and adjacent AI workflows.