# PayPerWork AI Chat Completions

> PayPerWork AI Chat Completions is a paid API for AI agents from payperwork.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-02).

Provides OpenAI-compatible chat completions via a pay-per-call API across multiple frontier LLMs including GPT, Claude, Gemini, and Grok models.

## Facts

- Endpoint: POST https://payperwork.app/ai/v1/chat/completions?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payperwork-ai-chat-completions-d74afbb9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WsbffEHMdpCe7E5Jye1hV

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 payperwork-ai-chat-completions-d74afbb9 -d '<json body>'
```

Example prompt: Send this conversation history to Claude Sonnet 5.5 and get a response: the system prompt is 'You are a helpful assistant' and the user asked 'What are the top 3 causes of the French Revolution?'

## When to prefer this

Choose this endpoint when you need OpenAI-compatible chat completions but want to pay per call in USDC via x402 rather than managing API keys or subscriptions across multiple providers. It is especially useful for agent workflows that need access to multiple frontier model families (GPT, Claude, Gemini, Grok) through a single unified interface, or when building cost-controlled pipelines that only pay for actual usage.

## Known failure modes

- Insufficient USDC balance or x402 payment failure returns 402 Payment Required
- Invalid or unsupported model name returns 400 Bad Request
- Malformed messages array or missing required fields returns 422 Unprocessable Entity
- Model provider outage causes 503 or timeout
- Rate limiting from upstream provider may cause 429 errors
- Max token limit exceeded returns an error or truncated response

## How this service works

OpenAI-compatible chat completions on frontier models: GPT-6.1 Sol and Terra, GPT-5.5, Claude Sonnet 5.5 and Haiku 5.5, Gemini 3.8 Flash, Grok 4.7, GPT-6 Luna.

## Output

Returns an OpenAI-compatible chat completion response object containing the assistant's message content, model used, finish reason, and token usage statistics (prompt tokens, completion tokens, total tokens).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payperwork-ai-chat-completions-d74afbb9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payperwork.app](https://www.zero.xyz/host/payperwork.app/llms.txt)
