# GlianaAI Grok Image Generation via x402

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

Generates images from a text prompt using the Grok image model, billed per-call at $0.03 USDC via x402 micropayment — no API key required.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/grok-imagine-image
- Price: $0.024/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-grok-image-generation-via-x402-12bc6aa9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7D5VgT0aywsZYN755yxVy

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-grok-image-generation-via-x402-12bc6aa9
```

Example prompt: Use GlianaAI's Grok image endpoint to generate an image of a cyberpunk fox standing under a neon Tokyo skyline at night — pay the $0.03 USDC per-call fee automatically.

## When to prefer this

Choose this endpoint when your agent needs to generate images specifically via the Grok model, wants to avoid API key registration, and can pay per-call in USDC via x402 on Base, Tempo, or Solana. Ideal for autonomous agents that need on-demand image generation with crypto-native micropayments and no subscription overhead.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required response
- Invalid or missing prompt field — 400 Bad Request
- Model temporarily unavailable — 503 Service Unavailable
- Prompt violates content policy — 422 Unprocessable Entity
- Network timeout during image generation — 504 Gateway Timeout

## 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 with the model name (e.g. 'grok-imagine'), an output object containing a media URL or image data, and the amount charged in micro-USD (costMicroUsd).

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-grok-image-generation-via-x402-12bc6aa9/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)
