# Synap Gemma-4-26B Chat Completions (via Linkrra)

> Synap Gemma-4-26B Chat Completions (via Linkrra) is a paid API for AI agents from synap.linkrra.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-21).

Runs a chat completion request against the Gemma-4-26B-A4B-IT open model via an OpenAI-compatible API, billed per call with USDC micropayment.

## Facts

- Endpoint: POST https://synap.linkrra.com/api/billing/x402/models/gemma-4-26b-a4b-it/chat/completions?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synap-gemma-4-26b-chat-completions-via-linkrra-6a5d7f24
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FtlVw9SFgo3dPVUGqH3HZ

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 synap-gemma-4-26b-chat-completions-via-linkrra-6a5d7f24 -d '<json body>'
```

Example prompt: Using the Gemma-4-26B model on Synap, ask it to write a Python function that reverses a string — keep the response under 500 tokens and don't stream it.

## When to prefer this

Choose this endpoint when you need a cost-effective, pay-per-call open model inference API with OpenAI-compatible request/response format, and you want to use the Gemma-4-26B-A4B-IT model specifically. It is ideal for agents that need to avoid OpenAI vendor lock-in, want USDC micropayment billing (no monthly subscription), or are exploring open model alternatives at low cost per call ($0.001 USDC). Prefer it over proprietary model APIs when open weights and cost transparency matter.

## Known failure modes

- Payment failure or insufficient USDC balance — payment not processed, request rejected
- messages array empty or missing required role/content fields — 400 validation error
- max_tokens exceeds 4096 — capped or rejected
- Model identifier mismatch — only 'gemma-4-26b-a4b-it' accepted
- Rate limiting or quota exceeded on the Synap platform
- Network timeout during inference for very long prompts

## How this service works

Explore open models with Synap's OpenAI-compatible API. Start with a free API key or try a model in chat. Compare models, pricing and free-tier limits.

## Output

Returns an OpenAI-format chat.completion JSON object containing the assistant's reply message, token usage breakdown (prompt, completion, total), model name, a unique completion ID, and a payment receipt with the transaction hash and amount paid in USD on the Base network.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "gemma-4-26b-a4b-it"
   ],
   "type": "string",
   "description": "Optional: this endpoint always runs gemma-4-26b-a4b-it."
  },
  "stream": {
   "type": "boolean",
   "default": false,
   "description": "true = stream OpenAI-format Server-Sent Events."
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant",
       "tool"
      ],
      "type": "string"
     },
     "content": {
      "description": "Text, or an array of OpenAI content parts."
     }
    }
   },
   "examples": [
    [
     {
      "role": "user",
      "content": ""
     }
    ]
   ],
   "minItems": 1,
   "description": "OpenAI-format chat history, oldest first: [{role, content}]."
  },
  "max_tokens": {
   "type": "integer",
   "default": 4096,
   "maximum": 4096,
   "minimum": 1,
   "description": "Completion token cap. The price is quoted for the prompt plus this cap."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-...",
  "model": "gemma-4-26b-a4b-it",
  "usage": {
   "total_tokens": 28,
   "prompt_tokens": 16,
   "completion_tokens": 12
  },
  "object": "chat.completion",
  "choices": [
   {
    "message": {
     "role": "assistant",
     "content": "def reverse(s):\n    return s[::-1]"
    }
   }
  ],
  "payment": {
   "network": "eip155:8453",
   "paidUsd": 0.001,
   "transaction": "0x..."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synap-gemma-4-26b-chat-completions-via-linkrra-6a5d7f24/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from synap.linkrra.com](https://www.zero.xyz/host/synap.linkrra.com/llms.txt)
