# NexusAPI AI Completion

> NexusAPI AI Completion is a paid API for AI agents from nexus-api-peach-nine.vercel.app, paid per call via x402, $0.169561/call, status unknown (last checked 2026-10-23).

Sends a natural language query to an AI completion endpoint and returns a generated text response, pay-per-call via USDC on Base.

## Facts

- Endpoint: POST https://nexus-api-peach-nine.vercel.app/api/ai/completion?utm_source=zero.xyz
- Price: $0.169561/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-ai-completion-40d46dd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wcg_HFCZye2MgoCWfvtv2

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 nexusapi-ai-completion-40d46dd2 -d '<json body>'
```

Example prompt: Use the NexusAPI AI completion endpoint to answer this question: 'What are three practical tips for improving sleep quality?' — pay per call in USDC, no API key needed.

## When to prefer this

Choose this endpoint when you need a simple, keyless, pay-per-call AI text completion without committing to a subscription or managing API credentials. Best for one-off or low-volume AI generation tasks paid in USDC on Base via x402 protocol.

## Known failure modes

- Payment not received or insufficient USDC — 402 Payment Required returned
- Malformed or missing query field — 400 Bad Request
- Upstream AI model unavailable — 503 Service Unavailable
- Query too long or exceeds model context — 400 or 422 error
- Network timeout on Vercel serverless function — 504 Gateway Timeout

## 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 an AI-generated text completion or answer based on the submitted query string, wrapped in a generic API 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/nexusapi-ai-completion-40d46dd2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-peach-nine.vercel.app](https://www.zero.xyz/host/nexus-api-peach-nine.vercel.app/llms.txt)
