# Model Access Gateway – DeepSeek V4.1 Flash via x402

> Model Access Gateway – DeepSeek V4.1 Flash via x402 is a paid API for AI agents from modelaccessgateway.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-16).

OpenAI-compatible chat completions using DeepSeek V4.1 Flash, paid per-call in USDC on Base via x402 with no API key required

## Facts

- Endpoint: POST https://modelaccessgateway.com/llm/deepseek-v4.1-flash?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/model-access-gateway-deepseek-v4-1-flash-via-x402-f9018b6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zj3fql9dArYi2cGZXCuW2

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-v4-1-flash-via-x402-f9018b6e -d '<json body>'
```

Example prompt: Ask DeepSeek V4.1 Flash to summarize the following text in three bullet points, paying per call with USDC — no API key: 'Artificial intelligence is transforming industries by automating repetitive tasks, enhancing decision-making, and enabling new product categories that were previously impossible.'

## When to prefer this

Choose this endpoint when you need DeepSeek V4.1 Flash inference with zero account setup — ideal for AI agents that pay per call in USDC via the x402 protocol on Base. Prefer it over managed LLM APIs (OpenAI, Anthropic direct) when you want no subscription commitment, automatic refunds on failure, and a fully OpenAI-compatible interface that works with existing tooling. Best for agentic workflows, scripts, or pipelines that need on-demand, trustless LLM access with crypto-native payment rails.

## Known failure modes

- Payment failure or insufficient USDC balance — x402 payment rejected, no completion returned but automatic refund issued
- Model error or timeout — service returns error and triggers automatic refund
- Invalid messages array (empty or missing role) — 400 validation error
- max_tokens out of range (>16384 or <1) — 400 validation error
- Temperature out of range (>2 or <0) — 400 validation error
- Network timeout during streaming — partial SSE stream may be lost

## 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

A standard OpenAI-compatible chat.completion JSON object containing the assistant's generated message, finish reason (e.g. 'stop'), token usage counts (prompt, completion, total), model identifier, and a unique completion ID. Streaming mode returns server-sent events instead.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Optional: fixed by the route (deepseek/deepseek-v4.1-flash)"
  },
  "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-v4.1-flash",
  "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-v4-1-flash-via-x402-f9018b6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from modelaccessgateway.com](https://www.zero.xyz/host/modelaccessgateway.com/llms.txt)
