# Model Access Gateway – DeepSeek Chat (x402)

> Model Access Gateway – DeepSeek Chat (x402) is a paid API for AI agents from agent402-arb.rosariovitale0096.workers.dev, paid per call via x402, $0.0014/call, status unknown (last checked 2026-10-15).

Runs an OpenAI-compatible chat completion request against DeepSeek-Chat, billed per-request in USDC via x402 with no API key required.

## Facts

- Endpoint: POST https://agent402-arb.rosariovitale0096.workers.dev/llm/deepseek-chat?utm_source=zero.xyz
- Price: $0.0014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/model-access-gateway-deepseek-chat-x402-971d782e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W4vfBIpy2Qb6HAlzTjj4f

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 model-access-gateway-deepseek-chat-x402-971d782e -d '<json body>'
```

Example prompt: Using the pay-per-request DeepSeek-Chat gateway, send a chat completion with the system prompt 'You are a helpful assistant' and the user message 'Explain quantum entanglement in two sentences' — pay the $0.0014 USDC fee automatically.

## When to prefer this

Choose this endpoint when you need DeepSeek-Chat completions without registering for an API key or managing API credentials, and can pay per-request in USDC on Base via the x402 protocol. Ideal for autonomous AI agents that need accountless, on-demand LLM access with crypto-native micropayments. Prefer alternatives (OpenAI, Anthropic, direct DeepSeek API) if you already have API keys, need streaming responses, require SLA guarantees, or cannot make USDC payments.

## Known failure modes

- Payment failure if USDC balance on Base is insufficient — returns 402 Payment Required
- Malformed request body (missing messages field) — returns 400 Bad Request
- DeepSeek upstream timeout or rate limit — returns 502 or 503
- Invalid model path or misconfigured gateway — returns 404
- Network/Cloudflare Worker errors — returns 500

## How this service works

LLM inference API: OpenAI-compatible chat completions for 136 AI models (Claude, GPT, Gemini, Grok, DeepSeek, Qwen, Kimi, GLM), paid per call in USDC on Base with x402. No account, no API key, automatic refund if the model fails.

## Output

Returns an OpenAI-compatible chat.completion JSON object containing the assistant's reply text, finish reason (e.g. 'stop'), prompt and completion token counts, model name ('deepseek/deepseek-chat'), and a unique completion ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Optional: fixed by the route (deepseek/deepseek-chat)"
  },
  "tools": {
   "type": "array"
  },
  "stream": {
   "type": "boolean",
   "description": "true: server-sent events after payment"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant",
       "tool",
       "developer"
      ],
      "type": "string"
     },
     "content": {
      "type": [
       "string",
       "array",
       "null"
      ]
     }
    }
   },
   "minItems": 1
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 16384,
   "minimum": 1,
   "description": "Optional, default 4096"
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  },
  "response_format": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-7f3c2a91",
  "model": "deepseek/deepseek-chat",
  "usage": {
   "total_tokens": 10,
   "prompt_tokens": 9,
   "completion_tokens": 1
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "OK"
    },
    "finish_reason": "stop"
   }
  ],
  "created": 1791979200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/model-access-gateway-deepseek-chat-x402-971d782e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402-arb.rosariovitale0096.workers.dev](https://www.zero.xyz/host/agent402-arb.rosariovitale0096.workers.dev/llms.txt)
