# GlianaAI nano-banana-2.1 Text-to-Image Generation

> GlianaAI nano-banana-2.1 Text-to-Image Generation is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.057/call, status unknown (last checked 2026-10-29).

Generates an image from a text prompt using GlianaAI's nano-banana-2.1 model, returning a hosted media URL, paid per-call in USDC via x402

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/nano-banana-2.1?utm_source=zero.xyz
- Price: $0.057/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-nano-banana-2-1-text-to-image-generation-0fa982f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UOtoCq2uqdbTVCRmRGtYr

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-nano-banana-2-1-text-to-image-generation-0fa982f0
```

Example prompt: Use GlianaAI's nano-banana-2.1 model to generate an image of a futuristic cyberpunk cityscape at night with neon reflections on rain-soaked streets — pay with USDC and give me back the image URL.

## When to prefer this

Choose this endpoint when you need a single, on-demand text-to-image generation with no account setup, subscription, or API key — just a USDC micropayment via x402. It is ideal for agents orchestrating one-off creative tasks, prototyping visuals, or operating in environments where traditional API key management is impractical. Prefer nano-banana-2.1 specifically when the sibling model nano-banana-2 is insufficient or when you want the latest revision of this model family on GlianaAI.

## Known failure modes

- Insufficient USDC balance or failed x402 payment — request rejected before processing
- Invalid or missing 'input' body — returns schema validation error
- Model overload or upstream inference failure — may return 5xx error with no image URL
- Malformed bodyType enum value — request rejected at input validation
- Generated image ID expires or media endpoint becomes unavailable after a period

## How this service works

One endpoint for 120+ generative AI models plus market data, SEC filings and identity APIs. Pay per request in USDC, no signup, or top up a balance in rupiah.

## Output

Returns a JSON object containing the model identifier ('nano-banana-2.1') and an output object with a 'url' field pointing to the hosted generated image at https://api.glianalabs.com/v1/media/<id>. The agent can use this URL directly to display, download, or embed the image.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-nano-banana-2-1-text-to-image-generation-0fa982f0/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)
