# BGE-M3 Text Embeddings via x402 (GEDX402)

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

Generates BGE-M3 dense vector embeddings for one or more text strings, payable per-call with USDC on multiple chains via x402 protocol, no API key required.

## Facts

- Endpoint: GET https://ged-x402-embed.jvalamis.workers.dev/v1/embed/bge-m3
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bge-m3-text-embeddings-via-x402-gedx402-51aed05f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V5VRTmC-0UoWA5BA1RiFY

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 bge-m3-text-embeddings-via-x402-gedx402-51aed05f
```

Example prompt: Can you embed this sentence using BGE-M3 so I can store it in my vector database: 'The quick brown fox jumps over the lazy dog'?

## When to prefer this

Choose this endpoint when you need BGE-M3 embeddings specifically (known for strong multilingual and cross-lingual performance), want to avoid API key management, can pay per-call with USDC on Base, Polygon, Arbitrum, World, or Solana, and are building agents or pipelines that support x402 HTTP payment headers. Ideal for low-volume or pay-as-you-go embedding use cases.

## Known failure modes

- Payment not received or insufficient USDC balance — HTTP 402 returned, embedding not generated
- Unsupported chain used for payment — transaction rejected
- Text input too long for BGE-M3 context window — may return error or truncated embedding
- Empty text string submitted — may return zero vector or error
- Network timeout on Cloudflare Workers edge — HTTP 500 or timeout error

## 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 'data' array where each element contains an 'index' (integer position) and an 'embedding' (array of floats) representing the dense vector for the corresponding input text. For batch requests, one embedding per input string is returned in order.

## 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/bge-m3-text-embeddings-via-x402-gedx402-51aed05f/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)
