# PrimeAPI AI Story Generator

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

Generates an AI-written story based on a text query or prompt input

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/ai/story?utm_source=zero.xyz
- Price: $0.184752/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-story-generator-18a4ac2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jE-M1-WKBTwsHO_Oz749g

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-story-generator-18a4ac2e -d '<json body>'
```

Example prompt: Write me a short AI-generated story about a time-traveling scientist who accidentally lands in ancient Rome and has to find a way back without changing history.

## When to prefer this

Use this endpoint when an AI agent needs to generate creative fiction or narrative text on-demand, paying per call without managing API keys. Best suited for one-off story generation tasks where no persistent account is needed and USDC micropayments on Base are acceptable.

## Known failure modes

- Empty or missing query field returns an error or empty response
- Vague or very short prompts may yield low-quality or generic stories
- Payment failure in USDC on Base results in 402 response and no content
- Rate limiting or server errors from the Vercel deployment may cause 5xx responses
- Overly long or complex prompts may be truncated or misinterpreted

## 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 generated story or narrative text based on the input query or prompt, produced by an AI model. The response is a JSON object containing the story 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-story-generator-18a4ac2e/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)
