# Relaystation RAG Query Bundle

> Relaystation RAG Query Bundle 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).

One-call RAG pipeline: embeds a question, searches a vector memory index, and optionally returns a grounded answer with cited source chunks

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/bundles/rag-query
- 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-rag-query-bundle-bd086f10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yTYr6DBmnVZAVb09zHM7P

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-rag-query-bundle-bd086f10 -d '<json body>'
```

Example prompt: Search my Relaystation vector memory for 'what are the refund policy terms?' and give me a grounded answer with the source chunks it was pulled from.

## When to prefer this

Choose this endpoint when you need a complete one-call RAG pipeline — embedding, vector search, and optional grounded answer — without wiring together separate embedding and search services. Ideal for agents that have pre-populated a Relaystation baton vector index and need fast, cited, document-grounded responses rather than open-ended generation.

## Known failure modes

- Empty or missing vector index returns no results or an error
- Poorly formed question yields low-similarity chunks with irrelevant content
- Payment not attached or insufficient USDC credits results in 402 rejection
- Malformed HTTP body type or missing required fields returns a 400 validation error
- Index not yet populated (no embeddings written) returns empty results

## How this service works

~$0.01/run, bills the sum of steps. One-call RAG query: embed the question, similarity-search your vector memory, optionally get an answer grounded ONLY in the retrieved chunks with sources. Recipe: relaystation.ai/recipes/agent-rag-memory. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the most similar vector chunks from the index matching the query, plus an optional LLM-generated answer grounded exclusively in those retrieved chunks with source references included.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/relaystation-rag-query-bundle-bd086f10/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)
