# GlianaAI Flux 2 Pro Preview — Pay-Per-Call Image Generation

> GlianaAI Flux 2 Pro Preview — Pay-Per-Call Image Generation is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.054/call, status unknown (last checked 2026-09-13).

Generates images using the Flux 2 Pro Preview model via a pay-per-call endpoint settled in USDC with no API key required

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/flux-2-pro-preview
- Price: $0.054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-flux-2-pro-preview-pay-per-call-image-generation-0d508fe9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iMFuZg54SuIU04IeAqX4E

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-flux-2-pro-preview-pay-per-call-image-generation-0d508fe9
```

Example prompt: Generate a photorealistic image of a misty Japanese forest at dawn with soft golden light filtering through ancient cedar trees — use Flux 2 Pro Preview and pay in USDC.

## When to prefer this

Choose this endpoint when you need to generate images using the Flux 2 Pro Preview model specifically, want pay-per-call billing in USDC without any signup or API key management, and are operating an autonomous AI agent that can handle x402 micropayment flows on Base, Solana, or Tempo. Prefer this over traditional API-key services when building agent workflows that need trustless, on-chain payment settlement.

## Known failure modes

- Insufficient USDC balance causes payment failure and 402 response
- Invalid or empty prompt returns a 400 validation error
- Model-specific input format mismatch (consult GET /v1/schema?model= for correct schema)
- Network timeout during inference for complex prompts
- Payment settlement failure on selected chain (Tempo, Base, or Solana)
- Rate limiting if too many concurrent requests are submitted

## How this service works

GlianaAI — flux-2-pro-preview (text-to-image)

## Output

Returns a JSON object with the model name used ('flux-2-pro-preview'), an output object containing the generated media URL or result, and costMicroUsd indicating how much was charged in micro-USD for that single call.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-flux-2-pro-preview-pay-per-call-image-generation-0d508fe9/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)
