# Pocket Network Text Embeddings

> Pocket Network Text Embeddings is a paid API for AI agents from agent.pocket.network, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Converts a string or array of strings into deterministic embedding vectors using a fixed open-weight model, suitable for RAG and semantic memory pipelines.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/text-embeddings?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-text-embeddings-b7b87382
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mSBDxIY3dqybUu82pFj6i

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 pocket-network-text-embeddings-b7b87382 -d '<json body>'
```

Example prompt: Embed this text for me using a fixed, deterministic open-weight model so I can store it in my vector database: 'Pocket Network provides decentralized RPC infrastructure for blockchain developers.'

## When to prefer this

Choose this endpoint when you need deterministic, reproducible embeddings from a fixed open-weight model — critical for RAG, vector stores, or memory pipelines where embedding drift would break retrieval. It requires no API key or account, making it ideal for agent-to-agent or serverless workflows that pay per request in USDC via x402. Prefer it over OpenAI or Cohere embeddings when you need supplier-agnostic, stable vectors that won't change across model updates.

## Known failure modes

- Empty or null inputs array returns a validation error
- Inputs exceeding model token limit may be truncated or rejected
- Network timeout if Pocket Network decentralized nodes are unavailable
- Payment failure (insufficient USDC or x402 handshake issue) results in 402 response
- Malformed JSON body returns 400 bad request

## How this service works

Pay-per-call access to Pocket Network services. No account, no API key.

## Output

Returns a JSON object containing one or more embedding vectors — each a fixed-length array of floating-point numbers — corresponding to each input string. The output is deterministic: identical inputs always produce identical vectors regardless of when or where the call is made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "inputs": {
   "type": [
    "string",
    "array"
   ],
   "items": {
    "type": "string"
   },
   "description": "A single string or an array of strings to embed."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "portal": {
   "serviceId": "text-embeddings",
   "provenance": "third-party-supplier",
   "schemaCheck": "passed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pocket-network-text-embeddings-b7b87382/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.pocket.network](https://www.zero.xyz/host/agent.pocket.network/llms.txt)
