# GlianaAI GPT-Image-2 Inference

> GlianaAI GPT-Image-2 Inference is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.058/call, not verified (last probed 2026-10-11); live alternatives: WithZero Grok Imagine Image Generation ($0.05) and Generate Images via Google Gemini 3.1 Flash ($0.07).

Agents call it through Zero, which pays per call: no API key and no wallet of your own. New accounts start with $5.

Live alternatives for the same use case:
- [WithZero Grok Imagine Image Generation](https://www.zero.xyz/c/withzero-grok-imagine-image-generation-58f6270b) ($0.05)
- [Generate Images via Google Gemini 3.1 Flash](https://www.zero.xyz/c/image-withzero-xyz-generate-images-via-google-gemini-3-1-flash-nano-a910a17d) ($0.07)

Generates images using GPT-Image-2 via a pay-per-call endpoint settled in USDC, requiring no API key or signup

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/gpt-image-2?utm_source=zero.xyz
- Price: $0.058/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Last successful call: 2026-06-30
- Success rate: 100% of calls made through Zero
- Rating: 2.7 / 5 from 1 review
- Activations on Zero: 18
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-gpt-image-2-inference-041497c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SSwWzOImyfU4Udpaa79-B

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-gpt-image-2-inference-041497c6
```

Example prompt: Generate an image of a futuristic cityscape at sunset with neon lights reflecting on wet pavement — use GPT-Image-2 and pay the $0.06 USDC fee from my wallet.

## When to prefer this

Choose this endpoint when you need GPT-Image-2 image generation without an OpenAI account or API key, want to pay per-call in USDC (Base, Solana, or Tempo) or by card, and require zero-signup frictionless access for an AI agent that can handle x402 micropayment flows.

## Known failure modes

- Payment insufficient or wallet balance too low — returns 402 Payment Required
- Invalid or missing prompt field — returns 400 Bad Request
- Model temporarily unavailable — returns 503 Service Unavailable
- Payment settlement failure on Base/Solana/Tempo — transaction rejected
- Prompt violates content policy — returns 4xx with policy violation message
- Network timeout during image generation — returns 504 or connection error

## How this service works

gpt-image-2: Text-to-Image on GlianaAI - pay-per-call generative AI (60+ models, no signup, USDC). https://ai.glianalabs.com

## Output

Returns a JSON object with the model name ('gpt-image-2'), an output object containing a media URL or structured result for the generated image, and the amount charged in micro-USD (costMicroUsd).

## Example request

```json
{
 "prompt": "A serene mountain landscape with a crystal-clear lake reflecting snow-capped peaks under a starry night sky"
}
```

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-gpt-image-2-inference-041497c6/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)
