# fastapi.online — Quiz Questions Generator

> fastapi.online — Quiz Questions Generator is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0015/call, status unknown (last checked 2026-09-14).

Generates a set of quiz questions on a given topic at a specified difficulty level using self-hosted AI inference

## Facts

- Endpoint: POST https://api.fastapi.online/quiz-questions-generate
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-quiz-questions-generator-00314314
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DcIJkKqXoW5PABqO-gnkP

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-quiz-questions-generator-00314314 -d '<json body>'
```

Example prompt: Can you generate 10 medium-difficulty quiz questions about World War II for me?

## When to prefer this

Choose this endpoint when you need to quickly generate structured quiz or trivia questions on any topic at a controlled difficulty level, without signing up for an account. Ideal for agents building educational content, game show prep, or trivia databases on demand. The per-call crypto payment model makes it suitable for low-volume or one-off use cases without a subscription commitment.

## Known failure modes

- Topic string is empty or exceeds 500 characters — validation error returned
- Count is outside the 1–20 range — schema validation error
- Difficulty is not one of easy/medium/hard — enum validation error
- Model inference failure or timeout — 5xx error returned
- Payment not provided or insufficient — 402 Payment Required

## 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 list of AI-generated quiz questions on the requested topic, tailored to the specified difficulty level and count. Each item is a question string suitable for use in quizzes, games, or educational materials.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "integer",
   "maximum": 20,
   "minimum": 1
  },
  "topic": {
   "type": "string",
   "maxLength": 500,
   "minLength": 1
  },
  "difficulty": {
   "enum": [
    "easy",
    "medium",
    "hard"
   ],
   "type": "string"
  }
 }
}
```

## More

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