# fastapi.online Poem Generator

> fastapi.online Poem Generator is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Generates a poem on a given topic in a specified style using self-hosted AI inference

## Facts

- Endpoint: POST https://api.fastapi.online/poem-generate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-poem-generator-a4e114fc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mfn_xPQTqQ3nPFwv4o8IW

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 fastapi-online-poem-generator-a4e114fc -d '<json body>'
```

Example prompt: Can you write me a poem about the changing seasons in a melancholy, introspective style?

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.001 USDC per call), no-signup poem generation with style control. It is ideal for agents that need to generate creative poetry on demand without API key friction, especially in crypto-native or x402-payment-enabled workflows. Prefer it over large-platform LLM calls when cost-per-call minimization and pay-as-you-go crypto billing are priorities.

## Known failure modes

- Missing required 'topic' or 'style' fields returns a validation error
- Topic or style string exceeding maxLength limits (500 and 100 chars respectively) may be rejected
- Payment failure or insufficient USDC balance results in 402 Payment Required
- Self-hosted model downtime may result in 503 Service Unavailable
- Extremely vague topics may yield generic or low-quality output

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns a generated poem as text, composed by a self-hosted AI model based on the provided topic and style inputs. The response is a creative, original piece tailored to the specified parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "style": {
   "type": "string",
   "maxLength": 100,
   "minLength": 1
  },
  "topic": {
   "type": "string",
   "maxLength": 500,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-poem-generator-a4e114fc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
