# ApexAPI AI Completion

> ApexAPI AI Completion is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.169561/call, status unknown (last checked 2026-10-11).

Sends a text query to an AI language model and returns a generated completion response, payable per call in USDC on Base.

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/ai/completion?utm_source=zero.xyz
- Price: $0.169561/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-ai-completion-d2d2562e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hy9oyO-2-_kow0CQjbIry

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 apexapi-ai-completion-d2d2562e -d '<json body>'
```

Example prompt: Can you use an AI completion endpoint to answer this question for me: 'What are the top three benefits of intermittent fasting?' — pay per call, no API key needed.

## When to prefer this

Choose this endpoint when you need pay-per-call AI text completion without managing API keys or subscriptions, and you are already operating in a USDC/Base payment environment. Suitable for agents that need occasional AI-generated responses without committing to a monthly plan.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required
- Missing or empty query field — 400 Bad Request
- Model overload or timeout — 503 Service Unavailable
- Malformed JSON request body — 400 Bad Request
- Rate limiting on the provider side — 429 Too Many Requests

## 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 input query string provided. The response is a JSON object containing the generated output from the language model.

## 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/apexapi-ai-completion-d2d2562e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
