# fastapi.online — Trivia Question Generator

> fastapi.online — Trivia Question 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 specified number of trivia questions on a given topic using a self-hosted AI model.

## Facts

- Endpoint: POST https://api.fastapi.online/trivia-question-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-trivia-question-generator-a15d4a57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QkKttZT2QPvcZgmJ0RJ57

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-trivia-question-generator-a15d4a57 -d '<json body>'
```

Example prompt: Can you generate 10 trivia questions about the history of ancient Rome for a quiz night I'm hosting?

## When to prefer this

Choose this endpoint when you need on-demand, AI-generated trivia questions on an arbitrary topic without signing up for a subscription service. Ideal for agents building quiz apps, preparing game-night content, or generating educational material on the fly. At $0.001 per call it is cost-effective for bulk content generation. Prefer this over static trivia databases when you need novel, topic-specific questions that may not exist in pre-curated datasets.

## Known failure modes

- Topic string too long (exceeds 500 characters) returns validation error
- Count out of range (less than 1 or more than 20) returns validation error
- Payment failure or insufficient USDC balance returns 402
- Vague or ambiguous topic may produce low-quality or off-topic questions
- Self-hosted model may occasionally hallucinate incorrect answers presented as correct

## 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 set of AI-generated trivia questions on the specified topic, up to 20 questions per call. Each question likely includes the question text and the correct answer, possibly with distractor options depending on the model's output format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "integer",
   "maximum": 20,
   "minimum": 1
  },
  "topic": {
   "type": "string",
   "maxLength": 500,
   "minLength": 1
  }
 }
}
```

## More

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