# agent402.tools Text Embedding (OpenAI text-embedding-3-small)

> agent402.tools Text Embedding (OpenAI text-embedding-3-small) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Generates a 1536-dimension text embedding vector using OpenAI text-embedding-3-small, paid per call via x402 with no API key required.

## Facts

- Endpoint: POST https://agent402.tools/api/embed
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-text-embedding-openai-text-embedding-3-small-46b77f19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WEwTR_7XEP6b_TcPXzb4H

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 agent402-tools-text-embedding-openai-text-embedding-3-small-46b77f19 -d '<json body>'
```

Example prompt: Turn this product description into a 1536-dim embedding vector so I can store it in my vector database for semantic search: 'Lightweight waterproof hiking boots with anti-slip soles and breathable mesh lining, ideal for trail use.'

## When to prefer this

Choose this endpoint when you need a high-quality 1536-dim embedding from OpenAI's text-embedding-3-small model without managing your own OpenAI API key, and you want to pay per call via x402 micropayment. Ideal for agents building RAG pipelines, semantic search, or clustering on the fly without provisioning credentials.

## Known failure modes

- Text exceeds 32,000 character limit — request rejected
- Empty or missing text field — validation error
- x402 payment failure (insufficient funds or wallet issue) — payment error returned
- OpenAI upstream outage — 502/503 returned
- Malformed JSON request body — 400 bad request

## How this service works

Generate a text embedding vector using OpenAI text-embedding-3-small (1536 dimensions). Ideal for semantic search, RAG, and clustering. No API key needed; pay per call via x402. Text capped at 32k chars.

## Output

A 1536-dimensional float vector (array of numbers) representing the semantic content of the input text, suitable for similarity search, clustering, or RAG retrieval pipelines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to embed (max 32,000 chars)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "text-embedding-3-small",
  "usage": {
   "total_tokens": 12
  },
  "provider": "openai",
  "embedding": [
   0.0023,
   -0.0091,
   0.0152
  ],
  "dimensions": 1536
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-text-embedding-openai-text-embedding-3-small-46b77f19/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
