# Telnyx x402 Gateway – MiniMax-M2.7 Chat Completions

> Telnyx x402 Gateway – MiniMax-M2.7 Chat Completions is a paid API for AI agents from x402.telnyx.com, paid per call via x402, $0.007157/call, status unknown (last checked 2026-10-10).

Generate chat completions using the MiniMaxAI/MiniMax-M2.7 model via a pay-per-request USDC micropayment gateway (x402 protocol)

## Facts

- Endpoint: POST https://x402.telnyx.com/v1/chat/completions/_t/mini?utm_source=zero.xyz
- Price: $0.007157/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/telnyx-x402-gateway-minimax-m2-7-chat-completions-5d271735
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KnoXWTMKirXAafKkcty0F

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-minimax-m2-7-chat-completions-5d271735 -d '<json body>'
```

Example prompt: Using the Telnyx x402 MiniMax gateway, send a chat message with the system prompt 'You are a helpful assistant' and user message 'Explain the x402 payment protocol in two sentences' — pay per request with USDC, temperature 0.7, max 1024 tokens.

## When to prefer this

Choose this endpoint when you need pay-per-request LLM inference without a subscription or API key contract, specifically when using the MiniMaxAI/MiniMax-M2.7 model and settling costs in USDC via the x402 micropayment protocol. It is ideal for crypto-native agents, dApps, or serverless workflows where usage is sporadic and subscription billing is impractical. Prefer it over traditional API providers when you want on-chain verifiable payment settlement and no monthly commitment.

## Known failure modes

- Payment failure – insufficient USDC balance or x402 payment rejected, resulting in a 402 Payment Required response
- Invalid model – any model value other than 'MiniMaxAI/MiniMax-M2.7' will be rejected since the field is const
- Message limit exceeded – submitting more than 32 messages or content exceeding 8000 characters per message triggers validation errors
- Token limit out of range – max_tokens below 512 or above 4096 returns a validation error
- Temperature out of range – values below 0 or above 2 are rejected
- Too many tools – more than 16 tool definitions causes a validation error
- Network timeout – inference latency may cause timeouts on very long generations

## 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 chat completion JSON object containing the assistant's generated message, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total tokens), 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": "MiniMaxAI/MiniMax-M2.7",
   "description": "Model identifier; fixed to MiniMaxAI/MiniMax-M2.7 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": 8000
     }
    }
   },
   "maxItems": 32,
   "description": "OpenAI-style chat messages."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 4096,
   "minimum": 512
  },
  "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-minimax-m2-7-chat-completions-5d271735/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)
