# GEDX402 Vector Query

> GEDX402 Vector Query is a paid API for AI agents from ged-x402-search.jvalamis.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-16).

Performs semantic vector search over a named namespace by embedding a natural-language query and returning the top-k matching documents

## Facts

- Endpoint: GET https://ged-x402-search.jvalamis.workers.dev/v1/vector/query
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-vector-query-be9c5ee7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wbzAoZDBifYCPHLfD2Y7R

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 gedx402-vector-query-be9c5ee7
```

Example prompt: Search my 'customer-support' namespace for the top 5 documents most similar to 'how do I reset my password', and include their stored metadata in the results.

## When to prefer this

Choose this endpoint when you need keyless, pay-per-call semantic vector search over a named namespace using natural language queries, especially in agent pipelines that require RAG (retrieval-augmented generation) without managing API keys or long-term subscriptions. Prefer it when you need USDC micropayment billing across multiple chains (Base, Polygon, Arbitrum, World, Solana).

## Known failure modes

- Empty matches array if namespace has no indexed documents or query finds no similar results
- Payment required (402) if USDC payment is not included or insufficient
- Invalid namespace format (must be 2-64 chars) returns a validation error
- top_k out of range (must be 1-50) causes a bad request error
- Mismatched vector dimensions (must be 768) causes an error if a raw vector is provided
- Namespace not found or not yet populated returns count:0 with empty matches

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

Returns a JSON object with a count of matches and an array of matched documents, each including their document ID, similarity score, and optionally stored metadata fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "top_k": {
   "type": "integer"
  },
  "vector": {
   "type": "array",
   "items": {
    "type": "number"
   }
  },
  "namespace": {
   "type": "string"
  },
  "return_values": {
   "type": "boolean"
  },
  "return_metadata": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 0,
  "matches": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-vector-query-be9c5ee7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ged-x402-search.jvalamis.workers.dev](https://www.zero.xyz/host/ged-x402-search.jvalamis.workers.dev/llms.txt)
