---
name: glianaai
version: 1
description: >
  Pay-per-call AI over HTTP 402 — image, video, music, speech, LLM chat, plus
  market data, SEC filings, web search and Indonesian identity APIs. No signup, no key.
  Call /v1/consult first (free) to pick an endpoint, then pay per call.
---

# GlianaAI — pay-per-call AI for agents

One HTTP API. **No account and no API key** — an HTTP 402 handshake is the only gate,
and each call settles from your own wallet. We never hold a balance for you.

## Start here

```
GET https://api.glianalabs.com/v1/consult?intent=transcribe%20a%20podcast
```

Free. Returns candidate endpoints with prices. Then call the one you picked.

## Making a paid call

```bash
curl -X POST https://api.glianalabs.com/v1/infer \
  -H "content-type: application/json" \
  -d '{"model":"nano-banana-2","prompt":"a red apple"}'
```

The first response is `402` with `WWW-Authenticate: Payment` and every rail you may
pay with. Pay from your wallet, repeat the identical request with the proof, and you
get `200` plus `costMicroUsd`. Inputs are validated BEFORE any charge, so a malformed
call is refused rather than billed.

## Knowing the price first

- `GET https://api.glianalabs.com/v1/price?model=<id>` — exact price for one call.
- `GET https://api.glianalabs.com/v1/models` — every model with its price.
- `GET https://api.glianalabs.com/v1/schema?model=<id>` — required inputs, types and ranges.

All three are free. Dynamic-priced routes bill the CEILING of what the request could
cost, so quote before you send a long video or a large `max_tokens`.

## Rails

- `POST https://api.glianalabs.com/x402/<model>` — USDC on Base or Solana (x402).
- `POST https://api.glianalabs.com/a402/<model>` — USDC on Algorand, gasless.
- `POST https://api.glianalabs.com/b402/<model>` — gasless USDC/USDT/USD1 on BNB Smart Chain.
- `POST https://api.glianalabs.com/v1/*` — Tempo, EVM/Solana USDC, or card, via MPP.

## MCP

```bash
claude mcp add gliana -- npx -y gliana-ai-mcp@latest
```

Or the hosted server at `https://mcp.glianalabs.com`. Both read the live catalog, so
the tool list is never stale.

## Free without a wallet

Six Indonesian data lookups need no payment at all: `wilayah`, `prayer-times`,
`verify-nik`, `verify-npwp`, `qris`, `terbilang` — all `GET /v1/tools/<name>`.

## More

- Discovery: `https://api.glianalabs.com/.well-known/x402`
- OpenAPI: `https://api.glianalabs.com/openapi.json`
- Docs: https://ai.glianalabs.com/docs
