# Gambit Embed — Text Embeddings via x402 USDC on Base

> Gambit Embed — Text Embeddings via x402 USDC on Base is a paid API for AI agents from gambit.barrioenergy.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Generates vector embeddings for one or more text strings using nomic-embed-text, paid per-call with USDC on Base via the x402 protocol

## Facts

- Endpoint: POST https://gambit.barrioenergy.com/x402/embed
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gambit-embed-text-embeddings-via-x402-usdc-on-base-d60f9d1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9IAbPWHLodHZKD6OMlxk7

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 gambit-embed-text-embeddings-via-x402-usdc-on-base-d60f9d1c -d '<json body>'
```

Example prompt: Embed this sentence for me using Gambit's nomic-embed-text model so I can store it in my vector database: 'The quick brown fox jumps over the lazy dog.'

## When to prefer this

Choose this endpoint when you need pay-per-use text embeddings billed in USDC on Base via the x402 protocol, with no subscription or account required for bots. Ideal for AI agents in crypto-native stacks that need to embed text on-demand without pre-purchasing credits. The nomic-embed-text model produces 768-dimensional vectors well-suited for semantic search and RAG pipelines. Prefer this over OpenAI Embeddings or Cohere when you want decentralized, stablecoin-settled compute.

## Known failure modes

- Payment not included or insufficient USDC — returns 402 Payment Required with x402 payment details
- Input field missing or malformed — returns 400 with validation error
- Model unavailable or GPU backend overloaded — returns 503 Service Unavailable
- Empty string or empty array input — may return zero-length embeddings or 400 error
- Network timeout on large batches — connection may drop before response

## How this service works

Gambit GPU shop. Humans: /signup ($1 credit), X-API-Key on /v1/*, QR Lightning top-up. Bots: L402 Lightning (LIVE) on /l402/*, x402 USDC on Base on /x402/*, or POST /v1/register ($0) then POST /v1/topup/lightning. Handwritten letter POST /x402/letter at $25.00 USDC. Funnel https://gambit.barrioenergy.com. Free probe GET|POST /x402/models.

## Output

Returns a JSON object containing the embedding dimension (dim: 768), the count of embeddings generated, the model name (nomic-embed-text:latest), and an array of embedding vectors — one float array per input string — suitable for use in vector databases, similarity search, or downstream ML tasks.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "oneOf": [
    {
     "type": "string"
    },
    {
     "type": "array",
     "items": {
      "type": "string"
     }
    }
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dim": 768,
  "count": 1,
  "model": "nomic-embed-text:latest",
  "embeddings": [
   [
    0.01
   ]
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gambit-embed-text-embeddings-via-x402-usdc-on-base-d60f9d1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gambit.barrioenergy.com](https://www.zero.xyz/host/gambit.barrioenergy.com/llms.txt)
