# Agent Toolbox BGE-M3 Text Embeddings

> Agent Toolbox BGE-M3 Text Embeddings is a paid API for AI agents from agent-toolbox.zafermemon87.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-21).

Generates multilingual 1024-dimensional text embeddings using BGE-M3 for up to 100 texts per call, enabling semantic search, clustering, and RAG pipelines.

## Facts

- Endpoint: POST https://agent-toolbox.zafermemon87.workers.dev/v1/embed?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-toolbox-bge-m3-text-embeddings-6b2ab0cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jp9nVi05ASaNRNV5qLWpH

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 agent-toolbox-bge-m3-text-embeddings-6b2ab0cc -d '<json body>'
```

Example prompt: Embed these 3 product descriptions using BGE-M3 so I can store them in my vector database for semantic search: 'Wireless noise-cancelling headphones', 'Bluetooth over-ear audio headset', 'Premium wired studio monitor headphones'.

## When to prefer this

Choose this endpoint when you need high-quality multilingual embeddings (BGE-M3 supports 100+ languages) at batch scale (up to 100 texts per call) with a simple pay-per-call pricing model ($0.002 USDC). Prefer it over OpenAI embeddings when multilingual coverage or cost predictability is a priority, and over self-hosted BGE-M3 when you want zero infrastructure overhead.

## Known failure modes

- Input array exceeds 100 texts — request rejected
- Individual text exceeds 8,000 characters — may be truncated or rejected
- Empty texts array — likely returns zero embeddings or error
- Payment not included or insufficient (x402) — 402 Payment Required response
- Malformed JSON body — 400 Bad Request
- Service unavailable on Cloudflare Workers edge — 503 or timeout

## How this service works

Text embeddings with BGE-M3 (multilingual, 1024 dimensions) for search, clustering and RAG: up to 100 texts of up to 8,000 characters per call.

## Output

Returns a JSON object containing the number of embeddings generated, the model name ('bge-m3'), the number of dimensions (1024), a plain-language summary, and an array of float arrays — one 1024-dimensional vector per input text — ready for use in vector databases or similarity computations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "texts": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 100,
   "description": "Texts to embed"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "model": "bge-m3",
  "plain": "2 embeddings of 1024 dimensions.",
  "dimensions": 1024,
  "embeddings": [
   [
    -0.002920150756835938,
    0.0237579345703125,
    -0.083740234375,
    -0.001770973205566406,
    "...1020 more"
   ],
   [
    -0.0377197265625,
    0.019805908203125,
    -0.0533447265625,
    -0.0042572021484375,
    "...1020 more"
   ]
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-toolbox-bge-m3-text-embeddings-6b2ab0cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-toolbox.zafermemon87.workers.dev](https://www.zero.xyz/host/agent-toolbox.zafermemon87.workers.dev/llms.txt)
