# GlianaAI Grok Imagine Image 2.0 — Text-to-Image Generation

> GlianaAI Grok Imagine Image 2.0 — Text-to-Image Generation is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.048/call, status unknown (last checked 2026-09-13).

Generates an image from a text prompt using the Grok Imagine 2.0 model and returns a hosted media URL, billed per call in USDC with no signup required.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/grok-imagine-image-2.0
- Price: $0.048/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-grok-imagine-image-2-0-text-to-image-generation-571c68a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3jiQoD1j77YpIYUhou9FE

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-imagine-image-2-0-text-to-image-generation-571c68a1
```

Example prompt: Use Grok Imagine 2.0 to generate an image of a futuristic cityscape at sunset with neon lights reflecting off wet streets.

## When to prefer this

Choose this endpoint when you need Grok Imagine 2.0 specifically for image generation and want pay-per-call USDC billing with no API subscription or signup. Prefer this over OpenAI DALL-E or Stability AI endpoints when you want xAI's Grok visual model, need crypto-native micropayment billing on Base/Solana/Algorand/BNB Chain, or are building an agent that requires serverless, no-account image generation billed per request.

## Known failure modes

- Missing or empty prompt input — returns error indicating required field
- Payment failure or insufficient USDC balance — 402 Payment Required response
- Model unavailability or upstream xAI outage — 503 or timeout
- Invalid HTTP method (only GET is accepted) — 405 Method Not Allowed
- Prompt flagged by content moderation — returns refusal or 400 error

## 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 ('grok-imagine-image-2.0') and an output object with a 'url' field pointing to the hosted generated image on GlianaAI's media server (e.g. https://api.glianalabs.com/v1/media/<id>). The image can be fetched directly from that URL.

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

## More

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