# x402 AI Alt-Text Generator

> x402 AI Alt-Text Generator is a paid API for AI agents from x402-ai-peach.vercel.app, paid per call via x402, $0.075/call, status unknown (last checked 2026-09-14).

Generates descriptive alt-text for images using AI, paid via x402 micropayments at $0.075 USDC per call

## Facts

- Endpoint: POST https://x402-ai-peach.vercel.app/api/alt-text
- Price: $0.075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-alt-text-generator-3abe518e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KiwVvY-0RueuftiRNaam1

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 x402-ai-alt-text-generator-3abe518e -d '<json body>'
```

Example prompt: Generate alt text for this product image of a red leather handbag on a white background — keep it concise and accessible, under 100 tokens.

## When to prefer this

Choose this endpoint when you need AI-generated alt text paid on a per-call basis via x402 micropayments without a subscription. Ideal for agents that process images infrequently or need to pay programmatically with USDC stablecoins. Prefer over subscription-based vision APIs when cost control per-image is critical or when building crypto-native workflows.

## Known failure modes

- Missing or malformed messages array returns validation error
- Payment not included or insufficient USDC triggers 402 Payment Required
- Invalid temperature value (outside 0.0–2.0 range) may cause error or unexpected output
- Oversized image or message payload may exceed token limits
- Network timeout on streaming responses if stream:true is set

## How this service works

Paid AI API endpoints via x402 micropayments

## Output

Returns a JSON object containing a response ID and a choices array, where each choice includes a message with role and content fields. The content field contains the AI-generated alt-text description for the provided image input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "messages"
 ],
 "properties": {
  "stream": {
   "type": "boolean",
   "description": "Stream response"
  },
  "messages": {
   "type": "array",
   "description": "Chat messages array"
  },
  "max_tokens": {
   "type": "integer",
   "description": "Max tokens"
  },
  "temperature": {
   "type": "number",
   "description": "Temperature"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string",
   "description": "Response ID"
  },
  "choices": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "message": {
      "type": "object",
      "properties": {
       "role": {
        "type": "string"
       },
       "content": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-alt-text-generator-3abe518e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ai-peach.vercel.app](https://www.zero.xyz/host/x402-ai-peach.vercel.app/llms.txt)
