# ds402 — DeepSeek v4-Pro Pay-Per-Call (x402)

> ds402 — DeepSeek v4-Pro Pay-Per-Call (x402) is a paid API for AI agents from ds.xhclco.com, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-02).

Runs a DeepSeek v4-Pro chat completion for $0.04 USDC per call via x402 micropayment — no API keys or accounts required.

## Facts

- Endpoint: POST https://ds.xhclco.com/v1/pro/completions?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ds402-deepseek-v4-pro-pay-per-call-x402-f862e7c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zPUZ0LeAn5Z7y6Q34WdF9

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 ds402-deepseek-v4-pro-pay-per-call-x402-f862e7c0 -d '<json body>'
```

Example prompt: Ask DeepSeek v4-Pro to explain the difference between supervised and unsupervised learning in simple terms — pay the $0.04 USDC per-call fee automatically, no API key needed, streaming off, and allow up to 512 tokens for the answer.

## When to prefer this

Choose this endpoint when you need a capable DeepSeek v4-Pro reasoning inference with no account setup, API key management, or subscription — ideal for one-off or low-frequency agent tasks where paying $0.04 USDC per call via x402 is simpler than provisioning credentials. Prefer this over OpenAI or Anthropic endpoints when the agent already has a crypto wallet on Base and wants to avoid SaaS billing overhead. Not suitable for streaming responses or for high-volume batch workloads where per-call costs accumulate significantly.

## Known failure modes

- HTTP 402 returned if payment challenge is not settled — client must complete x402 v2 USDC payment on Base before retrying
- Empty or truncated content if max_tokens is set below 256, as the model performs internal reasoning that consumes tokens
- stream:true rejected — SSE streaming is not supported on this route; must send stream:false
- Model field is ignored — always pinned to deepseek-v4-pro regardless of value
- Payment settlement failure if the caller's wallet has insufficient USDC on Base
- Rate or infrastructure errors returning 5xx if the upstream DeepSeek service is unavailable

## How this service works

Pay-per-request DeepSeek inference behind an x402 payment wall. No accounts, no API keys: POST OpenAI-style chat completions, receive HTTP 402 with an x402 v2 challenge, settle $0.01 (flash) or $0.04 (v4-pro) in USDC on Base, get the completion. One payment per call.

## Output

Returns an OpenAI-compatible chat completion object with the assistant's generated message. The response includes the completion text produced by DeepSeek v4-Pro, clamped to between 128 and 2048 tokens. No streaming is supported; the full response is returned synchronously after the x402 micropayment is settled.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "messages"
 ],
 "properties": {
  "model": {
   "type": "string",
   "description": "ignored, pinned to deepseek-v4-pro by route"
  },
  "stream": {
   "type": "boolean",
   "description": "must be false; SSE streaming unsupported"
  },
  "messages": {
   "type": "array"
  },
  "max_tokens": {
   "type": "integer",
   "description": "clamped to [128,2048]; model does reasoning, use >=256 to avoid empty content"
  },
  "temperature": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ds402-deepseek-v4-pro-pay-per-call-x402-f862e7c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ds.xhclco.com](https://www.zero.xyz/host/ds.xhclco.com/llms.txt)
