# OpenAI-Compatible Text Embeddings (BGE-M3, 1024-dim)

> OpenAI-Compatible Text Embeddings (BGE-M3, 1024-dim) is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-04).

Converts a single text string (up to 4000 chars, 100+ languages) into a 1024-dimension embedding vector using BAAI BGE-M3, via OpenAI-compatible API shape

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/v1/embeddings?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-04
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-openai-compatible-text-3ca95505
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jxafSP_2kvR3_QcO5pqiz

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-data-tools-revmesh2074-workers-dev-openai-compatible-text-3ca95505
```

Example prompt: Turn this sentence into a 1024-dimension embedding vector using BGE-M3: 'Renewable energy is becoming increasingly cost-competitive with fossil fuels.'

## When to prefer this

Choose this endpoint when you need OpenAI SDK-compatible embedding calls (drop-in /v1/embeddings path) without a full OpenAI account, want BGE-M3's strong multilingual performance (100+ languages), need per-call micro-payments via x402 crypto or prepaid card credits, and are embedding one text at a time. Prefer over OpenAI's text-embedding-ada-002 when multilingual coverage or pay-per-call USDC billing matters. Prefer over self-hosted BGE-M3 when you want zero infrastructure.

## Known failure modes

- Input exceeds 4000 character limit — request rejected
- Array input with more than 1 item — schema violation
- Missing `input` field — 400 Bad Request
- Invalid or missing payment credential — 402 Payment Required (not charged)
- Model field ignored silently — no error but always uses BGE-M3
- Network timeout on Cloudflare Worker — transient 5xx, not charged

## How this service works

OpenAI embeddings request shape, answered by the same model and at the same price as /ai/embed ($0.01): send one input string (up to 4000 characters, 100+ languages), get one 1,024-dimension vector. One input per request, because one payment pays for one call. Point an OpenAI SDK at https://agent-data-tools.revmesh2074.workers.dev/v1 with an x402 or MPP fetch wrapper, or an adt_ card-credit key as apiKey. Failed calls are never charged.

## Output

Returns an OpenAI-compatible JSON response with a `data` array containing one embedding object (index, object type, and a 1024-element float array), plus `model` name, `object` type, and `usage` stats (prompt_tokens, total_tokens, estimated flag).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "oneOf": [
    {
     "type": "string"
    },
    {
     "type": "array",
     "items": {
      "type": "string"
     },
     "maxItems": 1,
     "minItems": 1
    }
   ],
   "description": "One text to embed (a string, or a one-item array)"
  },
  "model": {
   "type": "string",
   "description": "Ignored; the model is @cf/baai/bge-m3"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "index": {
      "type": "integer"
     },
     "object": {
      "type": "string"
     },
     "embedding": {
      "type": "array",
      "items": {
       "type": "number"
      }
     }
    }
   }
  },
  "model": {
   "type": "string"
  },
  "usage": {
   "type": "object",
   "properties": {
    "estimated": {
     "type": "boolean"
    },
    "total_tokens": {
     "type": "integer"
    },
    "prompt_tokens": {
     "type": "integer"
    }
   }
  },
  "object": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-openai-compatible-text-3ca95505/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
