# PrimeAPI AI Expand

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

Expands or elaborates a given text query using AI, returning enriched or extended content based on the input string

## Facts

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

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-expand-d64c1a87 -d '<json body>'
```

Example prompt: Can you expand this short idea into a more detailed description: 'sustainable urban farming using vertical gardens'?

## When to prefer this

Use this endpoint when you need to take a short text snippet, keyword, or concept and have AI expand it into a richer, more detailed response — especially when you want a pay-per-call model with no API key setup. Prefer this over general-purpose LLM APIs when operating within an x402/USDC micropayment workflow on Base.

## Known failure modes

- Empty or missing query field returns an error or empty response
- Query too long may be truncated or rejected
- Payment failure (402) if USDC balance is insufficient or x402 protocol handshake fails
- Generic 500 error if the AI backend is unavailable
- Vague or ambiguous query may produce low-quality or off-topic expansion

## How this service works

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

## Output

An AI-generated expanded version of the input query — a longer, more detailed or elaborated text response based on what was submitted in the query field.

## 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-expand-d64c1a87/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)
