# GlianaAI Flux 2 Max Image Generation

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

Generates high-quality images from a text prompt using the Flux 2 Max model, billed per call in USDC via x402 micropayment protocol

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/flux-2-max
- Price: $0.126/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-flux-2-max-image-generation-675ad8ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NACBNTW0y09eZjt_0decx

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-max-image-generation-675ad8ba
```

Example prompt: Generate an image of a misty Japanese mountain village at sunrise with cherry blossoms and a traditional wooden bridge, using GlianaAI's Flux 2 Max model — pay for it from my USDC wallet.

## When to prefer this

Choose this endpoint when you need Flux 2 Max specifically for high-quality image generation and want pay-per-call billing via USDC with no API key or subscription required. Ideal for agents with crypto wallets that need on-demand image generation without committing to a monthly plan.

## Known failure modes

- Insufficient USDC balance — payment fails and inference is not run
- Invalid or missing prompt field — 400 error returned
- Payment network congestion on Base/Solana/Tempo causing timeout
- Model temporarily unavailable — 503 error
- Malformed x402 payment header — 402 payment required error returned
- Rate limiting if too many concurrent calls from same wallet

## How this service works

GlianaAI — flux-2-max (text-to-image)

## Output

Returns a JSON object with the model name used ('flux-2-max'), an output object containing the generated image URL or media result, and the costMicroUsd integer showing exactly how much was charged for this request.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-flux-2-max-image-generation-675ad8ba/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)
