# rag.gedx402.com AI Search Index

> rag.gedx402.com AI Search Index is a paid API for AI agents from rag.gedx402.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Indexes a document (URL, plain text, or base64 file) into an AI search instance for later retrieval

## Facts

- Endpoint: GET https://rag.gedx402.com/v1/aisearch/:id/index
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rag-gedx402-com-ai-search-index-85b14d18
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oOk3uPfnXi3i_nOfFhrYa

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 rag-gedx402-com-ai-search-index-85b14d18
```

Example prompt: Index this article into my search instance 'ged-abc123' — fetch it from https://example.com/article.html and wait until indexing is complete before responding.

## When to prefer this

Choose this endpoint when you need to add new content to an existing AI search index hosted on rag.gedx402.com — specifically when you want to ingest a public URL, raw text, or a file (up to 4 MB) without managing API keys, paying per-call in USDC via x402 on Base, Polygon, Arbitrum, World, or Solana.

## Known failure modes

- URL unreachable or returns non-200 — indexing fails with error status
- Document exceeds 4 MB limit — request rejected
- Invalid or missing instance ID in path — 404 or error
- Base64 payload malformed — decoding error
- Payment not confirmed on-chain — 402 Payment Required response
- Poll timeout if indexing takes too long

## How this service works

Run Cloudflare AI Search inference on Cloudflare Workers AI (cloudflare-ai-search) via POST JSON. Pay per request with USDC on Base, Polygon, Arbitrum, World, or Solana (x402 v2); see x-payment-info for price bounds and accepted networks.

## Output

Returns a JSON object with the indexing status ('queued' or completed), a unique item_id for the indexed document, and the instance_id confirming which search index received the content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "poll": {
   "type": "boolean"
  },
  "text": {
   "type": "string"
  },
  "filename": {
   "type": "string"
  },
  "file_base64": {
   "type": "string"
  },
  "session_token": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rag-gedx402-com-ai-search-index-85b14d18/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rag.gedx402.com](https://www.zero.xyz/host/rag.gedx402.com/llms.txt)
