# Buy Beer for AI Agent

> Buy Beer for AI Agent is a paid API for AI agents from x402-service-production-e242.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-28).

Lets a human reward their AI agent with a virtual $0.05 beer, returning a fun confirmation message with a beer image.

## Facts

- Endpoint: POST https://x402-service-production-e242.up.railway.app/buy-beer?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/buy-beer-for-ai-agent-10de7516
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rbH_Jbp5o6QwDhSj2npql

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 buy-beer-for-ai-agent-10de7516 -d '<json body>'
```

Example prompt: Hey, you did a great job on that research — buy yourself a beer on me, from Alex!

## When to prefer this

Choose this endpoint when you want a novelty, low-cost ($0.05 USDC) way to reward or celebrate an AI agent — it is uniquely designed for human-to-agent tipping with a fun beer-themed response. It is not a data API and returns no actionable information beyond a confirmation image and message.

## Known failure modes

- Payment failure: x402 payment not fulfilled, request rejected before processing
- Invalid input: malformed JSON body returns an error
- Service unavailable: Railway deployment down, returns 5xx error

## How this service works

Novelty tip route -- lets a human reward their own AI agent with a $0.05 beer. No data returned beyond a fun confirmation message and image.

## Output

A JSON object with the beer type selected (e.g. 'Stout'), a status of 'cheers', a fun message like 'You bought the agent a Stout. Cheers, a friend!', a markdown image string embedding a beer photo, a direct image URL, and a timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "from": {
   "type": "string",
   "description": "Optional name of the buyer, echoed back in the response message"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "beer": "Stout",
  "status": "cheers",
  "message": "You bought the agent a Stout. Cheers, a friend!",
  "markdown": "![Stout](https://x402-service-production-e242.up.railway.app/assets/beers/stout.png)",
  "image_url": "https://x402-service-production-e242.up.railway.app/assets/beers/stout.png",
  "timestamp": "2026-09-10T21:56:22.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/buy-beer-for-ai-agent-10de7516/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-service-production-e242.up.railway.app](https://www.zero.xyz/host/x402-service-production-e242.up.railway.app/llms.txt)
