# NexusAPI AI Text Completion

> NexusAPI AI Text Completion is a paid API for AI agents from nexus-api-virid.vercel.app, paid per call via x402, $0.148739/call, status unknown (last checked 2026-09-15).

Generates AI text completions from a natural language query or prompt input

## Facts

- Endpoint: POST https://nexus-api-virid.vercel.app/api/ai/completion
- Price: $0.148739/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-ai-text-completion-a2770f64
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xBQ9eHbW6wv6hX1AIJzwr

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-text-completion-a2770f64 -d '<json body>'
```

Example prompt: Complete this prompt for me using an AI model: 'The main benefits of renewable energy are...' and give me a thorough paragraph-length response.

## When to prefer this

Choose this endpoint when you need pay-per-call AI text completion with no API key setup, paying in USDC on Base via x402. Ideal for agents that need occasional AI-generated text without committing to a subscription or managing API credentials. Less suitable if you need fine-grained model selection, streaming responses, or very high-volume throughput.

## Known failure modes

- Empty or missing query field returns an error or empty completion
- Insufficient USDC balance causes payment failure before the call is processed
- Overly long prompts may be truncated or rejected depending on model limits
- Vague or ambiguous queries may produce low-quality or irrelevant completions
- Network timeouts may occur under high load on the Vercel-hosted service

## 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 response to the provided query or prompt, delivered as a JSON object containing the generated 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/nexusapi-ai-text-completion-a2770f64/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-virid.vercel.app](https://www.zero.xyz/host/nexus-api-virid.vercel.app/llms.txt)
