# GlianaAI tools/embed — Embedding Generation

> GlianaAI tools/embed — Embedding Generation is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-22).

Generates vector embeddings for text or content inputs via GlianaAI's pay-per-call API, billed in USDC with no signup required.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/tools/embed?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-tools-embed-embedding-generation-cac6a525
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QUlg9VfSMSDSL7cop4J4u

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 glianaai-tools-embed-embedding-generation-cac6a525
```

Example prompt: Use GlianaAI's embed tool to turn this paragraph into a vector embedding 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 on-demand text embeddings with zero-signup pay-per-call billing in USDC (Tempo, Base, or Solana), especially useful for agents operating without pre-negotiated API keys or when cost needs to be metered per individual embedding request.

## Known failure modes

- Missing required 'input' field returns a 400 validation error
- Invalid method (non-GET) returns method not allowed
- Payment not provided or insufficient USDC balance returns 402 Payment Required
- Malformed body type enum returns schema validation error
- Empty or null input body may return a processing error

## How this service works

GlianaAI - pay-per-call AI, market data and identity APIs, no signup, USDC. This resource: tools/embed. Turn text into 1024-d vectors for semantic search, clustering or RAG. https://ai.glianalabs.com

## Output

Returns a JSON response with the tool name ('tools/embed') and the computed embedding vector or encoded representation for the provided input, usable directly in vector databases or similarity computations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "texts": {
   "type": "array",
   "description": "Array of strings to embed, one vector per entry."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "tools/embed"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-tools-embed-embedding-generation-cac6a525/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.glianalabs.com](https://www.zero.xyz/host/api.glianalabs.com/llms.txt)
