# Bitcoin Benji AI Embed API

> Bitcoin Benji AI Embed API is a paid API for AI agents from api.bitcoinbenji.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Generates text embeddings via private AI inference, gated by Lightning Network micropayments using the L402 protocol

## Facts

- Endpoint: POST https://api.bitcoinbenji.com/ai/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/bitcoin-benji-ai-embed-api-98511c2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V5JsQt3EI_7mOQwJMqSZz

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 bitcoin-benji-ai-embed-api-98511c2f -d '<json body>'
```

Example prompt: Use Bitcoin Benji's private AI inference to generate an embedding for this text: 'Bitcoin is a decentralized digital currency enabling peer-to-peer transactions' — pay per call via Lightning, no API key needed.

## When to prefer this

Choose this endpoint when you need text embeddings without a traditional API key or subscription, want to pay only for what you use via Bitcoin Lightning micropayments, require privacy-preserving inference outside major cloud providers, or are building a Bitcoin/Lightning-native agent workflow where L402 payment is already supported.

## Known failure modes

- 402 Payment Required if Lightning payment is not provided or is invalid
- Malformed request body results in 400 error
- Text input too long may exceed model context window
- Network timeout if Lightning invoice settlement is slow
- Empty or missing text field causes processing error

## How this service works

L402-gated APIs: real-time Bitcoin mempool intelligence and private AI inference. Pay-per-call via Lightning. Zero API keys. Zero subscriptions.

## Output

A JSON object containing the embedding vector (array of floats) representing the semantic content of the submitted text, suitable for use in vector databases, similarity search, or downstream ML tasks.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-benji-ai-embed-api-98511c2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bitcoinbenji.com](https://www.zero.xyz/host/api.bitcoinbenji.com/llms.txt)
