# AgentRXI Gemma Chat Completions

> AgentRXI Gemma Chat Completions is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.00385/call, status unknown (last checked 2026-10-15).

Run a chat completion against Google's Gemma 4 26B model via a pay-per-call API, returning an OpenAI-compatible response.

## Facts

- Endpoint: GET https://agentrxi.com/v1/gemma/chat/completions?utm_source=zero.xyz
- Price: $0.00385/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-gemma-chat-completions-8f6881be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_49lK-DtT-_hkS11D_3p9l

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 agentrxi-gemma-chat-completions-8f6881be
```

Example prompt: Ask Gemma 4 26B to explain the difference between supervised and unsupervised learning in two sentences, using a system message that says 'You are a concise ML tutor' and keep it to 150 tokens max.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call LLM with no API key or account setup, especially when cost per call matters (under $0.004 USDC) or when you want an OpenAI-compatible interface powered by Google's Gemma 4 open-weight model without committing to a subscription.

## Known failure modes

- Missing required 'prompt' query parameter returns a 400 error
- Payment not provided or insufficient USDC balance returns a 402 Payment Required
- Temperature out of valid range may cause a 422 validation error
- Very large prompts may exceed model context window and return an error
- Network timeout for long generation requests

## How this service works

OpenAI-compatible chat completions on Google Gemma 4 26B, reasoning and tool calling. Set your OpenAI SDK base URL to https://agentrxi.com/v1/gemma and pay per token with x402 instead of an API key: $0.3 per million input and $0.9 per million output tokens, minimum $0.002 a call, at most $0.0078. The 402 quotes your request's maximum; "upto" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, reasoning, streaming supported), up to 409

## Output

An OpenAI-compatible JSON chat completion object containing the assistant's reply text, the model name ('gemma-4-26b'), finish reason ('stop'), and token usage breakdown (prompt tokens, completion tokens, total tokens).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "description": "User message"
      },
      "system": {
       "type": "string",
       "description": "Optional system message"
      },
      "max_tokens": {
       "type": "integer"
      },
      "temperature": {
       "type": "number"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-...",
  "model": "gemma-4-26b",
  "usage": {
   "total_tokens": 18,
   "prompt_tokens": 14,
   "completion_tokens": 4
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Bonjour !"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-gemma-chat-completions-8f6881be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
