# Recoup AI Image Generator

> Recoup AI Image Generator is a paid API for AI agents from recoup-api-git-sweetmantech-myc-3577-ae06b3-recoupable-ad724970.vercel.app, paid per call via x402, $0.15/call, status down (last checked 2026-08-24).

Generates an AI image from a text prompt and returns it as base64 data, optionally uploading to Arweave

## Facts

- Endpoint: POST https://recoup-api-git-sweetmantech-myc-3577-ae06b3-recoupable-ad724970.vercel.app/api/x402/image/generate
- Price: $0.15/call
- Payment: x402
- Status: down
- Last checked: 2026-08-24
- Success rate: 0% of calls made through Zero
- Activations on Zero: 4
- Tags: x402
- Canonical page: https://www.zero.xyz/c/recoup-ai-image-generator-88782eef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_np7AKUZY80TQaGV2GZFBp

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 recoup-ai-image-generator-88782eef -d '<json body>'
```

Example prompt: Can you generate an AI image of a serene sunset over a mountain lake with orange and purple colors — don't upload it to Arweave, just give me the image data.

## When to prefer this

Use this endpoint when you need to generate an AI image from a text prompt via a pay-per-call micropayment model (x402/USDC on Base), and want the result returned as base64 image data — particularly useful in agentic workflows where you want a lightweight, on-demand image generation call without managing a subscription.

## Known failure modes

- Missing X-PAYMENT header — returns 402 with payment instructions and accepted asset details
- Invalid or malformed prompt — may return an error or low-quality result
- Payment amount or asset mismatch — payment rejected by the x402 facilitator
- Upstream AI image model unavailable — service error response
- Request timeout if the AI model takes too long to generate

## How this service works

Generate an image from a text prompt using AI

## Output

Returns a JSON object containing the generated image as a base64-encoded data payload, ready to decode and display or save.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "prompt",
  "uploadToArweave"
 ],
 "properties": {
  "prompt": {
   "type": "string"
  },
  "uploadToArweave": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "_x402",
  "error",
  "accepts",
  "x402Version",
  "_paymentRequired",
  "_wwwAuthenticate"
 ],
 "properties": {
  "_x402": {
   "type": "boolean"
  },
  "error": {
   "type": "string"
  },
  "accepts": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "asset",
     "extra",
     "payTo",
     "scheme",
     "network",
     "mimeType",
     "resource",
     "description",
     "outputSchema",
     "maxAmountRequired",
     "maxTimeoutSeconds"
    ],
    "properties": {
     "asset": {
      "type": "string"
     },
     "extra": {
      "type": "object",
      "required": [
       "name",
       "version"
      ],
      "properties": {
       "name": {
        "type": "string"
       },
       "version": {
        "type": "string"
       }
      }
     },
     "payTo": {
      "type": "string"
     },
     "scheme": {
      "type": "string"
     },
     "network": {
      "type": "string"
     },
     "mimeType": {
      "type": "string"
     },
     "resource": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "outputSchema": {
      "type": "object",
      "required": [
       "input",
       "output"
      ],
      "properties": {
       "input": {
        "type": "object",
        "required": [
         "type",
         "method",
         "queryParams",
         "discoverable"
        ],
        "properties": {
         "type": {
          "type": "string"
         },
         "method": {
          "type": "string"
         },
         "queryParams": {
          "type": "object",
          "required": [
           "files",
           "prompt"
          ],
          "properties": {
           "files": {
            "type": "string"
           },
           "prompt": {
            "type": "string"
           }
          }
         },
         "discoverable": {
          "type": "boolean"
         }
        }
       },
       "output": {
        "type": "object",
        "required": [
         "type",
         "properties",
         "description"
        ],
        "properties": {
         "type": {
          "type": "string"
         },
         "properties": {
          "type": "object",
          "required": [
           "image",
           "usage",
           "moment",
           "imageUrl",
           "arweaveError",
           "arweaveResult"
          ],
          "properties": {
           "image": {
            "type": "object",
        
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/recoup-ai-image-generator-88782eef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from recoup-api-git-sweetmantech-myc-3577-ae06b3-recoupable-ad724970.vercel.app](https://www.zero.xyz/host/recoup-api-git-sweetmantech-myc-3577-ae06b3-recoupable-ad724970.vercel.app/llms.txt)
