# Chat Completions OpenAI API (llmrt-companion)

> Chat Completions OpenAI API (llmrt-companion) is a paid API for AI agents from llmrt-companion.manhliemcn4euwlu.workers.dev, paid per call via x402, $0.000973/call, status unknown (last checked 2026-12-03).

Accepts an OpenAI-compatible chat completion request (model, messages, max_tokens) and returns a choices array with generated text plus token usage stats.

## Facts

- Endpoint: POST https://llmrt-companion.manhliemcn4euwlu.workers.dev/v1/chat/completions?utm_source=zero.xyz
- Price: $0.000973/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chat-completions-openai-api-llmrt-companion-e718aaec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Md968JdlX627AvW6Zis6r

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 chat-completions-openai-api-llmrt-companion-e718aaec -d '<json body>'
```

Example prompt: Using the llmrt-chat model, send this conversation to the chat completions API and get a response — messages are: system: 'You are a helpful assistant', user: 'What is the capital of France?' — limit the reply to 128 tokens.

## When to prefer this

Choose this endpoint when you need an OpenAI-compatible chat completion API with no signup, no API key, and pay-per-call micropayment billing via x402. It is ideal for agents or pipelines already using the OpenAI message format that want a drop-in hosted inference endpoint at low per-call cost without committing to a subscription.

## Known failure modes

- Invalid or missing messages array returns a 400 validation error
- Exceeding max_tokens or model context window may truncate output or return an error
- Unsupported model name results in a model-not-found error
- Payment failure (x402) blocks the request before inference begins
- Network timeout on the Cloudflare worker returns a 5xx gateway error

## How this service works

OpenAI-compatible chat completions: POST a standard {model, messages, max_tokens} body and get back the choices array plus usage. Same engine as /chat-completion-402, no signup and no API key.

## Output

Returns an OpenAI-style response object containing a choices array (each with a message.role and message.content string, plus a finish_reason) and a usage object showing prompt_tokens, completion_tokens, and total_tokens consumed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "example": "llmrt-chat"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   }
  },
  "max_tokens": {
   "type": "number",
   "example": 256
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chat-completions-openai-api-llmrt-companion-e718aaec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from llmrt-companion.manhliemcn4euwlu.workers.dev](https://www.zero.xyz/host/llmrt-companion.manhliemcn4euwlu.workers.dev/llms.txt)
