# fastapi.online Joke Generator

> fastapi.online Joke 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 joke on a given topic using a self-hosted AI model, pay-per-call via crypto

## Facts

- Endpoint: POST https://api.fastapi.online/joke-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-joke-generator-273e3a19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2CZs-fIyS5AN90sL6niTg

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-joke-generator-273e3a19 -d '<json body>'
```

Example prompt: Tell me a joke about quantum computing — generate one using the fastapi.online joke generator.

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC), no-signup joke generated on demand for a specific topic, especially in automated pipelines or agent workflows where you want pay-per-call pricing with no subscription commitment and crypto payment via x402.

## Known failure modes

- Topic string too short (below minLength 1) or too long (above maxLength 200) returns a validation error
- Payment not provided or insufficient causes a 402 Payment Required response
- Model unavailability or server-side error returns a 5xx response
- Empty or nonsensical topic may produce an off-topic or low-quality joke

## 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

A generated joke as text, themed around the provided topic, produced by a self-hosted AI language model.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "topic": {
   "type": "string",
   "maxLength": 200,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-joke-generator-273e3a19/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)
