# agent402.tools Media Pipeline

> agent402.tools Media Pipeline is a paid API for AI agents from agent402.tools, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Runs a bundled media normalization workflow on an uploaded file: probes metadata, decodes barcodes/QRs, resizes images, and generates thumbnails

## Facts

- Endpoint: POST https://agent402.tools/api/skill/media-pipeline
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-media-pipeline-cfa1d9da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2QCrqs3eB_ddKu7OZ0DSb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-media-pipeline-cfa1d9da -d '<json body>'
```

Example prompt: I just uploaded a file to /tmp/upload-abc123 — can you run it through the full media normalization pipeline to probe its metadata, decode any barcodes or QR codes, resize it, and generate a thumbnail before I store it?

## When to prefer this

Use this endpoint when a user has just uploaded a file (image or audio/video) and you need a single bundled call to handle all normalization steps — metadata probing, barcode/QR decoding, resizing, and thumbnail generation — before persisting the file. Prefer this over individual specialized tools when you want a complete pipeline in one call at a flat per-call cost.

## Known failure modes

- File not found at the provided path — returns error if uploadPath points to a nonexistent or inaccessible location
- Unsupported file type — may fail or return partial results if the file is not a recognized image or audio/video format
- Corrupt or malformed file — media-info probe may fail on corrupted uploads
- No barcode found — barcode/QR decoding returns empty result if none present (not an error)
- Payment failure — x402 payment of $0.25 USDC not processed, request rejected

## How this service works

Bundled execution of the Uploaded-media normalize workflow - The 'user uploaded a thing, normalize it before storing' workflow. Probe the file (image or audio/video) with media-info, decode any embedded barcodes/QRs, resize and thumbnail the image, convert it to a web-friendly format, and normalize audio loudness to broadcast standard. Six tools, one canonical normalize-on-upload pipeline that turns arbitrary user uploads into predictable storage artifacts.

## Output

Returns normalized media data including probed file metadata (from media-info), any decoded barcode or QR code values found in the image, a resized version of the image, and a generated thumbnail — all ready for downstream storage or display.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "uploadPath": {
   "type": "string",
   "description": "the temp path or URL of the uploaded file (e.g. '/tmp/upload-abc123')"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "uploadPath": "https://agent402.tools/fixtures/sample-image.png"
  },
  "pack": "media-pipeline",
  "steps": [
   {
    "ok": true,
    "slug": "media-info",
    "result": {}
   },
   {
    "ok": true,
    "slug": "barcode-decode",
    "result": {}
   },
   {
    "ok": true,
    "slug": "image-resize",
    "result": {}
   },
   {
    "ok": true,
    "slug": "image-thumbnail",
    "result": {}
   },
   {
    "ok": true,
    "slug": "image-convert",
    "result": {}
   },
   {
    "ok": true,
    "slug": "audio-normalize",
    "result": {}
   }
  ],
  "summary": "6/6 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-media-pipeline-cfa1d9da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
