# GlianaAI Image Generation (text-to-image)

> GlianaAI Image Generation (text-to-image) is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.04644/call, status unknown (last checked 2026-09-13).

Generates images from text prompts via GlianaAI's pay-per-call inference endpoint, returning a hosted image URL.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/images/generations
- Price: $0.04644/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-image-generation-text-to-image-81df611c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PCNMXqJOKsgiRDYyLI-nb

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-image-generation-text-to-image-81df611c
```

Example prompt: Generate an image of a futuristic cityscape at sunset with neon lights reflecting on wet streets — use the nano-banana-2-lite model via GlianaAI.

## When to prefer this

Choose this endpoint when you need pay-per-call image generation with no subscription or signup, want to pay in USDC on-chain (Base, Solana, Algorand, BNB Chain, or Tempo), or need access to multiple image models (e.g. nano-banana-2-lite, flux variants) under one unified API. Ideal for agents operating in crypto-native or blockchain environments where x402 payment protocol is already supported.

## Known failure modes

- Missing or invalid 'input' body causes 400 bad request
- Insufficient USDC balance triggers 402 Payment Required before generation
- Invalid or unsupported model name may return an error or fall back to default model
- Network timeout if image generation takes longer than expected
- Image URL may expire or become inaccessible after a retention period

## 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 and an output object with a URL pointing to the generated image hosted on api.glianalabs.com/v1/media/<id>.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-image-generation-text-to-image-81df611c/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)
