# GlianaAI Multi-Model AI Inference (nano-banana-2)

> GlianaAI Multi-Model AI Inference (nano-banana-2) is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.11165/call, status unknown (last checked 2026-10-18).

Runs a prompt through any of 59 generative AI models (image, video, audio, music, speech) with per-call USDC micropayment via x402, returning the model output as a media URL or JSON.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/nano-banana-2?utm_source=zero.xyz
- Price: $0.11165/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-multi-model-ai-inference-nano-banana-2-bbf97cf9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R2H5l8MKIr5q60iLddjW8

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-multi-model-ai-inference-nano-banana-2-bbf97cf9
```

Example prompt: Use GlianaAI to generate a photorealistic image of a sunset over the ocean with dramatic storm clouds — send the prompt and pay per call in USDC.

## When to prefer this

Prefer this endpoint when an AI agent needs to call generative AI models (image, video, audio, music, speech) without pre-registration or API keys, and can settle payments programmatically in USDC via x402 on Base, Solana, or Tempo. Ideal for autonomous agents that need multi-modal generation in a single unified endpoint with micropayment settlement.

## Known failure modes

- Payment insufficient or rejected — x402 payment not accepted, returns 402 with payment requirements
- Invalid or missing prompt — 400 error if required prompt field is absent
- Model not found or unsupported — if model-specific input is malformed, may return error or unexpected output
- Network or inference timeout — model backend may be slow for video/audio generation
- Insufficient USDC balance — agent wallet lacks funds to cover $0.1155 per call

## How this service works

GlianaAI — nano-banana-2 (text-to-image)

## Output

Returns a JSON object containing the model name used, the output (a media URL or structured JSON depending on the model), and the exact amount charged in micro-USD.

## Example request

```json
{
 "prompt": "A serene landscape photograph of a misty mountain valley at dawn with golden sunlight breaking through the clouds"
}
```

## 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": "nano-banana-2",
  "output": {
   "url": "https://api.glianalabs.com/v1/media/<id>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-multi-model-ai-inference-nano-banana-2-bbf97cf9/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)
