# DeepSeek-on-x402

> DeepSeek-on-x402 is a paid API for AI agents from x402-ai.pages.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Pay-per-call LLM chat API powered by DeepSeek v4 Flash with adaptive thinking, billed at $0.01 USDC per request via the x402 micropayment protocol on Base

## Facts

- Endpoint: POST https://x402-ai.pages.dev/service/chat
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deepseek-on-x402-099df3ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2cVZkJ0Snl5-Z3MvsZgCF

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 deepseek-on-x402-099df3ab -d '<json body>'
```

Example prompt: Ask DeepSeek Flash to explain the tradeoffs between relational and vector databases in two paragraphs — pay the $0.01 USDC fee per-request on Base.

## When to prefer this

Choose this endpoint when you need a low-cost, pay-as-you-go LLM call without committing to a subscription, especially in agentic workflows that handle their own x402 micropayment flow on Base. It is ideal when DeepSeek's adaptive thinking model is specifically desired, when per-call USDC billing is preferred over API key subscriptions, or when building pipelines that must be auditable via on-chain transaction receipts.

## Known failure modes

- HTTP 402 returned on first call requiring x-payment header to be added and request resent
- Insufficient USDC balance on Base wallet causes payment failure
- Malformed or missing prompt field returns validation error
- Network or Cloudflare Pages downtime causes 5xx errors
- Blockchain transaction confirmation delays may slow response

## How this service works

Pay-per-call LLM API. Send any prompt, receive a DeepSeek v4 Flash response (adaptive thinking). Cost: 0.01 USDC per request on Base. Price: 0.01 USDC per request on Base. Pay via x402: the endpoint returns HTTP 402 with a payment-required header; pay and resend with x-payment.

## Output

A JSON object containing a boolean success flag, the payer wallet address, the blockchain transaction hash for the USDC payment, and a nested result object with the model's text reply, model identifier, prompt token count, reasoning token count, and completion token count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "prompt"
 ],
 "properties": {
  "prompt": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ok",
  "payer",
  "transaction",
  "result"
 ],
 "properties": {
  "ok": {
   "type": "boolean"
  },
  "payer": {
   "type": "string"
  },
  "result": {
   "type": "object",
   "required": [
    "reply",
    "model"
   ],
   "properties": {
    "model": {
     "type": "string"
    },
    "reply": {
     "type": "string"
    },
    "promptTokens": {
     "type": "integer"
    },
    "reasoningTokens": {
     "type": "integer"
    },
    "completionTokens": {
     "type": "integer"
    }
   }
  },
  "transaction": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/deepseek-on-x402-099df3ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ai.pages.dev](https://www.zero.xyz/host/x402-ai.pages.dev/llms.txt)
