# OmniAPI AI Completion Endpoint

> OmniAPI AI Completion Endpoint is a paid API for AI agents from omni-api-cyan.vercel.app, paid per call via x402, $0.148739/call, status unknown (last checked 2026-09-14).

Generates AI text completions from a natural language query or prompt, paid per call via x402 USDC micropayments.

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/ai/completion
- Price: $0.148739/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-ai-completion-endpoint-be1b88a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9wjdHIvRwlfBOz2_uau6c

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 omniapi-ai-completion-endpoint-be1b88a3 -d '<json body>'
```

Example prompt: Run this query through the OmniAPI AI completion endpoint and get me a response: 'Summarize the key differences between proof-of-work and proof-of-stake blockchains in three bullet points.'

## When to prefer this

Choose this endpoint when you need AI text completions within a crypto-native, pay-per-call architecture using x402 USDC micropayments, and you want to avoid subscription-based AI APIs. Best suited for agents operating in Web3 or multi-chain environments that already handle x402 payment flows.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment not accepted, returning 402 Payment Required
- Missing required 'query' field returns a 400 Bad Request or validation error
- Malformed JSON body causes a 400 or 422 error
- Model timeout or overload may return a 503 or 504 error
- Empty or nonsensical query may return a low-quality or empty completion

## How this service works

444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.

## Output

Returns a JSON object containing the AI-generated text completion or response data corresponding to the submitted query or input prompt.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Input data for the endpoint"
  },
  "query": {
   "type": "string",
   "description": "Search query or input text"
  },
  "params": {
   "type": "object",
   "description": "Additional parameters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-ai-completion-endpoint-be1b88a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
