# GlianaAI RecraftV4 Image Generation via x402

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

Generates images using the Recraft V4 model, billed per-call in USDC via x402 micropayment protocol — no API key required.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/recraftv4
- Price: $0.087/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-recraftv4-image-generation-via-x402-b7e22e4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Vad13nmZKRjN_-Jp5Cnc

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-recraftv4-image-generation-via-x402-b7e22e4c
```

Example prompt: Using Recraft V4, generate an image of a misty mountain lake at sunrise with warm golden light reflecting on the water — pay per call with USDC.

## When to prefer this

Choose this endpoint when you need Recraft V4 specifically for high-quality image generation, want pay-per-call USDC billing with no signup or API key, and your agent supports x402 micropayment headers. Prefer this over subscription-based Recraft APIs when running low-volume or sporadic image generation tasks where a monthly fee is wasteful.

## Known failure modes

- Payment not settled — 402 response if USDC payment header is missing or insufficient
- Invalid or empty prompt — 400 or model-level error returned in output field
- Model-specific parameter mismatch — schema errors if additional params don't match Recraft V4 expectations (check GET /v1/schema?model=recraftv4)
- Network timeout during inference — no charge but no result; retry required
- Unsupported model slug in path — 404 if endpoint path is incorrect

## How this service works

GlianaAI — recraftv4 (text-to-image)

## Output

Returns a JSON object with the model name ('recraftv4'), an output object containing a media URL pointing to the generated image, and the exact amount charged in micro-USD (e.g. 90000 for $0.09).

## Example request

```json
{
 "prompt": "A serene mountain landscape with a crystal-clear lake at sunrise, golden light reflecting on the water, misty peaks in the background, peaceful and tranquil atmosphere"
}
```

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-recraftv4-image-generation-via-x402-b7e22e4c/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)
