# OpenRelay LLM Inference

> OpenRelay LLM Inference is a paid API for AI agents from api.laminarity.uk, paid per call via x402, $0.001229/call, status unknown (last checked 2026-10-17).

Pay-per-request OpenAI-compatible chat completions endpoint supporting multiple LLM models, billed in USDC via x402 micropayments

## Facts

- Endpoint: POST https://api.laminarity.uk/v1/chat/completions?utm_source=zero.xyz
- Price: $0.001229/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openrelay-llm-inference-4f8c7170
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cWPt2J3EX0lHiT-KY9z5e

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 openrelay-llm-inference-4f8c7170 -d '<json body>'
```

Example prompt: Using the OpenRelay inference API with the DeepSeek-V4-Flash-0731 model, send this conversation — system: 'You are a helpful assistant', user: 'Summarize the concept of quantum entanglement in two sentences' — and keep the response under 200 tokens.

## When to prefer this

Choose this endpoint when you need OpenAI-compatible chat completions on a pay-per-request basis without a monthly subscription, particularly when operating an AI agent that uses x402 USDC micropayments for cost isolation. Prefer it when you want access to GLM, MiniMax, or DeepSeek models through a single standardized interface without managing separate API keys for each provider.

## Known failure modes

- Payment failure if USDC balance is insufficient via x402 — returns 402 Payment Required
- Invalid model ID not in enum — returns 400 Bad Request
- Messages array missing required role or content fields — returns 400 validation error
- Temperature out of range (>2 or <0) — returns 400 Bad Request
- max_tokens set too low causing truncated or empty completion — finish_reason: length
- Model temporarily unavailable — may return 503 Service Unavailable

## How this service works

OpenAI-compatible chat completion. Pay per request in USDC via x402: no signup, no API keys. Price scales with prompt size and max_tokens.

## Output

Returns an OpenAI-compatible chat.completion JSON object containing the assistant's reply text, the model used, token usage breakdown (prompt, completion, total), finish reason, and a unique completion ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "MiniMaxAI/MiniMax-M2.7",
    "deepseek-ai/DeepSeek-V4-Flash-0731",
    "zai-org/GLM-5.3-Flash",
    "jev"
   ],
   "type": "string",
   "default": "MiniMaxAI/MiniMax-M2.7",
   "description": "Model id from GET /v1/models."
  },
  "stream": {
   "type": "boolean",
   "default": false
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   }
  },
  "max_tokens": {
   "type": "integer",
   "minimum": 1,
   "description": "Upper bound on completion tokens; lower values cost less."
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-example",
  "model": "zai-org/GLM-5.3-Flash",
  "usage": {
   "total_tokens": 12,
   "prompt_tokens": 9,
   "completion_tokens": 3
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openrelay-llm-inference-4f8c7170/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.laminarity.uk](https://www.zero.xyz/host/api.laminarity.uk/llms.txt)
