# Relaystation Embed

> Relaystation Embed 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).

Generate single or batch text embeddings at $0.002/10KB, designed to pair with the Baton vector index for pay-per-query RAG memory pipelines.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/llm/embed
- 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-embed-1b22f015
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8ieFLrdfJPm5yWJlpyiR6

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-embed-1b22f015 -d '<json body>'
```

Example prompt: Embed the following text chunks so I can store them in a vector index for semantic search — here are my 5 paragraphs from the product documentation: [text]. Use batch mode and return the embedding vectors.

## When to prefer this

Choose this endpoint when you need cost-transparent, pay-per-use text embeddings that integrate natively with the Relaystation/Baton ecosystem for RAG memory. It is especially suited for agentic workflows where embedding costs need to be metered per query via x402 micropayments, and where batch embedding of document chunks is required. Prefer it over managed embedding services when you want itemized billing at $0.002/10KB with no monthly subscription.

## Known failure modes

- Input text too large for a single call — need to chunk before submitting
- Batch payload exceeds size limits resulting in a 413 error
- Malformed JSON body returns a 400 bad request
- Insufficient x402 payment balance causes payment rejection
- Network timeout on very large batch submissions
- Empty string inputs may return zero vectors or errors

## How this service works

$0.002 per 10 KB. Generate text embeddings, single or batch — pairs with the baton vector index for pay-per-query RAG memory. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns one or more dense float vector arrays representing the semantic content of the input text, suitable for cosine similarity search, nearest-neighbor lookup, or storage in a compatible vector index such as Baton. Each vector captures the meaning of its corresponding input string.

## 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": {
      "input": {
       "anyOf": [
        {
         "type": "string",
         "minLength": 1
        },
        {
         "type": "array",
         "items": {
          "type": "string",
          "minLength": 1
         },
         "minItems": 1,
         "maxItems": 100
        }
       ]
      },
      "dimensions": {
       "type": "integer",
       "enum": [
        256,
        512,
        1024
       ]
      },
      "normalize": {
       "type": "boolean"
      }
     }
    }
   },
   "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-embed-1b22f015/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)
