# GEDX402 Text Embedding API

> GEDX402 Text Embedding API is a paid API for AI agents from ged-x402-embed.jvalamis.workers.dev, paid per call via x402, $0.0073/call, status unknown (last checked 2026-09-15).

Generates vector embeddings for one or more text strings using Cloudflare Workers AI, payable with USDC on multiple blockchains via x402 protocol

## Facts

- Endpoint: GET https://ged-x402-embed.jvalamis.workers.dev/v1/embed
- Price: $0.0073/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-ef42e9f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zr508-1xtZxp_CkYpZ29f

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-ef42e9f9
```

Example prompt: Generate a vector embedding for this text: 'The quick brown fox jumps over the lazy dog' — I want to use it for semantic similarity search, and I'll pay with USDC on Base.

## When to prefer this

Choose this endpoint when you need text embeddings without registering for an API key and want to pay per-call with USDC on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents operating in crypto-native environments or when avoiding traditional API key management is a priority. Useful for one-off embedding tasks or when integrating into x402-compatible payment workflows.

## Known failure modes

- Payment not received or insufficient USDC balance returns 402
- Unsupported blockchain network specified returns error
- Empty or missing 'text' and 'texts' fields returns validation error
- Text input exceeding model context length returns truncation or error
- Network timeout on Cloudflare Workers edge returns 503

## How this service works

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

## Output

A JSON object containing a 'data' array where each element has an 'index' and an 'embedding' field — a float array representing the vector embedding of the corresponding input text string.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "index": 0,
    "embedding": [
     0.01,
     -0.02
    ]
   }
  ]
 }
}
```

## More

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