# GlianaAI Recraft v4-1 Image Generation

> GlianaAI Recraft v4-1 Image Generation 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-1 model via a pay-per-call endpoint settled in USDC, requiring no signup or API key.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/recraftv4-1
- 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-recraft-v4-1-image-generation-8b5f4ac7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ExEK-dfIO0QEN9sSNKXq5

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-recraft-v4-1-image-generation-8b5f4ac7
```

Example prompt: Use GlianaAI's Recraft v4-1 model to generate an image of a serene Japanese zen garden at sunset with cherry blossom petals falling — pay the $0.09 USDC fee per call.

## When to prefer this

Choose this endpoint when you need high-quality image generation specifically using the Recraft v4-1 model, want to pay per call in USDC without a subscription or API key, and are operating an autonomous agent that can handle x402 micropayment flows on Base, Solana, or Tempo.

## Known failure modes

- Payment failure: insufficient USDC balance or unsupported payment method returns a 402 error
- Invalid prompt: empty or malformed prompt field returns a 400 validation error
- Model unavailability: if Recraft v4-1 is temporarily down, a 503 may be returned
- Rate limiting: excessive requests may trigger 429 responses
- Malformed request body: missing required 'prompt' field returns a schema validation error

## How this service works

GlianaAI — recraftv4-1 (text-to-image)

## Output

Returns a JSON object containing the model name ('recraftv4-1'), an output object with a media URL pointing to the generated image, and costMicroUsd indicating the amount charged in micro-USD for this inference call.

## Example request

```json
{
 "prompt": "A serene Japanese zen garden at sunset with cherry blossom petals falling, minimalist landscape painting style"
}
```

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-recraft-v4-1-image-generation-8b5f4ac7/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)
