# PrimeAPI AI Joke Generator

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

Generates a joke on demand based on an optional query or topic, paid per call in USDC on Base

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/ai/joke
- Price: $0.189536/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-ai-joke-generator-7c54babc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WJ4Q9pcjyw_WuiPom_GMq

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

Example prompt: Tell me a funny joke about cryptocurrency and blockchain — something clever that would get a laugh at a tech meetup.

## When to prefer this

Choose this endpoint when an AI agent needs to generate a joke on a specific topic on demand, without managing API keys, paying a small per-call fee in USDC on Base via x402 protocol. Best suited for lightweight, single-call humor generation in agentic workflows.

## Known failure modes

- Empty or missing query may return a generic or random joke
- Overly specific or obscure query topics may result in a generic fallback joke
- Payment failure in USDC on Base blocks the request with a 402 response
- Service unavailability on Vercel hosting returns 5xx error
- Inappropriate or filtered topics may return an error or sanitized response

## 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 a joke (likely setup and punchline or a one-liner) related to the provided query topic, as a JSON object with the generated humor content.

## 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-joke-generator-7c54babc/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)
