# OpenAI text-embedding-ada-002 Embeddings (x402/USDC)

> OpenAI text-embedding-ada-002 Embeddings (x402/USDC) 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 vector embeddings for text using OpenAI's text-embedding-ada-002 model, billed per call in USDC via the x402 payment protocol.

## Facts

- Endpoint: POST https://openai.mm.family/x402/v1/models/text-embedding-ada-002/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-ada-002-embeddings-x402-usdc-2db0191c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j_jfp8Q58Y7q-2igTlPZW

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-ada-002-embeddings-x402-usdc-2db0191c -d '<json body>'
```

Example prompt: Generate text-embedding-ada-002 embeddings for this sentence: 'The quick brown fox jumps over the lazy dog' — return the float vector so I can store it in my vector database.

## When to prefer this

Choose this endpoint when you need OpenAI's text-embedding-ada-002 embeddings specifically and want to pay per call in USDC via x402 micropayments without managing an OpenAI API key or subscription. Ideal for agents operating in crypto-native or decentralized payment environments, or for serverless workloads that benefit from pay-per-use pricing. Prefer when ada-002 compatibility is required for consistency with an existing vector index trained on ada-002 embeddings.

## Known failure modes

- Input exceeds 8192 token limit — request rejected
- Malformed input (non-string, non-array) — schema validation error
- Insufficient USDC balance for x402 payment — payment failure
- Invalid encoding_format value outside enum — request rejected
- Rate limiting or server-side quota exceeded — 429/503 response
- Model field set to unsupported model name — validation error

## How this service works

text-embedding-ada-002: OpenAI Text Embedding Ada 002 embeddings, paid per call in USDC. OpenAI list $0.1 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 integer index, object type 'embedding', and a float array (or base64 string) representing the vector. Also includes the model name used, total token count, and prompt token count consumed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": [
    "string",
    "array"
   ]
  },
  "model": {
   "enum": [
    "text-embedding-ada-002"
   ],
   "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-ada-002",
  "usage": {
   "total_tokens": 1,
   "prompt_tokens": 1
  },
  "object": "list"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openai-text-embedding-ada-002-embeddings-x402-usdc-2db0191c/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)
