# OpenAI text-embedding-3-small (via mm.family x402)

> OpenAI text-embedding-3-small (via mm.family x402) is a paid API for AI agents from openai.mm.family, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Generates text embeddings using OpenAI's text-embedding-3-small model, billed per call in USDC via the x402 payment protocol

## Facts

- Endpoint: POST https://openai.mm.family/x402/v1/models/text-embedding-3-small/embeddings?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openai-text-embedding-3-small-via-mm-family-x402-c4c966d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QGu_dEVqKjtYqe7-ICZZd

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 openai-text-embedding-3-small-via-mm-family-x402-c4c966d1 -d '<json body>'
```

Example prompt: Embed this text using text-embedding-3-small and give me the float vector: 'Renewable energy is transforming the global power grid.'

## When to prefer this

Choose this endpoint when you need cost-efficient, high-quality text embeddings via OpenAI's text-embedding-3-small model and want to pay per call in USDC without managing an OpenAI API key. Prefer over text-embedding-3-large when speed and cost matter more than maximum embedding quality, and prefer over ada-002 for better performance at similar cost. Ideal for agents operating in crypto-native or x402-compatible payment environments.

## Known failure modes

- Input exceeds 8192 token limit — request rejected
- Insufficient USDC balance for x402 payment — 402 Payment Required response
- Invalid model value (must be 'text-embedding-3-small') — 400 validation error
- Malformed input array (unsupported types) — 422 unprocessable entity
- Rate limiting or upstream OpenAI outage — 503 or 429 error

## How this service works

text-embedding-3-small: OpenAI Text Embedding 3 Small embeddings, paid per call in USDC. OpenAI list $0.02 per 1M input tokens, plus $0.0005 (Base) or $0.0005 (Solana) per call; minimum $0.001 per call; up to 8192 tokens per input. Standard OpenAI body. Rates: https://openai.mm.family/x402/pricing

## Output

Returns a JSON object containing a list of embedding objects, each with an index, object type ('embedding'), and the embedding array (floats or base64-encoded), plus model name and token usage stats (prompt_tokens, total_tokens).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": [
    "string",
    "array"
   ]
  },
  "model": {
   "enum": [
    "text-embedding-3-small"
   ],
   "type": "string"
  },
  "dimensions": {
   "type": "integer"
  },
  "encoding_format": {
   "enum": [
    "float",
    "base64"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "index": 0,
    "object": "embedding",
    "embedding": [
     0.01,
     -0.02
    ]
   }
  ],
  "model": "text-embedding-3-small",
  "usage": {
   "total_tokens": 1,
   "prompt_tokens": 1
  },
  "object": "list"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openai-text-embedding-3-small-via-mm-family-x402-c4c966d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from openai.mm.family](https://www.zero.xyz/host/openai.mm.family/llms.txt)
