# OpenRelay Premium Chat Completions

> OpenRelay Premium Chat Completions is a paid API for AI agents from openrelay.hggfffdfy687.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

OpenAI-compatible premium-tier chat completion endpoint backed by DeepSeek and other models, billed per request via x402 micropayments.

## Facts

- Endpoint: POST https://openrelay.hggfffdfy687.workers.dev/v1/premium/chat/completions
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openrelay-premium-chat-completions-1738d2c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gWgVdCWoGwN1SUK4KF5B5

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-premium-chat-completions-1738d2c0 -d '<json body>'
```

Example prompt: Using the OpenRelay premium chat relay, send this conversation to DeepSeek-V4-Flash: system prompt 'You are a helpful assistant', user message 'Summarize the key differences between REST and GraphQL in 3 bullet points', with max 512 tokens and temperature 0.7.

## When to prefer this

Choose this endpoint when you need OpenAI-compatible chat completions billed per request via x402 USDC micropayments, especially for autonomous agents that lack a subscription and want access to DeepSeek or other models without upfront commitment. Prefer this over the standard OpenRelay chat endpoint when the premium tier's pricing tier or model availability is needed.

## Known failure modes

- Payment not provided or insufficient — x402 payment required error
- Invalid model ID — returns error if model not in available list
- Messages array missing or malformed — validation error on required fields
- max_tokens exceeds 16384 — schema validation failure
- Temperature out of range 0-2 — validation error
- Rate limiting or worker timeout on Cloudflare edge — 5xx error
- Model temporarily unavailable — upstream inference provider error

## How this service works

OpenAI-compatible chat completion (branded tier). $0.10/1M tokens, min $0.0010/request. USDC on Solana or Base.

## Output

Returns a JSON object in OpenAI chat completion format: an assistant message with generated text, token usage breakdown (prompt, completion, total), finish reason, model ID, and a unique completion ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "deepseek-ai/DeepSeek-V4-Flash-0731",
    "moonshotai/Kimi-K2.6",
    "MiniMaxAI/MiniMax-M2.7"
   ],
   "type": "string",
   "default": "deepseek-ai/DeepSeek-V4-Flash-0731",
   "description": "Model id. Available: DeepSeek V4 Flash (400k ctx), Kimi K2.6 (240k ctx), MiniMax M2.7 (180k ctx). See GET /v1/models. Default: DeepSeek V4 Flash."
  },
  "stream": {
   "type": "boolean",
   "default": false
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ]
     },
     "content": {
      "type": "string"
     }
    }
   }
  },
  "max_tokens": {
   "type": "integer",
   "default": 512,
   "maximum": 16384,
   "minimum": 1
  },
  "temperature": {
   "type": "number",
   "default": 1,
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-openrelay-abc123",
  "model": "deepseek-ai/DeepSeek-V4-Flash-0731",
  "usage": {
   "total_tokens": 15,
   "prompt_tokens": 12,
   "completion_tokens": 3
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ],
  "created": 1787532386
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openrelay-premium-chat-completions-1738d2c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from openrelay.hggfffdfy687.workers.dev](https://www.zero.xyz/host/openrelay.hggfffdfy687.workers.dev/llms.txt)
