# GEDX402 Text Embedding API (x402)

> GEDX402 Text Embedding API (x402) is a paid API for AI agents from embed.gedx402.com, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-15).

Generates vector embeddings for short text strings using BAAI BGE-small-en-v1.5, paid per-call via USDC on multiple blockchains with no API key required.

## Facts

- Endpoint: GET https://embed.gedx402.com/v1/embed/ping
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-text-embedding-api-x402-82e652bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AEPlh-xgmUFi7szXdGS7X

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-text-embedding-api-x402-82e652bd
```

Example prompt: Embed the text 'the quick brown fox jumps over the lazy dog' into a vector using GEDX402 — pay with USDC on Base, no API key needed.

## When to prefer this

Choose this endpoint when you need text embeddings without API key registration, want to pay per-call via USDC micropayments on Base, Polygon, Arbitrum, World, or Solana, and are building agent workflows that use the x402 payment protocol. Ideal for trustless, key-free embedding in AI pipelines.

## Known failure modes

- HTTP 402 if payment is not provided or insufficient USDC sent
- Payment rejected on unsupported chain
- Text input too long for BGE-small model context window
- Malformed JSON response if input is not valid UTF-8
- Network timeout on Cloudflare Workers edge

## How this service works

Entry probe — $0.0036 USDC per request. POST { text: "ping" } for x402 settlement and 384-dim vector. Agent search: embed ping, entry probe, x402 probe.

## Output

A JSON object containing a 'data' array with an embedding object that includes an 'index' field and an 'embedding' array of float values (BGE-small-en-v1.5 dimensions), plus the model name '@cf/baai/bge-small-en-v1.5'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-text-embedding-api-x402-82e652bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from embed.gedx402.com](https://www.zero.xyz/host/embed.gedx402.com/llms.txt)
