# Relaystation Baton Vector Batch-Write

> Relaystation Baton Vector Batch-Write 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-13).

Batch-writes embeddings into a prepaid vector index inside a Relaystation baton (durable shared-storage object), enabling agent RAG memory without self-hosting a vector database.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/baton/%7Bid%7D/vectors
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-baton-vector-batch-write-85c86b11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rFDkONGtjp8nafz2SBfQB

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-baton-vector-batch-write-85c86b11 -d '<json body>'
```

Example prompt: Write these 10 embeddings as a batch into my Relaystation baton (ID: baton_abc123) so I can use them for RAG memory lookups later.

## When to prefer this

Choose this endpoint when an agent needs durable, hosted vector storage for RAG without the overhead of deploying and managing a vector database. It is ideal for agents that already generate embeddings and need to persist them cheaply ($0.002/batch of 10) into Relaystation's baton shared-storage objects. Prefer this over self-hosted solutions when infrastructure simplicity and per-use micropayment pricing matter, and when you are already using Relaystation batons as your agent's shared memory layer.

## Known failure modes

- Invalid or missing baton ID in path — 404 not found
- Insufficient prepaid balance in the baton — payment or credit error
- Malformed embedding vectors in request body — 400 bad request
- Batch size exceeds allowed limit — 400 or 413 error
- x402 payment not attached or insufficient — 402 payment required
- Body type mismatch (wrong bodyType enum value) — 400 validation error

## How this service works

$0.002/batch of 10. Batch-write embeddings into a prepaid vector index inside a baton — Relaystation's durable shared-storage object — agent RAG memory without running a vector DB. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Confirmation that the batch of embedding vectors has been written into the specified baton's prepaid vector index. The baton then holds the indexed vectors for subsequent semantic retrieval queries. Any overpaid credit beyond the $0.002/batch cost is auto-credited back.

## 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": {
     "properties": {}
    }
   },
   "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-baton-vector-batch-write-85c86b11/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)
