# Recoup AI Image Generator

> Recoup AI Image Generator is a paid API for AI agents from recoup-api-git-sweetmantech-myc-3559-4dbc37-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, with optional upload to Arweave for permanent decentralized storage

## Facts

- Endpoint: GET https://recoup-api-git-sweetmantech-myc-3559-4dbc37-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: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/recoup-ai-image-generator-97d0e49f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap___0EeH9XnzOQMN135wX1-

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-97d0e49f
```

Example prompt: Generate an AI image of a futuristic cyberpunk city at night with neon lights reflecting off wet streets, and upload it to Arweave for permanent storage.

## When to prefer this

Use this endpoint when you need to generate an AI image from a text prompt and optionally want permanent, decentralized storage on Arweave. Ideal for agents that need to create visual content programmatically and persist it on-chain. The x402 micropayment model at $0.15 USDC makes it suitable for pay-per-use workflows without subscriptions.

## Known failure modes

- Empty or invalid prompt returns an error
- Arweave upload failure if decentralized storage is unavailable
- Payment failure if insufficient USDC balance (x402 protocol)
- Timeout if AI generation takes too long
- Rate limiting if too many requests are made

## How this service works

Generate an image from a text prompt using AI

## Output

Returns a generated AI image, potentially including an Arweave URL if uploadToArweave was set to true, allowing permanent decentralized access to the created image.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image": {
   "type": "object",
   "properties": {
    "base64": {
     "type": "string",
     "description": "Image as base64 encoded string"
    },
    "mediaType": {
     "type": "string",
     "description": "IANA media type of the image"
    }
   },
   "description": "Generated image file"
  },
  "usage": {
   "type": "object",
   "properties": {
    "inputTokens": {
     "type": "number",
     "description": "Number of tokens used for the prompt"
    },
    "totalTokens": {
     "type": "number",
     "description": "Number of tokens used for the total"
    },
    "outputTokens": {
     "type": "number",
     "description": "Number of tokens used for the output"
    },
    "reasoningTokens": {
     "type": "number",
     "description": "Number of tokens used for the reasoning"
    }
   },
   "description": "Token usage information for the image generation"
  },
  "moment": {
   "type": "object",
   "description": "In Process moment creation result (nullable)"
  },
  "imageUrl": {
   "type": "string",
   "description": "Fetchable URL for the uploaded image (nullable)"
  },
  "arweaveError": {
   "type": "string",
   "description": "Error message if Arweave upload failed (optional)"
  },
  "arweaveResult": {
   "type": "object",
   "description": "Arweave transaction result (nullable)"
  }
 },
 "description": "GenerateImageResult containing the generated image and metadata"
}
```

## More

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