# LLM Chat Completion via DeepSeek

> LLM Chat Completion via DeepSeek 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-02).

Send a prompt or conversation messages to DeepSeek chat and receive an AI-generated text reply.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/chat?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/llm-chat-completion-via-deepseek-9b46058d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mxyCd2ZWFp1IElsZNcjMI

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 llm-chat-completion-via-deepseek-9b46058d
```

Example prompt: Ask DeepSeek chat to explain the difference between proof-of-work and proof-of-stake in simple terms, keeping the reply under 300 tokens.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call DeepSeek chat completion accessible via a simple GET request with no OAuth setup, especially in x402-enabled micropayment workflows. It is best for short interactions (up to 400 tokens) where cost-efficiency ($0.002/call) and simplicity matter more than long-context or high-volume generation. Prefer sibling OpenAI-compatible endpoints when you need longer responses or drop-in OpenAI API compatibility.

## Known failure modes

- Prompt exceeds 8000 character limit — request rejected
- max_tokens exceeds 400 — capped or rejected
- Missing required 'prompt' or 'messages' query parameter — error response
- Payment failure or insufficient USDC balance — 402 Payment Required
- DeepSeek upstream service unavailable — upstream error propagated

## 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

A JSON object containing the DeepSeek model name used, the AI-generated reply text, token usage stats (prompt and completion tokens), the product identifier ('scanpay.chat'), and the price in USD 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",
     "properties": {
      "prompt": {
       "type": "string",
       "description": "User prompt (max 8000 chars)"
      },
      "messages": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "role",
         "content"
        ],
        "properties": {
         "role": {
          "enum": [
           "user",
           "assistant",
           "system"
          ],
          "type": "string"
         },
         "content": {
          "type": "string"
         }
        }
       },
       "description": "Conversation messages"
      },
      "max_tokens": {
       "type": "integer",
       "default": 300,
       "maximum": 400,
       "description": "Max tokens (1-400)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "deepseek-chat",
  "reply": "Hello! How can I assist you today?",
  "usage": {
   "prompt_tokens": 10,
   "completion_tokens": 20
  },
  "product": "scanpay.chat",
  "price_usd": 0.02
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/llm-chat-completion-via-deepseek-9b46058d/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)
