# GEDX402 Text Embedding API

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

Generates vector embeddings for text strings (single or batch) using Workers AI, paid per-call via USDC cryptocurrency with no API key required

## Facts

- Endpoint: GET https://embed.gedx402.com/v1/embed
- Price: $0.0073/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-text-embedding-api-33c76033
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qQy3HDRCgz2xPJqNRFQSV

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-33c76033
```

Example prompt: Embed this sentence into a vector using GEDX402's Workers AI — no API key, just pay with USDC on Base: 'The quick brown fox jumps over the lazy dog'

## When to prefer this

Choose this endpoint when you need text embeddings without traditional API key registration, prefer paying per-call with USDC on Base, Polygon, Arbitrum, World, or Solana, or want to use Cloudflare Workers AI infrastructure via the x402 payment protocol in a crypto-native agent workflow.

## Known failure modes

- Payment not received or insufficient USDC — 402 Payment Required response
- Invalid or missing 'text' and 'texts' fields — 400 Bad Request
- Text input too long for model context window
- Network timeout on Cloudflare Workers edge
- Unsupported blockchain network for payment

## How this service works

Generate text embeddings with BGE Base EN V1.5 (@cf/baai/bge-base-en-v1.5). POST text or texts[] for semantic search, RAG retrieval, and clustering; billed by input character volume.

## Output

Returns a JSON object with a 'data' array where each element contains an 'index' (position in batch) and 'embedding' (array of floats representing the vector for that input string)

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-text-embedding-api-33c76033/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)
