# Telnyx x402 Gemma-4-26B Chat Completions

> Telnyx x402 Gemma-4-26B Chat Completions is a paid API for AI agents from x402.telnyx.com, paid per call via x402, $0.003139/call, status unknown (last checked 2026-10-12).

Generates chat completions using Google Gemma 4 26B via Telnyx, billed per-request at $0.003139 USDC through the x402 micropayment protocol.

## Facts

- Endpoint: POST https://x402.telnyx.com/v1/chat/completions/_t/gemma-4-26b?utm_source=zero.xyz
- Price: $0.003139/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-gemma-4-26b-chat-completions-4839ffbe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uEl43TBxfk9bW_7dKSUZU

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-gemma-4-26b-chat-completions-4839ffbe -d '<json body>'
```

Example prompt: Ask Gemma 4 26B to explain the differences between supervised and unsupervised learning in plain English — use up to 512 tokens and a temperature of 0.7, paying per request with USDC.

## When to prefer this

Choose this endpoint when you need pay-per-request LLM inference with Google Gemma 4 26B without committing to a subscription or managing API keys — ideal for low-volume, sporadic, or agent-driven workloads where USDC micropayments via x402 are acceptable. Prefer it over OpenAI or Anthropic endpoints when you specifically want the Gemma 4 26B model or need Telnyx's infrastructure with per-call billing.

## Known failure modes

- Payment not included or insufficient USDC — returns HTTP 402 Payment Required
- Invalid or missing messages array — returns 400 Bad Request
- max_tokens exceeds 1024 — schema validation error
- Content length exceeds 12000 characters per message — validation failure
- Model field set to anything other than google/gemma-4-26B-A4B-it — rejected by fixed const constraint
- More than 16 tools provided — validation error
- More than 32 messages in conversation — validation error
- Network timeout if inference takes too long under load

## How this service works

Chat completions via Telnyx Inference (google/gemma-4-26B-A4B-it). OpenAI-compatible. $0.003139 USDC per call.

## Output

Returns an OpenAI-compatible chat.completion JSON object with the assistant's generated message, finish reason (e.g. 'stop'), and token usage breakdown (prompt tokens, completion tokens, total tokens). The model field is fixed to google/gemma-4-26B-A4B-it.

## 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": "google/gemma-4-26B-A4B-it",
   "description": "Model identifier; fixed to google/gemma-4-26B-A4B-it 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": 12000
     }
    }
   },
   "maxItems": 32,
   "description": "OpenAI-style chat messages."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 1024,
   "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-gemma-4-26b-chat-completions-4839ffbe/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)
