# ApexAPI AI Quiz Generator

> ApexAPI AI Quiz Generator is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.103796/call, status unknown (last checked 2026-09-13).

Generates quiz questions and answers on a given topic using AI, payable per call in USDC on Base.

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/ai/quiz
- Price: $0.103796/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-ai-quiz-generator-1362c3f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QESpCdDtBGouLYwOQQnj5

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 apexapi-ai-quiz-generator-1362c3f4 -d '<json body>'
```

Example prompt: Can you generate a quiz about the history of the Roman Empire? Give me a set of questions I can use to test someone's knowledge on the topic.

## When to prefer this

Use this endpoint when you need AI-generated quiz or trivia questions on a specific topic and want a pay-per-call model with no API key setup. Prefer over alternatives when working in a crypto-native, USDC-on-Base payment context.

## Known failure modes

- Missing or empty query parameter returns an error
- Payment not received results in 402 response
- Ambiguous or very short query may produce generic or low-quality questions
- Service unavailability on the Vercel host returns 5xx errors
- Malformed JSON request body returns 400 error

## 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 content, likely including questions and answers related to the provided topic or query string. The exact structure is loosely defined but expected to contain quiz-relevant data objects.

## 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/apexapi-ai-quiz-generator-1362c3f4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
