# Telnyx Inference Chat Completions (Gemma 2B)

> Telnyx Inference Chat Completions (Gemma 2B) is a paid API for AI agents from x402.telnyx.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Runs a single OpenAI-compatible chat completion against Google's Gemma-2B-IT model via Telnyx Inference, billed at $0.002 USDC per call using the x402 payment protocol.

## Facts

- Endpoint: POST https://x402.telnyx.com/v1/chat/completions/_t/gemma-2b
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/telnyx-inference-chat-completions-gemma-2b-c2ff19b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CT3wEJYmUEjbO5V0RJklw

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-inference-chat-completions-gemma-2b-c2ff19b5 -d '<json body>'
```

Example prompt: Ask Gemma 2B to summarize the following in one paragraph, keeping the tone professional: 'Our Q3 revenue grew 18% YoY driven by enterprise contracts, though operating costs rose due to headcount expansion.' Keep the response under 100 tokens.

## When to prefer this

Choose this endpoint when you need a low-cost ($0.002/call), pay-per-use LLM inference call without a subscription, specifically against the Gemma-2B-IT instruction-tuned model. It is ideal for lightweight tasks like classification, short-form generation, or FAQ responses where a smaller model suffices. Prefer it over larger model endpoints when cost efficiency matters and you are already operating in an x402 micropayment environment. Not suitable when you need longer outputs (>256 tokens), larger context windows, or more capable models.

## Known failure modes

- Payment failure: x402 payment not fulfilled or insufficient USDC balance causes rejection before inference runs
- Content too long: messages exceeding 2000 characters per message or more than 32 messages returns a validation error
- max_tokens out of range: values below 1 or above 256 are rejected
- Temperature out of range: values outside 0-2 cause schema validation failure
- Model mismatch: specifying any model other than google/gemma-2b-it returns an error since the route is fixed
- Network timeout: inference latency spike causes request to time out with no completion returned

## How this service works

Chat completions via Telnyx Inference (google/gemma-2b-it). OpenAI-compatible. $0.002 USDC per call.

## Output

Returns an OpenAI-compatible chat completion JSON object containing a single assistant message (n=1) with the model's generated text, finish reason, and token usage counts. The assistant message content is bounded by the max_tokens parameter (up to 256 tokens).

## 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-2b-it",
   "description": "Model identifier; fixed to google/gemma-2b-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": 2000
     }
    }
   },
   "maxItems": 32,
   "description": "OpenAI-style chat messages."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 256,
   "minimum": 1
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/telnyx-inference-chat-completions-gemma-2b-c2ff19b5/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)
