# Relaystation Media Probe

> Relaystation Media Probe is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Inspects any media file via ffprobe and returns duration, container format, streams, codecs, dimensions, and bitrate as structured JSON

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/media/probe
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-media-probe-0a66ece8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VvAoc1Iks3mDWBV_9yjxP

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 relaystation-media-probe-0a66ece8 -d '<json body>'
```

Example prompt: Can you probe this video file at https://example.com/myvideo.mp4 and tell me its duration, codec, resolution, and bitrate?

## When to prefer this

Use this endpoint when you need fast, structured technical metadata about any media file without downloading or processing it yourself. It is ideal for pre-flight validation of user uploads, quality checks in media pipelines, or feeding codec/dimension data into downstream transcoding decisions. Prefer this over manual ffprobe invocations when operating in a serverless or agent context that cannot run local binaries.

## Known failure modes

- Unreachable or invalid media URL returns an error with no probe data
- Unsupported or corrupted file format may return partial or empty stream info
- Very large files may time out before probing completes
- Non-media files (e.g. plain HTML pages) return an error indicating no media streams found

## How this service works

$0.0002/call. Inspect any media file via ffprobe — duration, container, streams, codecs, dimensions, bitrate as JSON. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

A JSON object containing the full ffprobe output: container format name, duration in seconds, overall bitrate, and an array of stream objects each with codec name, codec type (video/audio), dimensions (width/height for video), sample rate and channel layout (for audio), and other technical parameters.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key ≤ 50 MB> }. The input container must sniff (ffprobe) to the live allowlist (operator-tunable cputools.media.input_formats): 3g2, 3gp, aac, asf, avi, flac, flv, gif, m4a, m4v, matroska, mj2, mov, mov,mp4,m4a,3gp,3g2,mj2, mp3, mp4, mpeg, mpegts, mpegvideo, ogg, wav, webm, wmv. An off-list input is a free 422 UNSUPPORTED_FORMAT."
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-media-probe-0a66ece8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
