# PrimeAPI AI Quiz Generator

> PrimeAPI AI Quiz Generator is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.103796/call, status unknown (last checked 2026-10-20).

Generates quiz questions or trivia content based on a text query using AI, payable per call in USDC on Base.

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/ai/quiz?utm_source=zero.xyz
- Price: $0.103796/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-ai-quiz-generator-ea2692fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iNlgzt6hG1vXzWCdfjNoq

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 primeapi-ai-quiz-generator-ea2692fd -d '<json body>'
```

Example prompt: Can you generate a quiz with questions about World War II history — something I could use for a trivia night?

## When to prefer this

Use this endpoint when you need AI-generated quiz or trivia questions on any topic without needing to manage an API key, and are willing to pay per call in USDC on Base. Prefer this over manual trivia databases when you need flexible, topic-driven, generative question creation rather than curated static question sets.

## Known failure modes

- Payment not received — 402 response requiring USDC payment on Base before content is returned
- Empty or missing query parameter — API may return an error or empty result
- Topic too vague — AI may generate generic or low-quality questions
- Network timeout or Vercel cold-start latency causing delayed response
- Unsupported or harmful topic query may be rejected or return empty output

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns AI-generated quiz questions and related content based on the provided query topic, likely including question text and possible answers in a JSON response object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/primeapi-ai-quiz-generator-ea2692fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
