# DeepSeek Chat LLM via x402 Gateway

> DeepSeek Chat LLM via x402 Gateway is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.005000/call, status unknown (last checked 2026-10-11, last successful call 2026-08-19).

Sends a prompt to DeepSeek's flagship chat model and returns a text completion, optimized for reasoning and coding tasks at low cost.

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/llm/deepseek?utm_source=zero.xyz
- Price: $0.005000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Last successful call: 2026-08-19
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 3
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-b30700f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qPOOEXmHn9yda4guwu_X3

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 x402-gateway-production-up-railway-app-b30700f6 -d '<json body>'
```

Example prompt: Ask DeepSeek to write me a Python function that parses a CSV file and returns a list of dictionaries, with error handling for missing or malformed rows.

## When to prefer this

Choose this endpoint when you need strong open-source reasoning or coding capabilities at a very low cost ($0.005 per call). Ideal for high-volume agentic tasks, software engineering assistance, or when you want DeepSeek's model specifically over OpenAI or Mistral alternatives available on the same gateway.

## Known failure modes

- Invalid or missing prompt returns a 400 error
- Payment failure or insufficient USDC balance blocks the request
- Model overload or rate limiting returns a 429 or 503 error
- Malformed request body causes a 422 validation error
- Context length exceeded if prompt is too long

## How this service works

DeepSeek's flagship chat model — strong open-source reasoning and coding at low cost

## Output

Returns a text completion from DeepSeek's flagship chat model, which may include reasoning, code, or natural language responses based on the input prompt.

## Example request

```json
{
 "messages": [
  {
   "role": "user",
   "content": "Write a Python function that parses a CSV file and returns a list of dictionaries, with error handling for missing or malformed rows."
  }
 ]
}
```

## 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."
      },
      "min_p": {
       "type": "number",
       "description": "Model-supported min_p; 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"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-b30700f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
