# Telnyx x402 Gateway — DeepSeek-V4.1-Flash Chat Completions

> Telnyx x402 Gateway — DeepSeek-V4.1-Flash Chat Completions is a paid API for AI agents from x402.telnyx.com, paid per call via x402, $0.013259/call, status unknown (last checked 2026-10-12).

Generate chat completions using the DeepSeek-V4.1-Flash model via Telnyx, paid per-request in USDC through the x402 protocol.

## Facts

- Endpoint: POST https://x402.telnyx.com/v1/chat/completions/_t/deepseek-v4.1-flash?utm_source=zero.xyz
- Price: $0.013259/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/telnyx-x402-gateway-deepseek-v4-1-flash-chat-completions-0d11fad4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KGgf-7ALU0QwTciI1i4yy

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 telnyx-x402-gateway-deepseek-v4-1-flash-chat-completions-0d11fad4 -d '<json body>'
```

Example prompt: Using the Telnyx DeepSeek-V4.1-Flash endpoint, send this conversation — system: 'You are a helpful assistant', user: 'Summarize the key benefits of solar energy in 3 bullet points' — with a max of 512 tokens and temperature 0.7, and pay the per-request USDC fee automatically.

## When to prefer this

Choose this endpoint when you need per-request, pay-as-you-go access to the DeepSeek-V4.1-Flash model without committing to a subscription, especially when paying programmatically in USDC via the x402 protocol. It is ideal for agents that need autonomous micropayment-based inference, OpenAI-compatible chat completions with optional tool calling, or bursty workloads where pre-purchasing API credits is impractical.

## Known failure modes

- Payment failure — insufficient USDC balance or x402 payment rejected, returns 402 Payment Required
- Invalid model identifier — model field must be exactly 'deepseek-ai/DeepSeek-V4.1-Flash', otherwise 400
- Message array exceeds 32 items or content exceeds 32,000 characters, returns 400 validation error
- More than 16 tools provided, returns 400
- max_tokens out of range (must be 1–2048), returns 400
- Temperature out of range (must be 0–2), returns 400
- Telnyx inference backend unavailable, returns 503

## How this service works

Pay USDC per request for Telnyx Inference and Audio (text-to-speech, speech-to-text) through x402.

## Output

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

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "const": 1,
   "description": "Fixed to one completion per paid call."
  },
  "model": {
   "type": "string",
   "const": "deepseek-ai/DeepSeek-V4.1-Flash",
   "description": "Model identifier; fixed to deepseek-ai/DeepSeek-V4.1-Flash on this route."
  },
  "tools": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "maxItems": 16
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant",
       "tool"
      ],
      "type": "string"
     },
     "content": {
      "type": "string",
      "maxLength": 32000
     }
    }
   },
   "maxItems": 32,
   "description": "OpenAI-style chat messages."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 2048,
   "minimum": 1
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-xxx",
  "usage": {
   "total_tokens": 16,
   "prompt_tokens": 12,
   "completion_tokens": 4
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/telnyx-x402-gateway-deepseek-v4-1-flash-chat-completions-0d11fad4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.telnyx.com](https://www.zero.xyz/host/x402.telnyx.com/llms.txt)
