# GlianaAI Flux-2-Flex Image Generation

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

Generates images using the Flux-2-Flex model via a pay-per-call endpoint settled in USDC or card, with no API key required.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/flux-2-flex
- Price: $0.09/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-flex-image-generation-85bf5b79
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hjIomCnDpcLpdbI5H_cbR

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-flex-image-generation-85bf5b79
```

Example prompt: Use GlianaAI's Flux-2-Flex model to generate an image of a lone astronaut standing on a red Martian desert at golden hour, vast canyon in the background — I'll pay the $0.1125 per call in USDC.

## When to prefer this

Choose this endpoint when you need image generation from the Flux-2-Flex model specifically, want to pay per call in USDC (on Base, Solana, or Tempo) without any API key or signup, and your agent supports x402 micropayment protocol. Prefer this over OpenAI or Stability AI endpoints when crypto-native, keyless, per-call billing is required.

## Known failure modes

- Insufficient USDC balance causes payment failure and 402 response
- Invalid or missing prompt field returns 400 validation error
- Model overload or provider outage returns 503
- Malformed x402 payment header causes authentication failure
- Prompt violates content policy, returning 422 or similar refusal

## 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 ('flux-2-flex'), an output object with a media URL or structured result (the generated image), and the amount charged in micro-USD.

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

## More

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