# OpenAI-Compatible Chat Completions via DeepSeek (ScanPay)

> OpenAI-Compatible Chat Completions via DeepSeek (ScanPay) is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-04).

Provides pay-per-call OpenAI-compatible LLM chat completions powered by DeepSeek, accepting messages in OpenAI format and returning standard chat completion responses (up to 2048 tokens).

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/v1/chat/completions?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openai-compatible-chat-completions-via-deepseek-scanpay-f24d09d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WiIXTRqoCSs9mz8ycRXfC

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 openai-compatible-chat-completions-via-deepseek-scanpay-f24d09d6
```

Example prompt: Using the DeepSeek chat completions endpoint, send this conversation — system: 'You are a helpful assistant', user: 'Summarize the concept of compound interest in two sentences' — with a max of 256 tokens and temperature 0.7, and give me the assistant's reply.

## When to prefer this

Choose this endpoint when you need OpenAI-compatible LLM inference on a strict pay-per-call basis (no subscription), especially in agentic or automated workflows where you want to pay $0.002 USDC per request via x402 micropayment. It's ideal for agents that already use the OpenAI SDK (drop-in base_url replacement), need DeepSeek-quality reasoning cheaply, or want deterministic per-call billing rather than monthly quota plans. Prefer alternatives if you need more than 2048 output tokens, streaming responses, embeddings, or function/tool calling.

## Known failure modes

- Payment not settled via x402 — returns 402 Payment Required
- Messages array empty or missing — returns 400 validation error
- Content exceeds 8000 characters per message — rejected by schema
- max_tokens exceeds hard cap of 2048 — silently capped or rejected
- DeepSeek upstream timeout — may return 504 or partial response
- Invalid role value outside enum (user/assistant/system) — 400 error
- Model field specifying unsupported model — may fall back to deepseek-chat or error

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a standard OpenAI-format chat.completion JSON object containing the assistant's message content, finish reason, token usage breakdown (prompt, completion, total), model name, a unique completion ID, creation timestamp, and a _receipt field with the USD price charged for the call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "messages"
     ],
     "properties": {
      "model": {
       "type": "string"
      },
      "messages": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "role",
         "content"
        ],
        "properties": {
         "role": {
          "enum": [
           "user",
           "assistant",
           "system"
          ],
          "type": "string"
         },
         "content": {
          "type": "string",
          "maxLength": 8000
         }
        }
       },
       "maxItems": 20,
       "minItems": 1
      },
      "max_tokens": {
       "type": "integer",
       "default": 512,
       "minimum": 1,
       "description": "Capped at 2048 tokens"
      },
      "temperature": {
       "type": "number",
       "maximum": 2,
       "minimum": 0
      },
      "response_format": {
       "type": "object",
       "required": [
        "type"
       ],
       "properties": {
        "type": {
         "enum": [
          "text",
          "json_object"
         ],
         "type": "string"
        }
       }
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-sp-0123456789abcdef",
  "model": "deepseek-chat",
  "usage": {
   "total_tokens": 7,
   "prompt_tokens": 5,
   "completion_tokens": 2
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ],
  "created": 1793462400,
  "_receipt": {
   "price_usd": 0.002
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openai-compatible-chat-completions-via-deepseek-scanpay-f24d09d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
