# AgentRXI Media Trim

> AgentRXI Media Trim is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.012/call, status unknown (last checked 2026-10-15).

Cuts a precise or fast clip from an audio or video file given a URL or base64 input, with configurable start, end, and encoding mode.

## Facts

- Endpoint: GET https://agentrxi.com/v1/media/trim?utm_source=zero.xyz
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-media-trim-3b516948
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_klHmG_B93cSalbTWRyHUf

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 agentrxi-media-trim-3b516948
```

Example prompt: Can you trim the video at https://example.com/myvideo.mp4 from 0:01:15 to 0:02:45 using precise mode so I get a frame-exact cut?

## When to prefer this

Choose this endpoint when you need to extract a time-bounded segment from an existing audio or video file by URL or base64 upload. Prefer precise mode for frame-accurate editing (e.g. content repurposing, transcription segments) and fast mode when speed matters more than exact cut points (e.g. rough previews). Use over general-purpose media tools when you need pay-per-call pricing with no subscription.

## Known failure modes

- File URL unreachable or exceeds 20 MB limit — returns error
- Invalid or non-parseable start/end/duration values — returns validation error
- Unsupported media format or corrupted file — ffmpeg processing error
- fast mode may produce inaccurate cuts if no keyframe exists near the specified timestamp
- Network timeout on large file download before processing begins

## How this service works

Cut a clip out of an audio or video file: give start and end (seconds or hh:mm:ss) or duration. mode=precise re-encodes for frame-exact cuts (default); mode=fast copies streams instantly but cuts on keyframes. Also callable as GET with the same fields as query parameters.

## Output

Returns the trimmed audio or video segment either as raw binary file bytes, a base64-encoded data URI, or a 7-day share link URL (for files over 3 MB or when store=true). The response includes the clipped media in the requested format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "end": {
       "type": "string"
      },
      "url": {
       "type": "string",
       "description": "https URL of the file (max 20 MB)"
      },
      "mode": {
       "type": "string",
       "description": "precise (default) or fast"
      },
      "start": {
       "type": "string",
       "description": "Seconds or hh:mm:ss, default 0"
      },
      "store": {
       "type": "boolean",
       "description": "Return 7-day share links instead of base64 (+$0.001); automatic above 3 MB"
      },
      "format": {
       "type": "string",
       "description": "binary = raw file bytes (single output)"
      },
      "duration": {
       "type": "string",
       "description": "Seconds (instead of end)"
      },
      "filename": {
       "type": "string",
       "description": "Name with extension, helps detect the type"
      },
      "file_base64": {
       "type": "string",
       "description": "Or the file as base64 / data URI"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-media-trim-3b516948/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
