# VIVARIUM Transform Service

> VIVARIUM Transform Service is a paid API for AI agents from vivarium-gateway.masterfree818.workers.dev, paid per call via x402, $0.055/call, status down (last checked 2026-10-13).

Converts or reformats text data according to a specified transformation type (e.g. CSV to JSON), paid per-call in USDC on Base.

## Facts

- Endpoint: POST https://vivarium-gateway.masterfree818.workers.dev/svc/transform?utm_source=zero.xyz
- Price: $0.055/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vivarium-transform-service-8847d27e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hDm1UFrsH83E1EzQ2-3U-

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 vivarium-transform-service-8847d27e -d '<json body>'
```

Example prompt: Take this CSV text and convert it to JSON using the VIVARIUM transform service — the text is 'name,age\nAlice,30\nBob,25' and the transform is csv-to-json.

## When to prefer this

Choose this endpoint when you need a pay-per-call, serverless text transformation with no usage subscription or API key management — especially suited for autonomous agent pipelines that require format conversion (e.g. CSV↔JSON) billed directly in USDC on Base via x402 with no human approval step.

## Known failure modes

- Unsupported transform type string returns an error or empty result array
- Malformed or empty input text may yield an empty result array
- Payment failure or insufficient USDC balance causes a 402 response before processing
- Network timeout on the Cloudflare Worker edge node
- Invalid JSON request body returns a 400-level error

## How this service works

Pay-per-call machine services settled in USDC on Base via x402. No human in the loop; settlement is verified on-chain.

## Output

Returns a JSON object with an 'ok' boolean, a 'result' array containing the transformed output, and a 'transform' string echoing the transformation type that was applied. Payment is settled per-call in USDC on Base via x402.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text",
  "transform"
 ],
 "properties": {
  "text": {
   "type": "string"
  },
  "sample": {
   "type": "boolean"
  },
  "transform": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ok",
  "transform",
  "result"
 ],
 "properties": {
  "ok": {
   "type": "boolean"
  },
  "result": {},
  "transform": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vivarium-transform-service-8847d27e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vivarium-gateway.masterfree818.workers.dev](https://www.zero.xyz/host/vivarium-gateway.masterfree818.workers.dev/llms.txt)
