# DeepSeek Chat via Model Access Gateway (x402)

> DeepSeek Chat via Model Access Gateway (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-14).

Runs a DeepSeek deepseek-chat inference call through a pay-per-use USDC gateway on Arbitrum, returning an OpenAI-compatible chat completion response.

## Facts

- Endpoint: POST https://agent402-arb.rosariovitale0096.workers.dev/v1/chat/completions/deepseek%2Fdeepseek-chat?utm_source=zero.xyz
- Price: $0.0014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deepseek-chat-via-model-access-gateway-x402-b775ec4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__P6bGza-q31jwf1NmX9qX

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-chat-via-model-access-gateway-x402-b775ec4f -d '<json body>'
```

Example prompt: Ask the DeepSeek chat model to explain the pros and cons of using Rust versus Go for building a high-performance backend service, and return its full answer.

## When to prefer this

Choose this endpoint when you need pay-per-call access to DeepSeek's deepseek-chat model without a monthly subscription, especially in agentic workflows where USDC micropayments via the x402 protocol on Arbitrum are already integrated. Prefer it over direct DeepSeek API calls when your agent stack is crypto-native and you want per-inference cost control without API key management.

## Known failure modes

- Insufficient USDC balance or failed x402 payment leads to 402 Payment Required error
- Malformed request body (missing required fields) returns a 400 validation error
- Model overload or upstream DeepSeek outage returns 503 or timeout
- Invalid or missing authorization header causes 401 Unauthorized
- Rate limiting on the gateway worker may return 429 Too Many Requests

## How this service works

DeepSeek V4 Flash Chat API (deepseek/deepseek-chat): LLM inference via OpenAI-compatible chat completions, pay per call in USDC on Base with x402. No API key, no account. Suited for AI agents and scripts that need DeepSeek V4 Flash Chat on demand. When listed, this request cost 30% less than the same request on BlockRun. Streaming and function calling supported. Exact price in the 402 quote before payment; automatic refund if the model fails to answer.

## Output

An OpenAI-compatible chat completion JSON object containing the assistant's generated message text, finish reason, token usage statistics, and model metadata.

## 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/deepseek-chat-via-model-access-gateway-x402-b775ec4f/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)
