# GlianaAI Aleph-2 — Pay-Per-Call AI Inference

> GlianaAI Aleph-2 — Pay-Per-Call AI Inference is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $2.436/call, status unknown (last checked 2026-09-14).

Runs a generative AI inference request against the Aleph-2 model (image, video, audio, music, or speech) with per-call USDC payment settled via x402 protocol — no API key required.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/aleph-2
- Price: $2.436/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-aleph-2-pay-per-call-ai-inference-99acafc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bNx7uRYLtOj1ekwI0RpQ0

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-aleph-2-pay-per-call-ai-inference-99acafc7
```

Example prompt: Using GlianaAI's Aleph-2 model, generate an image of a misty Japanese forest at dawn — pay per call in USDC via x402, no API key needed.

## When to prefer this

Choose this endpoint when you need to run generative AI inference (image, video, audio, music, speech) without a subscription or API key, and your agent can settle micropayments in USDC via the x402 protocol on Base, Solana, or Tempo. Ideal for autonomous agents that need to pay per-use rather than manage billing accounts, or when building workflows that combine AI generation with on-chain payment settlement.

## Known failure modes

- Insufficient USDC balance or failed x402 payment — request rejected before inference runs
- Invalid or missing prompt field — 400 validation error
- Unsupported model-specific input format — check GET /v1/schema?model= for correct schema
- Network timeout during long-running inference (video/audio models) — retry required
- Payment settlement failure on selected chain (Base, Solana, Tempo) — chain congestion or misconfiguration

## How this service works

One endpoint for 90+ generative AI models, live market data, SEC filings and identity APIs — image, video, music, speech, LLM chat, crypto and FX rates, DEX liquidity, gas, US company fundamentals and insider trades, document OCR and face matching. Pay per request in USDC on Tempo, Base, Solana, Algorand or BNB Chain with no signup, or top up a prepaid balance in rupiah.

## Output

Returns a JSON object containing the model name used, the output (typically a media URL or structured JSON result from the model), and the exact amount charged in micro-USD for the call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "aleph-2",
  "output": {
   "url": "https://api.glianalabs.com/v1/media/<id>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-aleph-2-pay-per-call-ai-inference-99acafc7/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)
