# DeepSeek R1 via x402engine

> DeepSeek R1 via x402engine is a paid API for AI agents from x402engine.app, paid per call via x402, $0.006233/call, status unknown (last checked 2026-10-12).

Run DeepSeek R1 inference with OpenAI-compatible chat completions, paid per-call via HTTP 402 micropayment in USDC

## Facts

- Endpoint: POST https://x402engine.app/api/llm/deepseek-r1?utm_source=zero.xyz
- Price: $0.006233/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deepseek-r1-via-x402engine-836f03ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PdEYNcRWa7cseMf3lhmdm

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-r1-via-x402engine-836f03ad -d '<json body>'
```

Example prompt: Ask DeepSeek R1 to reason through this multi-step math problem and show its chain-of-thought: 'If a train leaves Chicago at 9am traveling at 80mph and another leaves New York at 10am at 100mph, and the cities are 800 miles apart, when do they meet?'

## When to prefer this

Choose this endpoint when you need DeepSeek R1's strong chain-of-thought reasoning capabilities on a pay-per-call basis without committing to a subscription or managing API credentials. Ideal for agents that call LLMs infrequently or need cost-controlled per-request billing in USDC. Prefer this over managed providers when you want a no-subscription, crypto-native micropayment flow with OpenAI-compatible request/response format and optional streaming.

## Known failure modes

- Payment not settled — HTTP 402 returned if USDC micropayment fails or wallet lacks funds
- Invalid messages array — missing required 'role' or 'content'/'tool_calls' fields returns a validation error
- Unsupported parameter — passing a parameter not supported by DeepSeek R1 (check /docs/llm-capabilities.md)
- Context length exceeded — very long conversations may exceed model context window
- Streaming timeout — long reasoning chains may hit connection timeout before completion

## How this service works

125 production APIs behind HTTP 402 micropayments. 87 LLMs, Kling V3 and Hailuo video generation, image generation, code execution, travel search, web scraping, TTS, and transaction simulation. Pay with USDC on Base, USDm on MegaETH, or USDC on Solana.

## Output

An OpenAI-compatible JSON response containing the assistant's message (with optional reasoning field), finish reason, model name, and any tool_calls the model requested. If streaming is enabled, returns Server-Sent Events in OpenAI SSE format instead.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "messages"
     ],
     "properties": {
      "seed": {
       "type": "integer",
       "description": "Model-supported seed; see /docs/llm-capabilities.md."
      },
      "stop": {
       "oneOf": [
        {
         "type": "string"
        },
        {
         "type": "array",
         "items": {
          "type": "string"
         },
         "maxItems": 4
        }
       ],
       "description": "Model-supported stop; see /docs/llm-capabilities.md."
      },
      "tools": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "function"
        ],
        "properties": {
         "type": {
          "enum": [
           "function"
          ],
          "type": "string"
         },
         "function": {
          "type": "object",
          "properties": {
           "name": {
            "type": "string"
           },
           "strict": {
            "type": "boolean"
           },
           "parameters": {
            "type": "object"
           },
           "description": {
            "type": "string"
           }
          }
         }
        }
       },
       "description": "Client-executed function definitions; return results using role=tool and tool_call_id."
      },
      "top_k": {
       "type": "integer",
       "description": "Model-supported top_k; see /docs/llm-capabilities.md."
      },
      "top_p": {
       "type": "number",
       "description": "Model-supported top_p; see /docs/llm-capabilities.md."
      },
      "stream": {
       "type": "boolean",
       "description": "Return live OpenAI-compatible SSE after payment settlement."
      },
      "messages": {
       "type": "array",
       "items": {
        "type": "object",
        "anyOf": [
         {
          "required": [
           "content"
          ]
         },
         {
          "required": [
           "tool_calls"
          ]
         }
        ],
        "required": [
         "role"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "role": {
          "enum": [
           "system",
           "developer",
           "user",
           "a
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "deepseek/deepseek-r1",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ],
  "content": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/deepseek-r1-via-x402engine-836f03ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402engine.app](https://www.zero.xyz/host/x402engine.app/llms.txt)
