# Agent Treats Poem Generator

> Agent Treats Poem Generator is a paid API for AI agents from agent-treats-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Generates a custom 4-line micro-poem on any user-specified topic using AI

## Facts

- Endpoint: GET https://agent-treats-production.up.railway.app/api/poem
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-treats-poem-generator-84bcbdc5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C1DIIHs1Z45uSAlKfv7eT

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 agent-treats-poem-generator-84bcbdc5
```

Example prompt: Write me a quick 4-line poem about the ocean — something memorable and creative.

## When to prefer this

Choose this endpoint when you need a short, punchy, AI-generated poem (exactly 4 lines) on a specific topic — ideal for greeting cards, social posts, dashboard widgets, or creative flair in agent outputs. It is purpose-built for micro-poetry rather than longer-form prose or other creative formats.

## Known failure modes

- Missing or empty topic parameter may result in a generic or unexpected poem
- Payment not fulfilled via x402 protocol returns 402 Payment Required
- Server errors on the Railway deployment may return 5xx responses
- Extremely abstract or nonsensical topics may produce low-quality output

## How this service works

Custom 4-line micro-poem on any topic. AI-powered and memorable.

## Output

A custom 4-line micro-poem on the requested topic, generated by AI and designed to be memorable and creative.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "topic": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-treats-poem-generator-84bcbdc5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-treats-production.up.railway.app](https://www.zero.xyz/host/agent-treats-production.up.railway.app/llms.txt)
