# OpenAI-Compatible Chat Nano (DeepSeek, 500-token cap)

> OpenAI-Compatible Chat Nano (DeepSeek, 500-token cap) 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).

Pay-per-call OpenAI-compatible LLM chat completion powered by DeepSeek, capped at 500 output tokens per request.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/v1/chat/nano?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-nano-deepseek-500-token-cap-39c029ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZnVbzFh3pFInG5_EwI0bf

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-nano-deepseek-500-token-cap-39c029ed
```

Example prompt: Ask the DeepSeek nano chat endpoint: given the system message 'You are a concise assistant', send the user message 'What is the capital of France?' with temperature 0.7 and return plain text — keep the response under 100 tokens.

## When to prefer this

Choose this endpoint when you need a cheap, pay-per-call, OpenAI-compatible LLM inference call without managing API keys or subscriptions — ideal for agent pipelines that make occasional short completions (under 500 tokens), need x402 micropayment settlement, or want DeepSeek-quality inference billed at $0.002 per call. Prefer alternatives when you need longer outputs (500+ tokens), streaming, function calling, embeddings, or image inputs.

## Known failure modes

- Missing or empty messages array returns a 400 validation error
- messages content exceeding 4000 characters per message is rejected
- max_tokens above 500 is silently capped or rejected
- Payment not settled via x402 returns 402 Payment Required
- Malformed response_format object causes a 400 error
- Model field ignored or overridden by backend; specifying unsupported model names may be silently ignored
- Network timeout on the Cloudflare Worker edge node
- Rate limiting if too many calls are made in quick succession

## 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 an OpenAI-formatted chat.completion JSON object containing the assistant's reply message, finish reason (e.g. 'stop'), prompt/completion/total token counts, a model name ('deepseek-chat'), a completion ID, a Unix timestamp, and a _receipt object with the price paid in USD. Token output is capped at 500.

## 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": 4000
         }
        }
       },
       "maxItems": 20,
       "minItems": 1
      },
      "max_tokens": {
       "type": "integer",
       "default": 256,
       "minimum": 1,
       "description": "Capped at 500 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-nano-deepseek-500-token-cap-39c029ed/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)
